-
|
I have the following CSS: @layer components {
.input {
@apply placeholder:text-slate-400!;
}
}I have autoformat on save, and it reformats it to Also, in some reason it doesn't apply components layer in output, as if tailwind just disregards whatever I am trying to do here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It would seem like perhaps your autoformatter doesn't understand Tailwind syntax. Consider contacting support for your autoformatter. Otherwise, consider writing styles without @layer components {
.input::placeholder {
color: var(--color-slate-400) !important;
}
}Adam Wathan (creator of Tailwind) does seem to advocate avoiding
Could you provide more details on what you mean please? |
Beta Was this translation helpful? Give feedback.
Remove the
@applythat is the immediate "child" of@layer base. This is invalid CSS and interferes with the selector of theh1rule:@layer base { - @apply text-slate-600; - h1 { @apply text-mobile-h1 lg:text-desktop-h1; }