-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
@apply cannot be used with '.bg-*' #396
Comments
That definitely looks like it should work! Any chance you can push up a public repo that reproduces it that I can pull down and play with? I've never used Nuxt so would need to tinker. |
@adamwathan Well, I'm just stupid :) While I was creating the repo to reproduce the problem I noticed, that I've overwritten the default |
Haha all good, glad it's working! |
Sorry if this is disturbing. I have the same error message. I have no Idea what is wrong with mine.
My original issue is here. tailwindlabs/discuss#314 |
Do you have a color named |
I am so glad you made this mistake! I did the same 😄 |
I had the same issue with a site I copied from a site that did work. The difference: the site that did not work, I had defined colors in the tailwind.config.js theme object. It overwrote the tailwind default color scheme, apparently. Once I took that out, the webpack worked perfectly! |
I have this problem but for me the color is defined: colors: {
"blue": "#1fb6ff",
"purple": "#7e5bef",
"pink": "#ff49db",
"orange": "#ff7849",
"green": "#13ce66",
"yellow": "#ffc82c",
"gray-dark": "#273444",
"gray": "#8492a6",
"gray-light": "#d3dce6",
}, and yet I get the error Edit: Even more strange is that IntelliSense provides the correct colour highlight for the class so I really cannot understand why it's not working: |
First of all - thank you for Tailwind, it's freakin' amazing! :)
I'm playing around with it right now on my
Nuxt.js
stack and unfortunately I can't make this one thing work for me.What I'm trying to do is to
@apply .bg-grey;
tobody
, like this:But the code above returns:
I've tried also some other things, like
@apply .test-blue;
and it worked properly.Any ideas? I may misunderstand something so any info would be much appreciated :)
The text was updated successfully, but these errors were encountered: