Linux 软件免费装
Banner图

SVisciano - Light-Dark Theme Mode

开发者 svisciano
更新时间 2026年3月12日 01:36
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

theme light dark dark mode dark theme

下载

0.1.0

详情介绍:

SVisciano - Light-Dark Theme Mode allows you to create a secondary color variant of your website and let users switch between the default theme and a custom override. The plugin does not force a predefined light or dark style. Instead, it works on top of your existing design: • The default theme (switch OFF) keeps the original colors used to build your site. • The alternate theme (switch ON) applies custom color overrides based on a mapping system you define. • The switch in automatic mode works for both themes and decides to use default or alternate based on the user's browser preferences. This means your base theme can be either light or dark. You decide which version is the default, and the plugin generates the secondary variant accordingly. How it works:
  1. Select your base theme (Light or Dark) in the settings.
  2. Scan a page of your site to automatically detect color variables.
  3. Map the original color variables to the custom override colors you want to apply.
  4. Place the shortcode anywhere on your site to display the theme switcher.
The scanning system helps you detect color variables used on a specific page, making the mapping process easier. However, you are not limited to the scan results: you can manually enter any color variable name and define its override value. When users activate the switch to the alternate theme of your base theme, the mapped colors are dynamically replaced with your custom ones, creating a clean secondary theme without modifying your original design. Key Features: • Base theme selectable (Light, Auto or Dark) • Custom color override mapping • Automatic variable scanning system • Manual variable mapping supported • Multiple toggle switch styles • Shortcode-based placement • Lightweight and compatible with most themes SVisciano - Light-Dark Theme Mode gives you full control over how your secondary theme looks, without locking you into a predefined dark mode system.

安装:

Automatic Installation
  1. Go to "Plugins" > "Add New" and search for "SVisciano - Light-Dark Theme Mode";
  2. Click "Install", then "Activate";
  3. Go to "Settings" > "SVisciano - Light-Dark Theme Mode" to configure the plugin.
Manual Installation
  1. Download the plugin zip file
  2. Go to "Plugins" > "Add New" > "Upload Plugin", and select the ZIP file;
  3. Click "Install", then "Activate";
  4. Go to "Settings" > "SVisciano - Light-Dark Theme Mode" to configure the plugin.

屏幕截图:

  • Example of Dark Mode
  • Plugin settings page inside the WordPress admin panel.

升级注意事项:

0.1.0 Initial release.

常见问题:

Does the plugin work with an already light or dark theme?

Yes! The plugin does not enforce a predefined style. You choose which theme (Light or Dark) will be the base, and the plugin applies the alternate theme when the switch is activated.

How does the "Auto" mode work?

The "Auto" mode detects the user's browser preference. If the user has dark mode enabled in their system, the alternate dark theme is applied, otherwise, the alternate light theme is applied.

Does the plugin automatically map all site colors?

No. The plugin only scans a page to detect color variables. You must manually map each original color variable to a custom override color.

Can I place multiple toggle switches on a page?

You can insert the shortcode anywhere, but only one toggle per page will work. If you add multiple toggles, only the first one will be functional.

Are multiple toggle styles available?

Yes. You can select the default toggle style in the plugin settings, and the shortcode will display it accordingly.

Do the override colors replace the original theme colors?

No. The base theme colors remain intact. When the switch is active, only the mapped override colors are applied. Switching OFF restores the original base theme.

Is the plugin compatible with any theme?

The plugin works at the CSS level and does not rely on any theme-specific logic. In practice, it can be used with any theme, but the actual results depend on the color variables present and how the theme is structured.

更新日志:

0.1.0