-
Notifications
You must be signed in to change notification settings - Fork 2
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
Documentation: Theme Switching #24
Comments
Instead of Themer, Figma is natively supporting swap libraries. |
@gossi If I understand this correctly, it seems like if we have...
...then when we switch the context and publish the styles (Red -> Blue) then all our existing projects will change to be Blue? Thanks for helping me through this! |
The setup you are describing is so extremly valid, it is so obvious, that I haven't thought about that. I was only testing it with one product in mind. That said, I tried to re-create that situation and ended up failing for two reasons:
So, I only have the situation of two themes and a component file. I know I can swap between them using themer. I am wondering, if figma is offering open source plans. I will reach out. For the time being, I'm sorry, I can neither test nor verify this and provide additional help onto this. We must be patient now. |
That video should help you going I think: https://www.youtube.com/watch?v=9Kq33r_gq0E I've written new docs for the figma plugin (will be on the docs for the whole theemo project). I gave some advice to using and sharing themes within figma and also to this issue. But best answer is this video above. |
Switching themes is nowhere greatly documented apart from this article: https://gos.si/blog/full-featured-themes-in-figma/
Setup:
Workflow for switching themes in your component library:
a. Define design tokens
b. Define contexts
c. Create references
d. Publish styles (Figma will prompt you)
e. Create theme in Themer (or update existing one)
a. Update imported styles (Figma will prompt you)
b. Open Themer
c. Select theme and apply it to the page
Workflow for switching the context in your component library:
a. Open Style References plugin
b. Switch context
c. Publish styles (Figma will prompt you)
a. Update imported styles (Figma will prompt you)
A limitation is this: You cannot change the context of a theme from the component document - will be tackled by #9
The text was updated successfully, but these errors were encountered: