April 16, 2020 08:01 pm GMT
Original Link: https://css-tricks.com/creating-color-themes-with-custom-properties-hsl-and-a-little-calc/
Creating Color Themes With Custom Properties, HSL, and a Little calc()
Before the advent of CSS custom properties (we might call them variables in this article as thats the spirit of them), implementing multiple color schemes on the same website usually meant writing separate stylesheets. Definitely not the most maintainable thing in the world. Nowadays, though, we can define variables in a single stylesheet and let CSS do the magic.
Even if you arent offering something like user-generated or user-chosen color themes, you might still use the concept of theming on … Read article “Creating Color Themes With Custom Properties, HSL, and a Little calc()”
The post Creating Color Themes With Custom Properties, HSL, and a Little calc() appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/creating-color-themes-with-custom-properties-hsl-and-a-little-calc/
Share this article:
Tweet
View Full Article