Skip to content

Potential CSS variable clashes #18759

Answered by wongjn
barnabasmolnar asked this question in Help
Discussion options

You must be logged in to vote

You'd use an arbitrary property class like:

<div className="[--custom-var:theme(--color-danger)]">
  <p className="text-(--color-danger)">

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@barnabasmolnar
Comment options

@wongjn
Comment options

wongjn Aug 19, 2025
Collaborator

@barnabasmolnar
Comment options

@wongjn
Comment options

wongjn Aug 19, 2025
Collaborator

Answer selected by barnabasmolnar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants