Light & Dark Mode

Updated on December 16, 2025

Beautiful in Every Environment

WP Documentation ships with a perfectly crafted dark mode that works automatically, looks stunning, and respects your readers’ preferences — no extra plugins needed.

Try it now: click the moon/sun icon in the header → watch everything transform instantly.

Three Smart Modes (You Choose)

ModeBehaviorBest For
AutoFollows your device/OS setting (default)Most users – just works
LightForces light mode permanentlyBright offices, print, branding
DarkForces dark mode permanentlyNight owls, AMOLED screens, cool vibe

Change anytime in Appearance → Customize → Color Scheme or let readers toggle with one click.

See the Difference (Live Comparison)

Light Mode

  • Clean, high-contrast text
  • Perfect for daylight reading
  • Matches most corporate branding

Dark Mode

  • True black background (saves battery on OLED)
  • Reduced eye strain at night
  • All syntax highlighting adjusted automatically

What Changes in Dark Mode (Everything!)

ElementLight ModeDark ModeNotes
BackgroundPure whiteTrue black (#000)No gray – saves max battery
TextDeep charcoalSoft white (#e2e8f0)High readability
Code blocksLight syntaxDark syntax (One Dark)Uses Shiki + custom dark themes
Mermaid diagramsLight themeDark themeAuto-switches
ImagesUnchangedSlight brightness boostPrevents “washed out” look
Search overlayLight newspaperDark newspaperMatches site perfectly
Sidebar & headerSubtle shadowsElevated cardsFeels premium

Technical Details (Nerd Level)

  • Uses CSS custom properties (–color-frost-* palette)
  • Zero flash on load (prefers-color-scheme detection in <head>)
  • Stores user choice in localStorage → remembered forever
  • Fully accessible (WCAG AA contrast in both modes)
  • Works with print styles (forces light mode when printing)

Customization (Brand It Your Way)

Go to WP Dashboard → WP Documentation → Customize an pick a color you want

Next

Leave a Reply

Your email address will not be published. Required fields are marked *