DEV Community

Discussion on: Atomic CSS-in-JS

Collapse
 
sebastienlorber profile image
Sebastien Lorber • Edited

Thanks

Isn't the last section answering your concerns? For me tailwind + atomic css in JS possible.

Encoding your design tokens as shortcuts in your UI primitives is always a productivity boost, it's not so related to tailwind. There are many ways to do so. It's not because you use atomic CSS-in-JS that you need to put random string literals copy pasted, people doing CSS-in-JS are used to use constants, theming, colors and sizes aliases... Also look at styled-system to see a very productive alternative to Tailwind in a component world.

Note: you can use Fela (and some other CSS-in-JS solutions) with vanilla JS, this is not coupled to JSX or React usage.