Description
Axismundi Theme Switcher provides the axismundi/theme-switcher block and the
early color-scheme bridge that applies the persisted axismundi_theme cookie
before paint. The Axismundi theme owns the data-theme token selectors; this
plugin owns the UI, persistence, and editor preview sync.
Blocks
This plugin provides 1 block.
- Theme Switcher Switches between Auto, Light, and Dark theme modes.
Installation
- Install and activate the Axismundi theme.
- Upload and activate this plugin.
- Insert the Theme Switcher block where a light / dark / auto control is
needed.
FAQ
-
Does this plugin require an external service?
-
No. The switcher runs locally in WordPress and stores the selected mode in a
first-party cookie namedaxismundi_theme. -
Can this plugin be used without the Axismundi theme?
-
The block still renders and toggles the
data-themeattribute, but the visual
color-scheme change depends on a theme or stylesheet that consumes
html[data-theme] selectors.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Axismundi Theme Switcher” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Axismundi Theme Switcher” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.1.5
- Prepare the package for WordPress.org Plugin Check by removing the hidden
distribution manifest and relying on WordPress.org translation loading. - Prefix render-template variables with the full plugin prefix.
0.1.4
- The front-end switcher now dispatches the
axismundi-theme-scheme-changeevent
(matching the editor preview), so JS consumers that cache theme colours (canvas,
charts, themed visuals) can re-read tokens on a light / dark / auto change.
data-theme plus this event are the public client-side contract.
0.1.3
- Stop applying the persisted theme scheme to the top-level WordPress admin
document. Editor preview and Style Book scheme synchronization now stays
scoped to preview documents, avoiding admin chrome color-scheme leakage.
0.1.2
- Animate the Material Symbols FILL axis on interaction: the cycle icon fills
on hover / focus / press, and the selected segment stays filled. The axis
interpolates continuously (the Axismundi theme registers--md-icon-fillvia
@property); reduced-motion users get the instant state.
0.1.1
- Harden the cycle / segmented icons: notranslate, translate=”no”, and
draggable=”false” on the Material Symbols spans so machine translation
cannot rewrite the ligature text and the glyph cannot be dragged out. - The icon-box contract (1em box, overflow clip) is now inherited from the
Axismundi theme’s icons.css — fixes a header overflow while the icon font
was still loading.
0.1.0
- Initial release: the
axismundi/theme-switcherblock (light / dark / auto)
and the early color-scheme bridge that applies the persisted cookie before
paint. - Block Hooks auto-insertion of the cycle control into the theme header.
- Material Design 3 styling that consumes the Axismundi theme tokens (with M3
fallbacks): a standard icon button for the cycle style and a segmented
control for the default three-mode layout.