-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default ringColor has opacity baked into it #7800
Comments
Hey! This is because https://play.tailwindcss.com/CwV0YGg3LS?file=config The whole |
Ah, fantastic. Thank you. |
I see that intellisense in play.tailwind.com has class suggestions for |
Just revisiting this, spent like 45 minutes talking through it with @thecrypticace and I think we would like to change this so that the I think what we're going to do is feature flag this fix so that anyone who runs into this problem and finds this issue can see that there's a flag to opt-in to the breaking change early, and then in v4 we can make that the default and mention it in the upgrade guide. Not sure when we will tackle this but leaving this as a note for myself anyways for when we look at this issue again 👍🏻 In the mean time, changing your |
We've come up with a solution here that we think works well and will become the default whenever we hit v4 in the future. A custom default ring color will not have it's opacity modified at all. Given that this is a breaking change it's been put behind a future feature flag ( {
future: { respectDefaultRingColorOpacity: true },
content: [],
theme: {
ringColor: {
DEFAULT: '#ff7700',
},
},
} Given the above config the default ring color will be |
What version of Tailwind CSS are you using?
v3.0.22
What build tool (or framework if it abstracts the build tool) are you using?
postcss 8.4.6, webpack 5.65.0
What version of Node.js are you using?
For example: v17.5.0
What browser are you using?
Edge (Chromium)
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/DXtIUnfIC0
Describe your issue
When trying to set the default color for
ringColor
, it seems like an opacity of0.5
is being applied regardless of the defined color. In my example I wanted to set the default ring color to be#000
, but the output ends up becoming--tw-ring-color: rgb(0 0 0 / 0.5);
.Ideally, I'd like to be able override that default opacity with a defined opacity of my own choosing, or have the color defined for
DEFAULT
just override whatever opacity is being applied.The text was updated successfully, but these errors were encountered: