Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init overwrites astro tailwind content types #1235

Closed
codeSTACKr opened this issue Aug 14, 2023 · 2 comments
Closed

Init overwrites astro tailwind content types #1235

codeSTACKr opened this issue Aug 14, 2023 · 2 comments

Comments

@codeSTACKr
Copy link

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.

@dan5py
Copy link
Contributor

dan5py commented Aug 15, 2023

Hi @codeSTACKr, the PR #1203 will fix the issue.

@codeSTACKr
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants