[WordPress] 外掛分享: Shilpi Color Modes: Dark Mode, Light Mode & Color Switcher

首頁 › 外掛目錄 › Shilpi Color Modes: Dark Mode, Light Mode & Color Switcher
WordPress 外掛 Shilpi Color Modes: Dark Mode, Light Mode & Color Switcher 的封面圖片
全新外掛
安裝啟用
—
尚無評分
5 天前
最後更新
—
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.0 上架:2026-11-22

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Shilpi Color Modes: Dark Mode, Light Mode & Color Switcher」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Shilpi Color Modes adds a real dark mode (or light mode) to any WordPress site, built from your own colors.

Most dark mode plugins invert or filter your colors automatically. That often breaks logos, photos, gradients and brand colors, and the result looks cheap. Shilpi Color Modes works the other way: you choose exactly which color replaces which. Your background #FFFFFF becomes #0F1318, your brand blue becomes a lighter blue that reads well on dark, and everything else stays as you designed it.
It works with any theme and any page builder, because it changes colors on the finished page: theme CSS, Elementor and Gutenberg global colors, CSS variables, inline styles and SVG icons.
Main features

Exact color swap, no inversion. Make a list of color pairs (your color on the left, its replacement on the right).
Color scanner. Scan any page of your site with one click and see every color used, sorted by how often it appears. Click a color to add it.
Import your palette. One-click import of Elementor Global Colors and the theme.json (block theme) palette.
Smart suggestions. Every color gets a suggested dark or light counterpart that keeps the same hue. Accept it or pick your own.
Contrast check. Each text color shows its WCAG contrast ratio in the new mode, so you can fix colors that would be hard to read.
Works from light to dark, or dark to light. Tell the plugin which mode your design is in, and it creates the other one.
Automatic mode. Follows the visitor’s device setting (prefers-color-scheme) and switches live when the device changes.
Dark mode toggle, five ways. Floating switch, shortcode, “Dark Mode Toggle” Gutenberg block, “Dark Mode Toggle” Elementor widget, and a menu item.
Three toggle styles. Switch, icon, or icon with text. Choose size, position, offsets and labels.
Toggle and device together. Visitors can switch with the toggle at any time, and the site still follows the device when its light/dark setting changes.
Smart memory (optional). Turn it on to keep a visitor’s toggle choice for future visits. It still gives way to the device as soon as the device setting changes.
No flash of the wrong colors. A tiny script sets the mode before the page paints.
Beautiful switch effect. When a visitor clicks the toggle, the new mode spreads out in a circle from the toggle (or a soft fade). The whole page changes at once, with no flicker.
Utility classes for anything else:

scm-show-light: visible only in light mode (for example a dark logo).
scm-show-dark: visible only in dark mode (for example a white logo).
scm-no-swap: the element keeps its original colors in both modes.

Dim images in dark mode (optional), with a class to skip single images.
Exclusions by page ID, post type or CSS selector.
Import and export your settings as JSON to reuse them on client sites.
Cache friendly. Works with page caching and keeps its small script out of JS delay and defer features of popular optimization plugins.
Developer friendly. html[data-color-mode="dark"] CSS hook, scm:change JavaScript event, ShilpiColorModes.set( 'dark' ) API, and PHP filters.

Works with
Elementor, Gutenberg and block themes (Full Site Editing), Divi, Bricks, Breakdance, Oxygen, Beaver Builder, WPBakery, Shilpi, Astra, Kadence, GeneratePress, Hello Elementor, WooCommerce and custom HTML pages. Page builder editors always show your original design.
How to add dark mode to your site

Go to Appearance > Color Modes.
Choose whether your current design is light or dark.
Open the Colors tab and click Scan page.
Click the colors you want to change. A matching color for the other mode is suggested for each one.
Mark your page background color, check the contrast badges, and save.
Preview with the Preview dark and Preview light buttons.

Made by Shilpi Builder.

延伸相關外掛

文章
Filter
Mastodon