Skip to content
New issue

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

Theming considerations #11

Open
eliot-akira opened this issue Oct 8, 2024 · 0 comments
Open

Theming considerations #11

eliot-akira opened this issue Oct 8, 2024 · 0 comments

Comments

@eliot-akira
Copy link
Contributor

eliot-akira commented Oct 8, 2024

Someone from Figma dev team proposing a way to implement themes/modes with design tokens.

Interesting discussion with differing opinions and approaches.


To add a dark mode or any other theme, you need to create a separate set of tokens that mirrors your existing tokens.

Light and dark mode tokens and values

In Figma design, we can account for light and dark themes using variable modes.

Variable modes represent the different contexts of our designs. A mode contains a list of values for a variable within a collection, storing one value per variable.

If a variable collection has multiple modes, then we can switch modes on layers and elements to quickly change designs for different contexts. Like a light and dark theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant