I am intrigued with the concept of separating Layout and Style. Usually layout is defined using a mixture of html and css while style is defined using css.
The approach of the Elm module “style-elements” is to embed the Layout into the html side and keep it separated from the rest of the style.
I collected here a list of resources that I could find online. I think is a good starting point if you are interested in the subject.
Resources
- Aggregated example
- Book “An Introduction to Style Elements” by Matthew Griffith
- Video of the presentation at Elm Europe 2017 by Matthew Griffith: “Rethinking Style” (slides)
- Tutorial at DailyDrip
- Animation example
- The code in github
- The package