How many of you
Wrote CSS Before Nesting
and Color-Mix()?
(Baseline 2023)
How many of youWrote CSS Before Nesting and Color-Mix()
Wrote CSS Before Custom Props?
(Baseline 2017)
How many of youWrote CSS Before Nesting and Color-Mix() Wrote CSS Before Custom Props Wrote CSS Before Sass Built Sites Before CSS Built Sites Before <font>
Are Really Old?
Things…
Used to be Simpler
No Deep-Nesting
No Color Spaces
No Variables
No Build Steps…
Things were also…
Way More Complicated
lol, Grid Systems
.col2of6{/* where is col2of6? */float: left;/* why do we float it? */display: inline;/* what? */width: 31.707%;/* where’s that % from? */margin-right: 2.439%;/* another one? */}
The Meaning Problem…Repetition is hard to maintain. Relationships are hidden. Reasons are unclear.
@function--my-function(--optional, --parameters){result: 4;/* returned value */--any-logic: using custom property syntax;--declarative: like any other CSS context;}