Replies: 1 comment
-
if you need the colors at runtime, it sounds like you can use can you provide give an example of what you're trying to do ? related #2421 (reply in thread) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Related to #2346
Problem Statement/Justification
The
token
still returns theCSS Variable
if asemanticToken
has multiple color-mode value (base
,_dark
, etc.)Reproduction Link:
https://play.panda-css.com/q6tGWtQPKV
Proposed Solution or API
First Solution | Preferred | Breaking Change
It would be great if
token
method accepts acolorMode
as the second/third argument, and if thecolorMode
is passed, thetoken
method should return the actual value of a semantic token of that mode.Alternatives
Second Solution
I mean the user must have access to the pure colors at runtime. So the second solution would be exporting another method that contains all the pure values for every color mode.
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions