Skip to content

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

crswll
Copy link

@crswll crswll commented Mar 28, 2025

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

Copy link

vercel bot commented Mar 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwindcss-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2025 0:54am

@crswll crswll changed the title Document specific theme keys Document theme keys for property specific colors Mar 28, 2025
@scottbedard
Copy link

Officially supporting these undocumented namespaces would be very helpful!

My team and I would like to use --background-color, --border-color, and --text-color, but are not comfortable doing so yet because it's undocumented. Would tests also be required to officially support these?

Related conversations: tailwindlabs/tailwindcss#17400, tailwindlabs/tailwindcss#17401

philipp-spiess pushed a commit to tailwindlabs/tailwindcss that referenced this pull request Apr 11, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants