Design system following Google's Material Design 3 specs #597
Replies: 2 comments 5 replies
-
Looking at the implementation it looks like you've created some kind of custom wrapper function around It is preferable for you to define and apply styles in the same file as that gets more optimised. The fewer abstractions you create the better. I also some code that looked like this: styles={[theme.elevationStyles, ...asArray(innerStyles?.elevation)]} Again, I'm not sure what the |
Beta Was this translation helpful? Give feedback.
-
I agree that the fewer abstractions the better for stylex. Using stylex to create a design system works, has several advantages but is not always straightforward in my opinion and require sometimes to deviate from the recommended way of doing things. The reason why I use a strings based
Also, style names are type-safe which is convenient and future-proof for users who want to write their own styles. Finally, So when I use Does it make more sense to you? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using StyleX to create a design system following Google's Material Design 3 specs. It is fully themable, supports dark mode and has type-safe APIs, styles and themes.
https://github.com/sixui/sixui
No documentation website yet, but the README.md is full of screenshots and storybook is deployed on https://www.sixui.com.
It is not bulletproof yet and although it is already used in some projects in production, please consider it as a non-stable library.
Example with AssistChip component (demo on storybook, Google specs):
Beta Was this translation helpful? Give feedback.
All reactions