If you need to add !important
to one of your Tailwind classes, you simply need to add !
before the class name.
Here is a crude example:
<div class="bg-red-500 bg-blue-500">
<!-- Insert content here -->
</div>
<div class="!bg-red-500 bg-blue-500">
<!-- Insert content here -->
</div>
**When using this with responsive breakpoints, place it after the variant modifier. **
<div class="md:!bg-red-500">
<!-- Insert conent here -->
</div>
<div class="!md:bg-red-500">
<!-- Insert content here -->
</div>