5 ms·
CSJS author here, thanks for the plug! I think CSJS fairly unique in comparison to the numerous alternatives in that it: 1) Can be used without any tooling wha
by rtsao 11y ago
CSJS author here, thanks for the plug! I think CSJS fairly unique in comparison to the numerous alternatives in that it:
1) Can be used without any tooling whatsoever. It's just plain JS.
2) Doesn't reinvent the wheel. You can use regular CSS (normal syntax, pseudo classes, media queries) and regular JS (variables, modules) together, allowing you to use the best of both worlds.
I loved the ideas behind CSS Modules but wasn't sure about the complexity of re-implementing a new module/variable syntax into CSS. Why not just use what is already provided in JavaScript?
- shados 11y agoWhat's the story for tooling though? I haven't looked at CSJS much, just the readme, but it seems like the CSS bit essentially is a string, so you don't get the same kind of tooling you can from either CSS files or javascript objects, because it's all strings. Am I just missing something obvious?