GeistHaus
log in · sign up

Come to the light-dark() Side | CSS-Tricks

css-tricks.com

Dark mode interfaces have matured a lot in the past few years. We all know the "traditional" approach using media queries but in this article, Sara Joy demonstrates modern CSS features that make respecting user color scheme preferences pretty darn easy.

11 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
Bookmarks

Hand picked links that I want to share

6 inbound links website en front endwebdeveloperblog
Native HTML light and dark color scheme switching — Vadim Makeev

While there’s no truly native way to build a light/dark color scheme switcher yet, we all try our best to build something that comes close. Some native HTML options are often overlooked in favor of hacky solutions. Let’s make them well-known and widely used while we wait for the proper built-in one.

0 inbound links website en