Using CSS custom properties like this is a waste

CSS Custom Properties are super powerful. Unfortunately a lot of people are still using them like Sass variables, forgetting that they are scopable and can do some pretty advanced things. This video walks through some cool methodology for making extendable components with a styling API.

Other posts you may enjoy!