Reposted by Rob DiMarzo
With style queries now in all browsers, here's my take on the best way to do dynamic color theming with modern CSS:
- Custom properties
- light-dark()
- contrast-color()
- Style queries
- Relative color syntax
(^Features available in all modern browsers)
Read about it ⬇️⬇️
una.im/modern-css-t...
una.im
una.im | Modern CSS theming with light-dark(), contrast-color(), and style queries
Combine three new CSS features to build fully adaptive themed components.