Tailwind index css styles override class styles

21 hours ago 1
ARTICLE AD BOX

I would have an index.css file that would set some initial styles like:

h1, h2, h3, h4, h5, h6 { @apply text-gray-800 }

and in few instances would like to set

<h6 class="text-primary-500">text</h6>

I know i can use "!" to make it work, but I'm wondering is there a way to reverse the styling priorities. I am using tailwind 4 (exact version 4.1.18)

Thanks in advance!

Read Entire Article