GeistHaus
log in · sign up

CSS light-dark() | 12 Days of Web

12daysofweb.dev

A new CSS function that returns one of two color values based on the current color scheme.

5 pages link to this URL
What I learned by creating a dark mode toggle

The short answer is: quite a lot. The long answer covers some accessibility issues, some new CSS, some slightly older CSS, some high level colour theory, a bit about SVGs, and some typography finessing; all of which I’ll cover in this post.

1 inbound link article en
Blogroll

Blogs and newsletters I check on the regular.

1 inbound link website en
Bookmarks

Hand picked links that I want to share

6 inbound links website en front endwebdeveloperblog