Skip to content

v0.1.0 — Initial release

Choose a tag to compare

@chubes4 chubes4 released this 21 Apr 00:10
· 13 commits to main since this release

Zero-config system-aware dark mode for WordPress.

Highlights

  • Frontend dark mode via @media (prefers-color-scheme: dark), overriding --wp--preset--color--base / --contrast custom 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_assets hook.
  • 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-mode

Compatibility

  • WordPress 6.0+
  • PHP 7.4+
  • Cleanest flip on block themes using the base / contrast palette convention (Twenty Twenty-Two through Twenty Twenty-Five). Classic themes get body-level fallbacks.

License

GPL-2.0-or-later.