[v4] Default border, divide or outline color not overriding currentColor #14508
zachhornsby
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey! We added *,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: red;
outline-color: blue;
} There's no way to make the default divide color different from the default border color this way though. Useful feedback, maybe we can add CSS variables for controlling these 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of Tailwind CSS are you using?
v4.0.0-alpha.21
What build tool (or framework if it abstracts the build tool) are you using?
N/A
What version of Node.js are you using?
N/A
What browser are you using?
Firefox
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/6ETpog7Ldp
Describe your issue
This works as expected with
ring
, but when setting a default color forborder
,divide
oroutline
, it doesn't overridecurrentColor
as the fallback when no specific color utility (likeborder-*
,divide-*
oroutline-*
) is applied.I believe that if a default is set, using
border
,divide
oroutline
alone should use that default instead ofcurrentColor
. Currently, I'm having to define another variable to generate a utility class when I want to use the default value.Is this behavior intentional? If so, why is
ring
different?Beta Was this translation helpful? Give feedback.
All reactions