Skip to main content

Dieter Raber

Dieter Raber is a web developer from Luxembourg with a career that spans over two decades. These days he is working as a trainer and author in the field of online assessment.

Article

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 that’s 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 aren’t 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()”