Skip to content

! important in @apply in CSS is wrongly formatted #17832

Answered by wongjn
dicash asked this question in Help
Discussion options

You must be logged in to vote

Remove the @apply that is the immediate "child" of @layer base. This is invalid CSS and interferes with the selector of the h1 rule:

 @layer base {
-  @apply text-slate-600;
-
   h1 {
     @apply text-mobile-h1 lg:text-desktop-h1;
 }

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dicash
Comment options

@wongjn
Comment options

wongjn Apr 30, 2025
Collaborator

Answer selected by dicash
@dicash
Comment options

@wongjn
Comment options

wongjn Apr 30, 2025
Collaborator

@dicash
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants