The future of CSS are pre- and post-processors. Let’s explore how we could benefit from a more programmatic approach to writing CSS, and go batshit crazy on Sass.
Demo code to go with this deck: https://github.com/roytomeij/futurecss
The Future of CSSIsn't CSS
View Slide
The Present of CSSIsn't CSS
Hi, I'm @Royadvancedsass.comslides: roy.io/futurecss
advancedsass.comslides: roy.io/futurecss
Pre-ProcessorsvsPost-Processors
What's in a name?
Pre-Processorsextend the CSS spec
Post-Processorsmodify the CSS spec
vs.foo {color: replace-color(red);}.foo {color: red;}
Write intentionrevealing CSS
Variables areold news...
Programming inyour CSS
CSS is amachine language
Creativity > Repetition
Configuration >Search & replace
Fun > Frustration
Sass is great fornon-developers too
To the code!
The following codewas copy & pasted bytrained monkeys.Don't try this at home.