| 开发者 | kimjiwoon |
|---|---|
| 更新时间 | 2026年7月8日 18:03 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-3.0-or-later |
| 版权网址: | 版权信息 |
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.
No. The switcher runs locally in WordPress and stores the selected mode in a
first-party cookie named axismundi_theme.
The block still renders and toggles the data-theme attribute, but the visual
color-scheme change depends on a theme or stylesheet that consumes
html[data-theme] selectors.
axismundi-theme-scheme-change event
(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.--md-icon-fill via
@property); reduced-motion users get the instant state.axismundi/theme-switcher block (light / dark / auto)
and the early color-scheme bridge that applies the persisted cookie before
paint.