You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
// This one is correctly applied
div {
@apply bg-pink-200;
}
// This one is not
a {
@apply text-red-600;
}
// This one is correctly applied
a:hover {
@apply text-blue-500;
}
The issue
Every css in theme-pink.css is applied but the one with a { @apply text-red-600; }.
If move the problematic line in main.css then our style is applied:
I am a beginner in CSS so this might be obvious to some of you.
I tried to look at similar issues but I fail to see how they could be related.
I created the most simple gridsome project using TailwindCSS.
The project
My main.css looks like this:
The
theme-pink.css
looks like this:The issue
Every css in theme-pink.css is applied but the one with
a { @apply text-red-600; }
.If move the problematic line in
main.css
then our style is applied:Try it yourself
If you feel like helping you can test this with this reproduction code : https://github.com/Braincoke/issue-tailwind-apply.
Would anyone know why this is not working ?
The text was updated successfully, but these errors were encountered: