Discover · css-tricks.com

No picture published by css-tricks.com

Using light-dark() without getting caught out

CSS-Tricks css-tricks.com

I honestly hadn't thought about "getting caught" by light-dark() — particularly when leaning heavily on it for this site — but Martin Underhill explains the user and rendering considerations, making me reflect on my choices as well.

Using light-dark() without getting caught out originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.

More ways to use this

Open on another device

Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

Names and references

  1. Dark — person

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

More like this

Also from CSS-Tricks

  1. RSS Club: Preview Art-Directed Scrollytelling ArticleGeoff Graham css-tricks.com
  2. Style Queries as Conditional ModifiersKevin Powell css-tricks.com
  3. Using Fallbacks for a Robust Front-EndSteve Frenzel css-tricks.com
  4. Dev Material ArchiveGeoff Graham css-tricks.com
  5. Andy Clarke answers six questions about Standout Designs for the WebGeoff Graham css-tricks.com
  6. scroll-state()John Rhea css-tricks.com