How to override default inline styling?
For example headings have the following default styling
fi-header-heading text-2xl font-bold tracking-tight text-gray-950 sm:text-3xl dark:text-white
The following would successfully change the background color but would fail to customize the text color since text-green-100
would get overridden by the inline text-gray-950
Solution:Jump to solution
@apply !text-geen-100
Important exists for a reason in css even if it’s frowned upon. Just depends on the specificity....
3 Replies
Solution
@apply !text-geen-100
Important exists for a reason in css even if it’s frowned upon. Just depends on the specificity.
If you set up your theme correctly though .fi-header-heading would be more specific and shouldn’t require important declarations.
Could you elaborate more on this? Here is my setup
in my panel provider
this works nicely