We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having a light and a dark theme, is it possible to generate variables using the CSS light-dark() syntax?
light-dark()
Ex desired output:
:root { /* palette tokens */ --kd-color-black: #000; --kd-color-white: #fff; /* named tokens */ --kd-color-text: light-dark(var(--kd-color-black), var(--kd-color-white)); --kd-color-background: light-dark(var(--kd-color-white), var(--kd-color-black)); }
If yes, how would we need to structure the tokens in tokens studio to get the right JSON output?
The text was updated successfully, but these errors were encountered:
duplicate amzn/style-dictionary#1377
Sorry, something went wrong.
No branches or pull requests
What feature would you like?
Having a light and a dark theme, is it possible to generate variables using the CSS
light-dark()
syntax?Ex desired output:
If yes, how would we need to structure the tokens in tokens studio to get the right JSON output?
Would you be available to contribute this feature?
The text was updated successfully, but these errors were encountered: