Making Dynamic Theme Contracts for custom tokens #570
Unanswered
pruthvi2103
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I am loving vanilla-extract and wanted to make a design system around it. The issue i am facing is that I want the consumers of the design system to specify tokens they want to supply to the design system. (like colors, fonts etc) but cant find the correct way of going around it without having typescript errors.
In summary, my design system will have a provider that takes tokens as props and creates themes/Global Themes around it. Is there an example or a good approach to do this?
Beta Was this translation helpful? Give feedback.
All reactions