sseeeedd icon indicating copy to clipboard operation
sseeeedd copied to clipboard

Use custom properties to handle components' variants

Open ffoodd opened this issue 6 years ago • 1 comments

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 avatar Jul 01 '18 17:07 ffoodd

Some good read on Jonathan Harrell's blog.

ffoodd avatar Mar 06 '19 13:03 ffoodd