-
What version of Tailwind CSS are you using? v4.1.8 What build tool (or framework if it abstracts the build tool) are you using? Using playground What version of Node.js are you using? Using playground What browser are you using? Chrome What operating system are you using? Mac Reproduction URL https://play.tailwindcss.com/FPv6fpDWw0?file=css Describe your issue I am trying to override the color for dark and light mode with When using developer tools, everything seems right and css variables are correct. But still the shadow is black instead of red. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The default shadow color is part of the shadow definitions. So to change the default color, you'd need to replace the default shadow theme tokens. Furthermore, |
Beta Was this translation helpful? Give feedback.
This is a bug in what seems to be the browser developer tools. If we look at the relevant
@property
rule:We see that
inherits
isfalse
. This means the value from:root
(compiled from your@theme
) does not inherit down. This intended to stop unintentional child shadow color inheritance.The default shadow color is part of the shadow definitions. So to change the default color, you'd need to replace the default shadow theme tokens: https://play.tailwindcss.com/IuIY2QZYCI?file=css
Alternatively, you can use a
shadow-<color>
utility class: https://play.tailwindcss.com/WGXMeWIZdQ