tailwind-override | Override Tailwind CSS Classes | Plugin library
kandi X-RAY | tailwind-override Summary
kandi X-RAY | tailwind-override Summary
Override Tailwind CSS Classes
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tailwind-override
tailwind-override Key Features
tailwind-override Examples and Code Snippets
Community Discussions
Trending Discussions on tailwind-override
QUESTION
I have enabled dark mode for my website and it is working fine for the most part. But I have just one strange behavior. A div element has an inner shadow defined in the style attribute. In dark mode, I want this shadow to just disappear. So I wrote this:
...ANSWER
Answered 2021-Mar-10 at 21:24Inline style has the highest level of specificity, it won't be overridden by just adding classes to the element.
Edit:
My suggestion is to move your inline style to a regular css selector.
Edit v2:
As Tailwind docs says:
...
dark
variants are only generated for color-related classes, which includes text color, background color, border color, gradients, and placeholder color.
I think dark:shadow-none
doesn't actually exists (that's why shadow-none
works, but dark:shadow-none
don't). If that's true, unluckily, the final answer is that, and giving an alternative will go far away from the scope of this question.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tailwind-override
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page