CSS Custom Properties for Theme Management
Organize all your theme colours using CSS variables. We’ll show you the structure that scales well and makes theme switching simple — even when you add new colours later.
9 min
Beginner
April 2026
Learn More
Using prefers-color-scheme Media Queries
Detect and respect your users’ system colour preferences automatically. This guide covers the media query syntax, browser support, and how to combine it with manual toggle controls for the best experience.
8 min
Intermediate
April 2026
Read Guide
Testing Contrast Across Light and Dark Modes
Don’t guess on readability. Learn which tools actually work for testing WCAG contrast ratios in both themes, plus specific techniques for bilingual English and Chinese content that needs special handling.
10 min
Intermediate
March 2026
View Tutorial