How to override default inline styling?
For example headings have the following default styling
The following would successfully change the background color but would fail to customize the text color since
fi-header-heading text-2xl font-bold tracking-tight text-gray-950 sm:text-3xl dark:text-whiteThe 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-950Solution
@apply !text-geen-100
Important exists for a reason in css even if it’s frowned upon. Just depends on the specificity.
Important exists for a reason in css even if it’s frowned upon. Just depends on the specificity.