June 30, 2020 11:58 pm GMT
Original Link: https://www.sarasoueidan.com/blog/style-settings-with-css-variables/
Global and Component Style Settings with CSS Variables
The title of this Sara Soueidan article speaks to me. I’m a big fan of the idea that some CSS is best applied globally, and some CSS is best applied scoped to a component. I’m less interested in how that is done and more interested in just seeing that conceptual approach used in some fashion.
Sara details an approach where components don’t have too much styling by default, but have CSS custom properties applied to them that are ready to … Read article “Global and Component Style Settings with CSS Variables”
The post Global and Component Style Settings with CSS Variables appeared first on CSS-Tricks.
Original Link: https://www.sarasoueidan.com/blog/style-settings-with-css-variables/
Share this article:
Tweet
View Full Article