WordPress plugin intelligence profile

Onyx Dark Mode Switcher

Switch between light and dark themes for a more comfortable viewing experience, day or night.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.1.3
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.3 · PHP 7.2
Directory statusactive
Last directory update11 Oct 202622d ago
Active installations300Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Onyx Dark Mode Switcher version 1.1.3 as active, updated 22d ago and tested up to WordPress 7.1.

Overview

About this plugin

A lightweight WordPress plugin that lets your visitors switch between light and dark mode in one click.

Install it, activate it, and you are done. Onyx reads the colors your theme actually renders and works out a matching dark palette on its own, so there is no stylesheet to write and no theme to configure. It works with any WordPress theme.

Dark mode is applied before the page paints, so visitors never see a flash of white before the page turns dark. Their choice is remembered on their next visit.

Everything below is optional. Onyx is useful the moment you activate it, and every setting is there for the day you want to fine tune it.

Ways to Turn Dark Mode On

Dark mode does not have to be a button your visitors go looking for. Choose whichever of these suit your audience, or use them together.

  • One click switch – a floating toggle button on every page
  • OS Aware Dark Mode – follows the visitor’s own system setting, from their very first visit
  • Scheduled Dark Mode – turns on automatically between two times, for example 20:00 to 06:00. Times follow each visitor’s own clock, not your server’s, and windows that run past midnight are handled properly
  • Dark Mode on Start – open the site in dark mode by default
  • Keyboard shortcut – visitors press Ctrl+Shift+D
  • Your own button – point Onyx at any CSS selector on your site and that element becomes the switch
  • Switch in the menu – add the toggle to any WordPress navigation menu, with its own size and margins

Whichever route a visitor takes, their choice is remembered on their next visit.

A Switch Button You Can Style

The floating button is meant to look like part of your design, not like a plugin.

  • 12 light icons and 14 dark icons – suns, moons, sunrise and sunset, cloud and bulb variants
  • 4 shapes – square, round, rounded square and an animating blob
  • 8 screen positions, each with its own offset in pixels
  • Button size and icon size
  • Separate background and icon colors for light mode and dark mode
  • Adjustable drop shadow – horizontal, vertical, blur and color
  • Optional tooltip with your own wording

13 Color Presets, or Your Own

Pick a ready made dark palette or build one yourself. The Colors tab previews your choice live, before you save.

  • 13 presets, from neutral charcoal through deep blue, violet, forest, amber and true black
  • A full custom palette – background, secondary background, text, links and link hover, inputs and placeholders, borders, and buttons including their hover state
  • Live preview that updates as you pick a preset or edit a color
  • Per selector color overrides – for the occasional element the automatic pass gets wrong, give it a CSS selector and set its background, text and border colors directly

Images, Video and SVG

The parts of a page that most often look wrong in dark mode are the ones that carry their own colors. Onyx gives each of them a control.

  • Replace images – serve a different image file in dark mode, one for one. Ideal for a dark version of your logo
  • Invert images – flip specific images so line art and diagrams stay readable
  • Invert SVGs – smart inversion for inline SVG icons and graphics
  • Image grayscale – soften photography in dark mode
  • Video grayscale – the same treatment for embedded video
  • Darken background images – dim CSS background images, with the level under your control

Decide Where Dark Mode Applies

Some pages should never go dark. A checkout, a photo gallery, a landing page built in brand colors.

  • Skip selectors – list HTML tags, classes or IDs that dark mode should leave alone
  • Apply button styles to classes – name the classes your theme uses for buttons so they recolor correctly
  • Disable per post type – switch dark mode off for single entries of any post type
  • Disable per page – tick one box in the Onyx Dark Mode panel in the editor sidebar and that entry always renders in its normal colors

Custom Code

For when you want the last word.

  • Custom CSS – loaded alongside the generated dark mode styles
  • Before and after toggle JavaScript – run your own code every time a visitor switches, on both sides of the toggle

Tools

  • Export every setting to a JSON file as a backup
  • Import that file on another site to set it up in one step
  • Reset everything back to the defaults it shipped with

Built to Stay Out of the Way

  • No flash of light content – the mode is resolved before the browser paints
  • Admin styles and scripts load only on the plugin’s own settings screen, never across your dashboard
  • No third party libraries, no tracking, no bloat
  • Translation ready
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • dark mode
  • dark mode switcher
  • light dark toggle
  • night mode
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.3 · PHP 7.2
Update activity11 Oct 202622d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.1.21.1.3
WordPress compatibility7.1.27.1.3
Version1.1.11.1.2
WordPress compatibility7.0.47.1.2
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.