How to override the theme's defaults in plain css or tailwind classes? #2257
-
From a scaffold project generated using the Skeleton CLI, if I try for example to apply a Tailwind class such as Is there a way to make the default css defined with the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The problem is that the Skeleton That means that they will always have a higher specificity, since the class that's defined last will win if there's no other differentiator. So the only way to override specific parts of Skeleton classes that you're using is by using the Tailwind- |
Beta Was this translation helpful? Give feedback.
The problem is that the Skeleton
h1
classes are as specific as tailwind classes, but will always be defined after Tailwind classes in the stylesheet, due to how Tailwind Plugins work.That means that they will always have a higher specificity, since the class that's defined last will win if there's no other differentiator.
So the only way to override specific parts of Skeleton classes that you're using is by using the Tailwind-
!
syntax like so!font-thin
.