ZeroBloat Dark Mode

ZeroBloat Dark Mode

Details
View on WordPress

ZeroBloat Dark Mode adds a floating toggle button that lets visitors switch between light and dark mode.

No settings page. No database queries. No bloat.

Just install, activate, done.

Features

  • Floating toggle button (bottom-right corner)
  • Respects system preference (prefers-color-scheme)
  • Remembers user choice (localStorage)
  • Prevents flash of unstyled content
  • Shortcode [dark_mode_toggle] for custom placement
  • Works with any theme
  • No external dependencies
  • No tracking or analytics
  • Under 5KB total

How It Works

  1. Checks user’s saved preference
  2. Falls back to system preference (OS dark mode)
  3. User can toggle anytime with the floating button
  4. Choice is saved for future visits

Styling

The plugin applies sensible dark mode defaults. To customize, add CSS to your theme:

body.mdm-dark {
    background-color: #121212 !important;
    color: #ffffff !important;
}

Details

Plugin code:
zerobloat-dark-mode
Plugin version:
1.0.0
Author:
Outdated:
No
WP version:
5.0 or higher
PHP version:
7.4 or higher
Test up to WP version:
6.9.4
Total installations:
0
Last updated:
2026-04-28
Rating:
Times rated:
0
dark-mode
dark-theme
night-mode
toggle
zerobloat