← All blogsDesign and UX

Dark mode design: best practices for apps and sites

Many people use dark mode all day. Done badly, it hurts readability instead of helping.

Website shown in light and dark themes side by side

Quick answer

Dark mode design is a theme that uses dark backgrounds with light text, designed to reduce glare and suit low-light use. Good dark mode design uses carefully chosen colours rather than pure inversion, keeps text contrast high and follows the user's device setting.

Key takeaways

  • Avoid pure black backgrounds and pure white text.
  • Keep text contrast at or above WCAG minimums.
  • Respect the user's system preference.
  • Test images, shadows and charts in both themes.

Why offer dark mode?

  • Comfort in low light.
  • Battery savings on some screens.
  • Personal preference and accessibility needs.
  • A modern, polished feel.

How do you choose dark colours?

ElementTip
BackgroundUse a deep grey or navy, not pure black
TextUse off-white for body text
Accent coloursSoften bright colours that vibrate on dark
ElevationLighten surfaces slightly instead of using heavy shadows

How do you check contrast?

WCAG asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text. Check both themes, not just one.

Remember that very high contrast can also tire the eyes, so aim for readable rather than extreme.

How do you build it?

  1. Define colours as variables, such as CSS custom properties.
  2. Use the prefers-color-scheme media query to follow system settings.
  3. Offer a manual toggle and remember the choice.
  4. Test every screen, form and email.

What commonly breaks?

  • Logos with white backgrounds.
  • Charts using colours that vanish on dark.
  • Images with fixed light borders.
  • Third-party widgets that ignore the theme.

A thoughtful dark mode design plan lists these early.

Quick tests before you ship

  • Read a long article in a dim room.
  • Check every form field and error state.
  • View your site on a phone with the theme switched.
  • Zoom the page to 200 percent.

If anything is hard to read, adjust the palette. Ask a few users with different eyesight to try it too. Fresh eyes spot problems you have stopped seeing, and their feedback is cheap to collect.

Bottom line

Do not simply invert your colours. Choose a dark palette on purpose, check contrast and respect the visitor's system setting.

Sources and further reading

Checked against the sources above and our own project experience. Last reviewed 7 October 2026.

Published by Kedra Digi

Kedra Digi is an Australian digital agency covering development, design, digital marketing and HR. This guide draws on work with real client projects.

Frequently asked questions

Is dark mode better for eyes?
It can be more comfortable in dim light, but there is no proof it is better in all conditions. Offer both.
Should dark mode be the default?
Follow the visitor's system setting by default.
Does dark mode affect SEO?
Not directly. It affects readability and experience, which matter for users.

Talk to our team

Want help putting this into practice?

Tell us what you're working on. We'll reply within one business day with honest advice.