Design tokens: build a site that can change themes
Keep colours, spacing and type in one set of variables, so light mode, dark mode and whole new themes need no redesign.
Avoid pure black, keep contrast and re-check every colour.
Simply swapping black and white produces glare and poor hierarchy. Design the dark palette on purpose.
In light mode, shadows show depth. In dark mode, shadows are hard to see, so use slightly lighter surfaces for elements that are "higher": cards lighter than the page, dialogs lighter than cards.
Check contrast again. The 4.5:1 text rule applies in both themes.
Use design tokens so each colour has a light and a dark value, and respect the system setting:
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
:root { --bg: #121212; --text: #e5e7eb; --card: #1e1e1e; }
}Offer Light, Dark and System, and remember the choice.
Keep colours, spacing and type in one set of variables, so light mode, dark mode and whole new themes need no redesign.
You do not need a lab. Five people, a short list of tasks and an hour of observation will show most major problems.