Thread Rating:
5 hours ago
Dark mode has gone from a nice extra to something visitors simply expect. Designing for both modes is trickier than flipping colours, though.
A few things I've learned building themes that work in both:
How do you handle it in your projects? Do you build both modes from the start, or add dark mode later?
A few things I've learned building themes that work in both:
- Use CSS variables for every colour. Switching modes then means changing one set of variables, not hunting through hundreds of rules.
- Don't use pure black. A dark navy or charcoal background is easier on the eyes and keeps shadows visible.
- Check contrast in both modes. An accent colour that looks great on dark can be unreadable on white.
- Follow the system setting by default, then let people choose.
- Watch images and logos. A logo with a dark wordmark disappears on a dark background.
How do you handle it in your projects? Do you build both modes from the start, or add dark mode later?
« Next Oldest | Next Newest »
Users browsing this thread:
