It’s time for a redesign, so things may get a little weird around here. Read the release notes to track the progress, or view the old version.

Nate Dillon
  • Work
  • About

Light and Dark Mode

Light mode? Dark mode? Scott and Wes break down the best ways to implement theme switching in CSS, from prefers-color-scheme to manual overrides. Plus, tips on handling shadows, icons, and the dreaded flash of dark mode!

  • ← Previous
  • Next →

Links

  • On compliance vs readability: Generating text colors with CSS • Lea Verou

Explore

  • Work
  • About

Connect

  • Mastodon
  • Bluesky
  • Twitter
  • GitHub
  • LinkedIn
  • Dribbble
  • Letterboxd

Site

  • Release notes
  • Sitemap
  • Tags

Copyright © 1980–2026 D. Nathan Dillon