What Dark mode means
Sites can follow the visitor's system setting with the prefers-color-scheme media query or offer a toggle. Dark themes still need sufficient color contrast and should be tested, not just inverted.
Why it matters for your website
Many people set their phone or computer to dark mode, and a site that respects that choice feels polished and easier on the eyes at night. Done badly, it can make your logo vanish or turn text unreadable. If you offer it, both themes need the same care, or you risk looking broken to part of your audience.
A coffee shop's site follows the visitor's system setting, so phone users with dark mode on see warm brown text on a near-black background, with a light version of the logo swapped in.
Tips
- Use the prefers-color-scheme CSS feature so the site follows each visitor's system setting.
- Prepare a logo version that stays visible on dark backgrounds.
- Check text contrast in both themes against accessibility guidelines.
Common mistakes
- Simply inverting colors, which makes photos look strange and brand colors look off.
- Using pure white text on pure black, which can feel harsh and cause glare for some readers.

