Axismundi Theme Switcher
v0.1.9Jiwoon Kim · 2026年7月8日 上架
A light, dark, and auto color-scheme switcher block that remembers what the reader picked.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 620
- 最近更新
- 2026年9月6日
需要 WordPress 7.1+已测试到 7.1.5PHP 8.1+
贡献者
The axismundi/theme-switcher block puts an Auto / Light / Dark control on the
page, as a connected button group or a single cycling button, and writes the
choice to html[data-theme]. The choice is kept in a first-party cookie and
reapplied before the next page paints, so returning to the site does not flash
the wrong scheme.
The block reads its colors, corner sizes and motion from the Material Design
system custom properties, so it looks as intended under any theme that publishes
them, and falls back to Material’s own baseline where a theme publishes none.
The Axismundi theme supports the html[data-theme] contract natively.