v0.1.0 — Initial release
Zero-config system-aware dark mode for WordPress.
Highlights
- Frontend dark mode via
@media (prefers-color-scheme: dark), overriding--wp--preset--color--base/--contrastcustom properties for block themes and body-level fallbacks for classic themes. - wp-admin dark mode — postboxes, forms, list tables, notices, screen meta, pagination, and the login screen all follow the system preference.
- Block editor dark mode — chrome (header, sidebar, inserter, toolbars, popovers) plus the canvas itself via the
enqueue_block_assetshook. - Zero configuration. No settings page, no toggle, no JavaScript. Install and activate.
- Preserves theme accent colors so brand identity survives the flip.
Install
cd wp-content/plugins
git clone https://github.com/chubes4/simple-dark-mode.git
wp plugin activate simple-dark-modeCompatibility
- WordPress 6.0+
- PHP 7.4+
- Cleanest flip on block themes using the
base/contrastpalette convention (Twenty Twenty-Two through Twenty Twenty-Five). Classic themes get body-level fallbacks.
License
GPL-2.0-or-later.