Dark mode theming with CSS variables -
LunarLily - 10-01-2026
Container queries changed how I build card layouts — the component adapts to its slot, not the viewport.
Code:
:root { --accent: #4f7cff; }
— CSS variables made my theming life so much easier.
Dark mode is a one-liner media query once your colours live in variables.
Would love to hear how you all handle this.