How to Use Antdesign with Tailwindcss Together in a React Project

Tailwinds + Ant design : Button color is white but has own color wnen I hover it

Interesting. Preflight is a set of base styles that Tailwind applies, and it is setting the button background color to transparent.

The solution is to disable Preflight in tailwind.config.js; see the Tailwind documentation.

How to use the dark mode and selection modifier together in TailwindCSS?

I figured this out. I wasn't thinking and realized what I was doing wrong was putting the selection classes on the HTML tag. The HTML tag is where the dark mode class gets applied and due to this, the selection class wasn't a descendant of the .dark mode class. To fix it, I moved the selection classes to the body tag.



Related Topics



Leave a reply



Submit