A good deal of thorough and practical ways to use CSS light-dark() instead of preference queries brought to you by @sarajw
Come To The Light-dark() Side | CSS-Tricks
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.
CSS-Tricks (css-tricks.com)