Use this to override Tailwind CSS classes
Tenacity Tenacity
2.09K subscribers
2,121 views
21

 Published On May 27, 2023

In this video I'll show you an extendable and easily configurable way to "override" tailwind classes. We will write variants and styles for the variants which will give us the implementation and outcome that we wanted without having to actually override any styles.

You may have noticed a tab open in my browser, it's for this library: https://www.npmjs.com/package/classnames

It's very useful for applying conditional styles and if you do that often then yo should check that library out.

#nextjs #react #framework #css #tailwindcss #classnames

show more

Share/Embed