Dark Palette releases
Native Dark Mode for Twenty Twenty-Five and modern WordPress Block Themes.
by Fabio Huwyler · github.com/fabiohuwyler/dark-palette · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/fabiohuwyler/dark-palette/archive/refs/heads/main.zipNative dark mode for modern WordPress block themes.
Dark Palette lets you create a custom dark version of your theme's colour palette.
Instead of replacing stylesheets or inverting colours, it works with your theme's existing theme.json colour presets. Define the dark counterpart for each colour, and Dark Palette remaps those WordPress variables whenever dark mode is active.
Features
- Create a custom dark palette for the active theme
- See original colours beside their dark counterparts
- Native Appearance Toggle block
- Light, Dark and Auto modes
- Respects visitors' system preference
- Remembers the selected mode
- Applies the correct mode before the page paints
- Accessible and keyboard-friendly
- No jQuery or stylesheet swapping
Fine-grained control
Dark mode can be disabled for:
- Individual posts and pages
- Selected block templates
- Archive pages
- Search results
- 404 pages
- Password-protected content
- WooCommerce checkout
- WordPress login pages
When dark mode is unavailable, Dark Palette can hide the toggle, show an information message, or display a disabled toggle with an explanation. The message can be configured globally or overridden for an individual post or page.
Languages
Dark Palette follows the WordPress installation language automatically. The plugin includes English, German, French, Italian and Spanish translations for the WordPress admin, block editor and default frontend message.
Live preview
The settings screen includes a lightweight preview that updates as dark counterparts are changed. It is intended as a quick palette check; the actual site remains the final reference because block styles and layouts vary by theme.
Installation
- Download the release ZIP.
- In WordPress, open Plugins → Add New → Upload Plugin.
- Upload and activate Dark Palette.
- Open Appearance → Dark Palette and configure the palette.
- Add the Appearance Toggle block in the Site Editor.
Compatibility
Dark Palette was designed with Twenty Twenty-Five in mind and is intended for modern block themes that use theme.json colour presets.
Requires WordPress 6.7 or newer and PHP 7.4 or newer.
Author
Made by Fabio Huwyler.
License
GPL-2.0-or-later.
Releases
2 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.