Referencing prefixed custom variables #18309
Answered
by
wongjn
auirarrazaval
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jun 13, 2025
Replies: 1 comment 1 reply
-
|
You can use @theme inline {
/* All defaults */
--color-primary: theme(--color-primary-800);
}You'll get output like: .tds\:text-primary {
color: #0C1461;
}Or you can use @theme inline {
/* All defaults */
--color-primary: --theme(--color-primary-800);
}You'll get output like: .tds\:text-primary {
color: var(--tds-color-primary-800);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
auirarrazaval
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


You can use
theme()instead ofvar(). Thetheme()function will account for theprefix():You'll get output like:
Or you can use
--theme():You'll get output like: