Ad space

In-article ad

Ad space
eyJ2IjoxLCJiIjoiODk4NzUxMjU0MTU2NDk5MDUwIiwidyI6ImRlbW8iLCJ0IjoiMSJ9.JNwytzxn68dvLH1Z_gmjrF_npbIlkG_5lKkKaJtx68sNq6xmnGUZVOKYtYqT99no2gj0XcjwsZiev9GzFJK0OA

Head extras

Dark Mode in Centum: Comfortable Reading for Tired Eyes

Roughly half of your readers browse at night, and many keep their phones in dark mode all day. A bright white page in a dark room is more than an annoyance. It is a direct reason to close the tab and go back to search results. Centum dark mode is not an inverted color trick. It is a full color system built for long reading: a comfortable dark background, text contrast that meets accessibility standards, and an instant one-tap switch that remembers the visitor's choice for next time.

[summary]In short: Centum dark mode follows the visitor's system preference automatically, gives them a manual switch whose choice is saved in the browser, and keeps WCAG-grade contrast with images and colors matched to the dark background. It needs no setup from you and works from the moment you install the theme.[/summary]

Why dark mode is a need, not a luxury

Most mobile users turn on dark mode at the system level, and many expect websites to respect that choice. A reader who opens your post at night from bed and meets a glaring white page feels eye strain right away, and will often stop reading. It is a hidden bounce that never shows up in your reports as a clear cause, but it shows up as shorter visits and fewer shares.

The other side is accessibility: good contrast between text and background is a WCAG standard and counts toward the Accessibility score in PageSpeed Insights. Centum scores 100 in that category, with contrast tuned for light and dark modes together.

How does dark mode work in Centum?

The theme uses three mechanisms that work together with no action from you:

  • Respects the system preference: if the visitor's device is set to dark, the blog opens dark from the very first load, without touching any button.
  • A clear toggle: a moon and sun icon in the header lets visitors pick what is comfortable at any moment, and override their system preference if they want.
  • Saves the choice: the visitor's choice is stored in their browser, so they find the blog in the mode they picked when they return a week or a month later.
[alert type="info"]All Centum color variables are defined once at the top of the theme (CSS variables). If you ever want to change the dark background color or the accent color, you will find it in one clear place for both modes.[/alert]

Built for long reading, not just for looks

Bad dark modes are common: pure black with bright white text tires the eyes more than light mode, links vanish in the dark, and images with white backgrounds float like glowing patches. Centum avoids these mistakes with three design rules: a very dark gray background instead of full black to soften contrast, off-white text to cut glare, and an accent color calibrated to stay clear on both light and dark backgrounds. Images show as you uploaded them, with no filters that spoil their colors.

Try it now

This page is the live example. Click the moon icon in the header and watch the instant switch, then reload the page and you will find your choice saved. Notice three things while switching: no flash and no page reload, every element changes together (text, links, boxes and buttons), and reading stays comfortable in both modes. These small details are the difference between a thought-out feature and a cosmetic option.

[related label="Centum"] [faq q="Does dark mode need a plugin or special code?" a="No. It is a built-in part of the theme and works as soon as you install it: system preference detection, the toggle and saving the choice are all ready with no setup."] [faq q="Does dark mode affect blog speed?" a="No. Switching changes one attribute on the page and the color variables follow it, with no extra files to load and no full re-render. Your PageSpeed result is not affected by dark mode."] [faq q="What about a visitor whose browser does not support dark mode?" a="They see the default light mode, perfectly normal. The theme never forces a mode on anyone. It respects what is available."] [faq q="Will dark mode change my brand colors?" a="The main accent color is calibrated to work on both backgrounds, and your logo and images show as they are, unchanged. If your logo is dark text on a transparent background, use a version with a background or a light outline."]

Live example

Dark mode in Centum needs no code and no setting: try it now with the moon button in the header of the demo blog. Centum saves your choice for every page of the blog and remembers it when you return. On a first visit it follows the visitor's system preference automatically.

Copy-and-paste example

To lock dark mode on for everyone, copy these two lines into the ⚙ Theme settings gadget (the first is the link title, the second is the link value). The available values are auto (default), dark and light:

darkMode
dark

Google runs vary slightly, measured 99-100 on a clean install, Dec 1, 2026.

About the author

Ad space