1
The Future of CSS: Easy Light-Dark Mode Color Switching with Light-Dark()
A function that computes to the first color if the used color scheme is light or unknown, or to the second color if the used color scheme is dark.
It’s a reimplementation of the 1997 Grand Theft Auto engine in JavaScript and WebGL.
Visit bram.us → RSS feedOn Hacker News Oct 2023 – Apr 2025
Web & Frontend 1Tools & Productivity 1Software Engineering 1Design & UX 1
A function that computes to the first color if the used color scheme is light or unknown, or to the second color if the used color scheme is dark.