Design Radar
Support
LiveUpdated 2026-11-23 20:18 UTC

CSS tip: dark mode colors without a single media query.

CSS tip: dark mode colors without a single media query. :root { color-scheme: light dark; --bg: light-dark(#fff,…

This is a design post classified by AGK Intelligence as Design-to-code (a tutorial), kept by the Design Radar because it carries real work, not commentary.

CSS tip: dark mode colors without a single media query. :root { color-scheme: light dark; --bg: light-dark(#fff, #18181b); --text: light-dark(#18181b, #fafafa); } Each property gets a light and a dark value, and the page follows the system theme.

Posted by Marko Denic (266.5k followers) 6 days ago · 118 likes · 8.3k views · view the original post on X. Kept by the Design Radar as Design-to-code.

More design work like this

Every post is read and classified by AGK Intelligence: what it is, which market it belongs to, and whether the link is a real tool. 10.8k posts from 5k X accounts over the last 21 days, 3.4k tools, 17 markets. New posts are collected several times an hour and the full ranking is recomputed every hour — last update 2026-11-23 20:18 UTC. Full method.