Custom Tokens Light/Dark separation not possible? #4605
Replies: 2 comments 8 replies
-
|
Hello, I'm facing the same issue. In Figma, when adding a custom token, both a light and dark value are requested. However, the exported theme fails to generate a light and dark colorScheme, exporting only the dark mode values instead. This appears to be a bug, and a prompt fix would be greatly appreciated given that these are paid features. |
Beta Was this translation helpful? Give feedback.
-
|
I believe you can juse use light-dark when defining your custom token. In PrimeUIX themes, we're deprecating colorScheme object in favor of CSS native light-dark, much simpler. The generated code and the default presets already use light-dark. Custom tokens can support it as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, it seems like that it is not possible to have custom tokens that change depending on light or dark mode.
With the new update to PrimeOne 4.0.0 it would have make sense to create custom variables that are separated into the light and dark modes but sadly my theme designer only displays the values of the most right mode (dark).
Is there any way to go around this issue or is this just not a possibility? Could there be an update in the future?
Beta Was this translation helpful? Give feedback.
All reactions