[WordPress] 外掛分享: ZeroBloat Dark Mode

首頁外掛目錄 › ZeroBloat Dark Mode
全新外掛
安裝啟用
尚無評分
3 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.0 上架:2026-04-27

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ZeroBloat Dark Mode」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

ZeroBloat Dark Mode adds a floating toggle button that lets visitors switch between light and dark mode.
No settings page. No database queries. No bloat.
Just install, activate, done.
Features

Floating toggle button (bottom-right corner)
Respects system preference (prefers-color-scheme)
Remembers user choice (localStorage)
Prevents flash of unstyled content
Shortcode [dark_mode_toggle] for custom placement
Works with any theme
No external dependencies
No tracking or analytics
Under 5KB total

How It Works

Checks user’s saved preference
Falls back to system preference (OS dark mode)
User can toggle anytime with the floating button
Choice is saved for future visits

Styling
The plugin applies sensible dark mode defaults. To customize, add CSS to your theme:
body.mdm-dark {
background-color: #121212 !important;
color: #ffffff !important;
}

延伸相關外掛

文章
Filter
Apply Filters
Mastodon