Replies: 1 comment
-
|
Ah great question! You can only use permutations if you’ve updated your tokens to use the new resolver syntax. You can try to use permutations with |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to configure Terrazzo 2 to generate separate CSS custom properties for light and dark themes.
I used to use
modeSelector, which is now deprecated. I understand that permutations are the recommended replacement, but I'm not sure how to use them with my setup.Can you provide guidance on how to generate a single CSS file with separate selectors for each theme, without splitting the source token file, please?
Example token file structure:
{ "colors": { "background": { "screen": { "$type": "color", "$value": "#ffffff", "$extensions": { "mode": { "light": "#ffffff", "dark": "#000000" } } } } } }Expected output:
terrazzo.config.tswith modeSelectors:Beta Was this translation helpful? Give feedback.
All reactions