Title: ZeroBloat Dark Mode
Author: the tree
Published: <strong>2026 年 4 月 28 日</strong>
Last modified: 2026 年 4 月 28 日

---

搜尋外掛

![](https://s.w.org/plugins/geopattern-icon/zerobloat-dark-mode.svg)

# ZeroBloat Dark Mode

 由 [the tree](https://profiles.wordpress.org/muradt20/) 開發

[下載](https://downloads.wordpress.org/plugin/zerobloat-dark-mode.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/zerobloat-dark-mode/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/zerobloat-dark-mode/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/zerobloat-dark-mode/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/zerobloat-dark-mode/#developers)

 [技術支援](https://wordpress.org/support/plugin/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

 1. Checks user’s saved preference
 2. Falls back to system preference (OS dark mode)
 3. User can toggle anytime with the floating button
 4. 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;
    }
    ```

## 安裝方式

 1. Upload the `zerobloat-dark-mode` folder to `/wp-content/plugins/`
 2. Activate through the ‘Plugins’ menu
 3. Done. A toggle button appears on your site.

## 常見問題集

### Where are the settings?

There are none. The plugin uses sensible defaults. If you need customization, add
CSS to your theme.

### Can I move the toggle button?

Use the shortcode `[dark_mode_toggle]` to place it anywhere. The floating button
will still appear unless you hide it with CSS:

    ```
    .mdm-toggle:not(.mdm-toggle-inline) { display: none !important; }
    ```

### Does it work with my theme?

It works with most themes. Dark mode is applied using CSS with `!important` rules
to override theme styles.

### Can I customize the colors?

Yes, add CSS to your theme targeting `body.mdm-dark`. See the Styling section above.

### Does it remember the user’s choice?

Yes, it saves the preference in localStorage and restores it on next visit.

### Does it respect system dark mode?

Yes, if the user hasn’t made a choice, it follows the OS preference.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈ZeroBloat Dark Mode〉的開發相關工作。

參與者

 *   [ the tree ](https://profiles.wordpress.org/muradt20/)

[將〈ZeroBloat Dark Mode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/zerobloat-dark-mode)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/zerobloat-dark-mode/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/zerobloat-dark-mode/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/zerobloat-dark-mode/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/zerobloat-dark-mode/)。

## 變更記錄

#### 1.0.0

 * Initial release

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **3 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/zerobloat-dark-mode/)
 * 標籤:
 * [dark mode](https://tw.wordpress.org/plugins/tags/dark-mode/)[dark theme](https://tw.wordpress.org/plugins/tags/dark-theme/)
   [Night Mode](https://tw.wordpress.org/plugins/tags/night-mode/)[toggle](https://tw.wordpress.org/plugins/tags/toggle/)
   [zerobloat](https://tw.wordpress.org/plugins/tags/zerobloat/)
 *  [進階檢視](https://tw.wordpress.org/plugins/zerobloat-dark-mode/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/zerobloat-dark-mode/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/zerobloat-dark-mode/reviews/)

## 參與者

 *   [ the tree ](https://profiles.wordpress.org/muradt20/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/zerobloat-dark-mode/)