Skip to content

Document literal values in --value('…') #2171

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Mar 25, 2025

This PR adds documentation for the new --value('…') and --modifier('…') where you can use literal values in strings.

To support literal values, use the --value('literal') syntax (notice the quotes):

@utility tab-* {
  tab-size: --value('inherit', 'initial', 'unset');
}

This will match utilities like tab-inherit, tab-initial, and tab-unset.

Copy link

vercel bot commented Mar 25, 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 25, 2025 3:12pm

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • src/docs/adding-custom-styles.mdx: Language not supported

@philipp-spiess philipp-spiess merged commit 5339333 into main Apr 14, 2025
2 checks passed
@philipp-spiess philipp-spiess deleted the feat/document-literal-values branch April 14, 2025 09:00
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.

2 participants