Usage of some tokens
#2271
-
Can someone please explain how these design tokens such as --on-primary, --on-secondary etc are used? I have tried to find their relevance with no luck. |
Beta Was this translation helpful? Give feedback.
Answered by
Sarenor
Nov 29, 2023
Replies: 1 comment 2 replies
-
We also offer a Discord if you want faster answer/a conversation.
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
devtrix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We also offer a Discord if you want faster answer/a conversation.
--on-primary
is not a design token, it's a css variable that's used in design tokens.So if you apply
bg-primary-500
to a div, the--on-primary
variable should be applied to the text color.