|
|
|
|
|
by satvikpendem
1298 days ago
|
|
By having a style guide with variants, StitchesJS pioneered this but there are others like Vanilla-Extract. With TypeScript, you can then enforce that only a certain variant can be used with a certain component at compile time, basically making sure that your design style guide gets mapped 1:1 to your code. https://stitches.dev/ |
|
I may run into the same issues as the other CSS-in-JS solutions (I only encountered stitch once, and not for a long period of time)