-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
🐛 BUG: Tailwind custom classes from .vue file does not exist #3073
Comments
Is the By default, // astro.config.cjs
export default defineConfig({
integrations: [
tailwind({
config: {
path: './tailwind.config.cjs',
applyBaseStyles: false, /** disables the built-in stylesheet */
},
}),
vue(),
],
});
|
@tony-sull I updated the issue. index.astro had the global.css included. |
Hi, |
Great catch @chrismwilliams! I've actually seen CSS variables in a @vjandrei use Tailwind's config to define all of the custom CSS variables and font families to make sure Tailwind knows what the values are Make sure to use the |
Some frameworks, specifically Vue, will not recognize global @layer directives in a global stylesheet because of how Vue's build system works. Instead, prefer to add a plugin to your Tailwind config. withastro#2660, withastro#3073
* add: @apply exceptions for component frameworks Some frameworks, specifically Vue, will not recognize global @layer directives in a global stylesheet because of how Vue's build system works. Instead, prefer to add a plugin to your Tailwind config. #2660, #3073 * Update README.md * Update README.md
What version of
astro
are you using?1.0.0-beta.7
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Seems that the .vue files can not access custom classes from tailwind.
index.astro:3:4: The
text-brand-secondaryclass does not exist. If
text-brand-secondaryis a custom class, make sure it is defined within a
@layerdirective.
Packaged.json
astro.config.mjs
tailwind.config.cjs
global.css
.vue file
index.astro
More bug messages
The text was updated successfully, but these errors were encountered: