Releases: chubes4/simple-dark-mode
Release list
v0.3.2
v0.3.1
v0.3.0 — Customizer, site editor, and list-table coverage
Changed
- Close gaps in Customizer and site editor surfaces
- Close gaps on list-table screens and classic meta boxes
Two PRs merged since v0.2.0:
Full audit methodology, verified selectors, and documented genuine blockers in the PR bodies.
v0.2.0 — Close editor and admin dark-mode coverage gaps
v0.1.1 — Cascade fix
Changed
- Reinitialize CHANGELOG via homeboy changelog init
Fixed
- dark-mode CSS losing the cascade to global-styles-inline-css
Why this matters
v0.1.0 looked like it worked but silently did nothing in dark mode: the CSS was served, the media query matched, the selectors were right — but WordPress's block-theme palette is emitted as an inline <style id="global-styles-inline-css"> that loaded after our plugin, reverting --wp--preset--color--base back to #FFFFFF at the same specificity. Fixed two ways simultaneously: an explicit global-styles dependency for load order, plus html:root selector specificity as a safety net.
If you installed v0.1.0, upgrade immediately.
Upgrade
cd wp-content/plugins/simple-dark-mode
git pull origin v0.1.1No database or settings migration needed.
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.