ffoodd / sseeeedd

Seed for front-end culture :)
https://ffoodd.github.io/sseeeedd/
15 stars 2 forks source link

Use custom properties to handle components' variants #41

Open ffoodd opened 6 years ago

ffoodd commented 6 years ago

By using custom properties, we may ease contextual variants for components. An example: sizing a component in em would be muc, much easier with things like font-size: calc( 1em * var(--size) );. We should also keep in mind currentColor and inherit values!

And it'll ease theming too :)

ffoodd commented 5 years ago

Some good read on Jonathan Harrell's blog.