WordPress plugin intelligence profile

Dark Mode Block

Dark Mode Block is a simple yet powerful WordPress block plugin that allows you to enable dark mode for your website, enhancing readability and reduci …

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.4
Current version0.1.1
WordPress coverageTested up to WordPress 6.4
Minimum stackWP 5.7 · PHP 5.6
Directory statusactive
Last directory update6 Mar 20242y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org rating5.0 / 5 from 4 ratings
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 Dark Mode Block version 0.1.1 as active, updated 2y ago and tested up to WordPress 6.4.

Overview

About this plugin

Dark Mode Block is a simple yet powerful WordPress block plugin that allows you to enable dark mode for your website, enhancing readability and reducing eye strain without altering your website’s colors. Give your users the flexibility to switch between light and dark modes seamlessly.

Designed to be lightweight and efficient the whole frontend script weights less than half of a kb gzipped 😉

Features:

– Toggle dark mode with a user-friendly icon.

– Preserve your website’s color scheme while improving readability in low-light environments.

– Enhanced user experience with reduced eye strain.

– Customizable

Make your website more accessible and user-friendly by offering a dark mode option. With Dark Mode Block, your users can enjoy your content without compromising on aesthetics.

Usage

  • After activating the plugin, add the “Dark Mode” block to your WordPress page or post editor.
  • Publish or update your content.

Customization

Unleash your creativity! This block is designed to be fully customizable graphically, and since it’s entirely CSS-based, it’s straightforward for anyone to modify and adapt it according to their own taste or template.

You even have control over how the dark mode is applied! Currently, I’ve applied an invert filter on the background as I don’t know the variables in your template.

However, you have the flexibility to make it even better by setting the text color as the background and vice versa.

Here’s how to do it:

  • Add the following code to your functions.php file.
  • Edit the $custom_css in order to fit your preferences

First dequeue the current style in this way:

add_action( 'wp_enqueue_scripts', function () { /** dequeue the default dark mode */ wp_dequeue_style( 'codekraft-dark-mode-style' ); }, 9 );

Then add yours!

dark-mode-switch::before { content: '🌚' }"; echo "<style id='dark-mode-custom'>$custom_css</style>"; }, 20 );

Please support the plugin posting your custom style and a screenshot in the WordPress support forum section!

WordPress.org metadata

Plugin tags

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

  • dark mode
  • block
  • css
  • theme
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.4

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.4.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.4
Minimum requirementsWordPress 5.7 · PHP 5.6
Update activity6 Mar 20242y 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

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

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.