Replies: 1 comment
-
Yes! We've done some exploring with an We also would like to work on providing Sass and Typescript-based APIs to help generate and use tokens. It's on our roadmap for the future. |
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.
-
Hi everyone, I would like to offer a suggestion.
I think you should provide a component called ThemeProvider(e.g. MaterialWebProvider), This component will provide a set of color tokens and switch theme modes through a few simple properties(sourceColor, dark).
Like other frameworks (such as fluent react), they all provide such a component, which can quickly create a set of tokens through a few simple parameters, which will greatly improve the efficiency of the code.
Beta Was this translation helpful? Give feedback.
All reactions