alexmingoia / pux-starter-app

Starter Pux app w/ hot-reloading and isomorphic routing and rendering
https://www.purescript-pux.org
BSD 3-Clause "New" or "Revised" License
101 stars 39 forks source link

Opinion about CSS Modules? #16

Closed pigoz closed 7 years ago

pigoz commented 8 years ago

I think CSS Modules is a great idea to produce CSS that is scoped to the current component. Is anyone interested in it?

The upside is Webpack has really great tooling with css modules, the style loader, post css, etc. But of course it's not type safe (like purescript-css).

alexmingoia commented 7 years ago

I would recommend using the style element or style attribute to do scoped CSS. See https://www.purescript-pux.org/docs/css