Prerna Kumari
← Back to the board
til

CSS has a light-dark() function now

Instead of duplicating every color token in a media query, CSS can now pick per-value:

color: light-dark(#26302a, #e3ece5);

It respects color-scheme, so it plays nicely with a manual theme toggle too. This site still uses explicit token blocks (easier to read as a palette), but for one-off values light-dark() is lovely.