Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/iiiorz/wp-colorswitch/archive/refs/heads/main.zipカラースキームを切り替えるボタンを設置できるWordPressプラグイン。 ダークモード切替ボタンとしても、まったく違う色合いへの切替ボタンとしても使えます。 英語と日本語対応。
A WordPress plugin that adds a button for switching color schemes. It works as a dark mode toggle, or as a switch to a completely different color palette. Available in English and Japanese.
特徴 / Features
-
自由度の高い設定: ダークモードに限らず、「セレクタ × 背景色/文字色/枠線色」のルールリストで配色を設定。
-
例外指定: 色を変えたくない要素をセレクタ指定で対象外に。
-
プリセット: 現在のルール+例外指定をプリセットとして保存。JSON でエクスポート/インポート可能。
-
切替ボタン: 絵文字・記号・カスタム文字(絵文字やFont Awesome のクラス名も指定可)から選んでボタンに表示。ページの四隅フローティング or ショートコードで設置場所も選べます。文字スタイル、ボタンサイズ、形状(丸/角丸/四角)、位置オフセット(px)等のカスタマイズをボタンのライブプレビューで確認しながら設定可能。
-
Highly flexible configuration: Not just dark mode — build your color scheme from a rule list of "selector × background color / text color / border color".
-
Exceptions: Exclude elements you don't want recolored by specifying their selectors.
-
Presets: Save the current rules and exceptions as a preset. Export and import as JSON.
-
Toggle button: Choose what the button shows from emoji, symbols, or custom text (an emoji or a Font Awesome class name works too). Place it floating in any corner of the page, or via a shortcode. Text style, button size, shape (circle / rounded / square), position offset (px) and more can be customized while checking the live preview.
インストール / Installation
-
zip を管理画面からアップロードするか、
color-switch.phpとlanguages/をwp-content/plugins/color-switch/に置く -
管理画面で有効化
-
設定 > ColorSwitch から設定
-
Upload the zip from the admin screen, or place
color-switch.phpandlanguages/inwp-content/plugins/color-switch/ -
Activate it on the admin screen
-
Configure it under Settings > ColorSwitch
動作環境 / Requirements
-
WordPress 6.5+ 推奨(日本語は
.l10n.php形式。それ以前の環境向けに.moも同梱 — リポジトリにはテキスト形式の.po/.l10n.phpのみ収録し、.moは配布 zip に含まれます) -
WordPress 6.5+ recommended (Japanese translations use the
.l10n.phpformat; a.mofile is also included for older environments — the repository contains only the text-format.po/.l10n.php, and the.mois included in the distribution zip)
リリースノート / Release Notes
-
v1.0.0 — 初版
-
v1.0.0 — First release
画面イメージ / Screenshots
(1) ルール / Rules
(2)ボタン / Button, (3)プリセット / Presets
支援 / Support
このプラグインが役に立ったら、Ko-fi で開発支援をいただけると嬉しいです。
If this plugin helps you, I'd appreciate your support on Ko-fi.
ライセンス / License
GPL-2.0-or-later