Using the CSS light-dark() function instead of duplicating color values for medi...

@scy@chaos.social

Using the CSS light-dark() function instead of duplicating color values for media queries and JavaScript `[data-theme='dark']`-style overrides feels _so_ much better.

danholloran.me/posts/css-light

Way more information about modern ways to do light and dark mode in CSS is of course available on CSS-Tricks:

css-tricks.com/come-to-the-lig

#CSS #WebDev