Hello kind people, I have created this repository with two proposals for a new way to use CSS in Elm. https://github.com/pdamoc/elm-powercss-proposal
Inspiration for this approach is from: http://powercss.org/ The first proposal uses a Cmd to update the CSS. The second proposal is more side-effecty but it feels better somehow because it keeps the css closer to the view. The second approach would work better if `main` would be extended to accept a new type like "Page msg" that would bind together html and css (maybe some other head elements too). In other words, if the "withStyle" would not be exposed but would be used in the creation of this Page. I've used the CSS from the PowerCSS examples but the CSS that can be used with this approach can be produced with rtfeldman/elm-css package. Also, I've included in the repository the JS code that could be used now with ports in a way that is very similar to the first proposal. Please take a look and provide any kind of feedback you have. -- There is NO FATE, we are the creators. blog: http://damoc.ro/ -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
