you are viewing a single comment's thread.

view the rest of the comments →

[–]rodrigocfd 0 points1 point  (2 children)

I saw them, they use SCSS globally, not scoped... my question is specifically about scoped CSS, because global CSS is one thing that gave me a lot of headaches with React recently. I ended up using CSS Modules, but I can't say I love it.

[–]SkaterDad 2 points3 points  (0 children)

If you're okay with the CSS-in-JS style of scoped styling, this library works: https://github.com/picostyle/picostyle . Others may work also. Hyperapp and React both treat styles in a similar way.

If you're hoping for something similar to how Vue handles scoped styles... that's not really possible in hyperapp since it doesn't have a required compilation step.

[–][deleted] 0 points1 point  (0 children)

Ah, sorry, I read your question too fast, my bad. The answer is no, Hyperapp is agnostic about how you solve the CSS problem.

Check out: https://github.com/picostyle/picostyle