Building a Dark Mode That Doesn’t Look Like an Afterthought
Colour tokens, contrast checks and the one CSS variable trick that made dark mode maintainable.
Dark mode is built from the same tokens with a second palette, which keeps it maintainable instead of a pile of overrides.
What ships in the box
Fonts load from a single request with sensible fallbacks, so text is readable before the web fonts arrive.
Launch Crate ships with nine starter themes built on the same component kit, so switching themes never breaks your content.
- Nine starter themes, all responsive
- Light and dark palettes for each
- Child theme scaffold command
- Component kit with buttons, badges and cards
“Programs must be written for people to read, and only incidentally for machines to execute.”
— Harold Abelson and Gerald Jay Sussman, Structure and Interpretation of Computer Programs
Making it yours
Each theme is a set of design tokens plus a handful of templates. Change the tokens and most of the look follows automatically.
:root {
--pop-cyan: #5CE1E6;
--pop-yellow: #FFDE59;
--pop-pink: #FF90E8;
--shadow-hard: 4px 4px 0 0 #000;
}
Keeping updates painless
Child themes let you override one template at a time and still receive updates for everything you did not touch.
Every theme is tested at four screen widths and with the browser font size doubled before it is added to the gallery.
Themes compile their CSS at build time, so the browser downloads one small stylesheet instead of a framework.
Template overrides are listed on the system screen, which makes it obvious what to check after an update.
How we work on posts like this
Before publishing, we test every instruction on a clean install of the current release. It is slow and occasionally embarrassing, because the steps we remember are not always the steps the software needs, but it means the post still works for someone reading it months later.
Questions or a better approach? Leave a comment below, or reply to the build-log email and we will fold the best ideas into the next release.
The dark mode section alone was worth the read.
Does this change anything for sites running a child theme?
Bookmarked. Our support team is going to use this as onboarding material.