-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Document theme keys for property specific colors #2178
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Officially supporting these undocumented namespaces would be very helpful! My team and I would like to use Related conversations: tailwindlabs/tailwindcss#17400, tailwindlabs/tailwindcss#17401 |
There are several property-specific color variables available to maintain compatibility with v3. [My team and I would like to use them](#17400), but would feel more comfortable if they were formally supported by v4. This PR adds test coverage for those features. @RobinMalfait has confirmed that these features are not intended to be removed, [see conversation here →](https://discord.com/channels/486935104384532500/546706299010678784/1355213322995110171) @crswll Has opened a PR here for the related documentation - tailwindlabs/tailwindcss.com#2178
Related discussion. |
Hey! I was looking into this today and prepared an exhaustive list but the full list ends up being extremely long and not really useful so for now we're not going to make changes to the website. I did, however, use my research and upload it to a GitHub Gist so here's the definitive version as of Tailwind CSS v4.1: https://gist.github.com/philipp-spiess/83101e0d0fce4d70fa080dbf31560894 Thank you for the PR though! |
Nice! Yeah, I compiled a similar one. I just thought specifically the color based ones would go a long way. I know I use color specific ones regularly. Did you consider maybe a link to the gist around here or would that be weird? https://tailwindcss.com/docs/theme#default-theme-variable-reference |
Nice list 🎉, @philipp-spiess, maybe a link reference your gist should be added in the docs? Quite a lot of people are looking mainly for solutions with Btw I'm just speaking from memory, but I've answered such questions dozens of times, even before my own PR. I think people are most often looking for the specific color-namespaces. |
This PR adds a small section to the
CustomizingYourThemeColors
component to document how to add colors for a certain property specifically.Verified the prefixes with: https://play.tailwindcss.com/YubNFhoMJN?layout=horizontal