Skip to content

Init overwrites astro tailwind content types #1235

@codeSTACKr

Description

@codeSTACKr

Expected tailwind.config.cjs:

/** @type {import('tailwindcss').Config} */
module.exports = {
  darkMode: ["class"],
  content: [
    './pages/**/*.{ts,tsx}',
    './components/**/*.{ts,tsx}',
    './app/**/*.{ts,tsx}',
    './src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}', // <--
  ],
  theme: {...},
  plugins: [require("tailwindcss-animate")],
}

Actual tailwind.config.cjs:

/** @type {import('tailwindcss').Config} */
module.exports = {
  darkMode: ["class"],
  content: [
    './pages/**/*.{ts,tsx}',
    './components/**/*.{ts,tsx}',
    './app/**/*.{ts,tsx}',
    './src/**/*.{ts,tsx}', // <--
  ],
  theme: {...},
  plugins: [require("tailwindcss-animate")],
}

I think the update needs to happen somewhere around Line 229 of the init.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions