Quotidien Shaarli

Tous les liens d'un jour sur une page.

February 25, 2021

A DRY Approach to Color Themes in CSS | CSS-Tricks
thumbnail

The other day, Florens Verschelde asked about defining dark mode styles for both a class and a media query, without repeat CSS custom properties declarations. I had run into this issue in the past but hadn’t come up with a proper solution.