• v0.3.6 511a115086

    Robin released this 2026-11-21 21:49:13 +01:00 | 0 commits to main since this release

    Plays well with the other plugins of your site.

    What you get

    • Black is black, white is white. WordPress's own black and white no longer change with the mode. Other plugins use them as a sure black and a sure white for their text: in the other mode, they kept them, inverted, and their text could vanish. Where your content uses them as text, they still get a readable value as text. If you had typed a value for them yourself, it is kept.
    • Your theme's own mode, untouched. In the mode your theme was made for, the plugin now sets no color at all: every rule it writes is for the other mode only.
    • Follow the mode from your own code. The lrob-dark-mode:change event on document now also fires when the visitor's system switches between light and dark while your site follows it, not only on a click on the toggle. A component that reads colors once can read them again then.
    Downloads
  • v0.3.5 3b736a6f80

    Robin released this 2026-11-21 21:11:36 +01:00 | 1 commits to main since this release

    Your colors, your way: choose a color for your text, and every corner of your pages follows the mode.

    What you get

    • Pick the color of your text. A yellow accent darkened for a light page can turn amber: if you would rather a blue from your palette for your links, type it in As text, in the window of the color. Its contrast shows next to it, in red when it falls short, and the choice is yours. Buttons keep their yellow. It goes with the export and the import too.
    • Blocks on a fixed background keep their look. A group, a section or a cover whose background you wrote as an opaque value does not change with the mode: its text now keeps the colors it was designed with, instead of colors made for the page around it.
    • Covers that read in both modes. The text of a cover block follows its overlay: when the overlay is a palette color that turns light, the white text turns to your site's dark text color, and the reverse. A cover where the image shows through a faint overlay keeps its text as you made it.
    • More of your content follows the mode. Palette colors written as var(--wp--preset--color--…) in a block's settings or in the content itself (a highlighted word, a span of text) now get their readable value as text, like the colors you pick in the editor. Backgrounds and borders written the same way are left as they are.
    • Up to date by itself after an update. Whether you update from the dashboard, with WP-CLI or automatically, the plugin reads your content again in the background, without waiting for a visit to the administration.
    • Other plugins' screens, more of them readable. In the dark administration, a box in a gradient or in a color made with color-mix() is read as it really is.

    Fixes

    • A palette color set on a block by its CSS variable kept, in the other mode, a value made for another background.
    • The dark administration could misread a box drawn with color-mix() and leave its text hard to read.
    Downloads
  • v0.3.3 d57393bcd3

    Robin released this 2026-11-21 20:39:51 +01:00 | 3 commits to main since this release

    Other plugins' screens stay readable, whatever their script does and whenever you switch.

    What you get

    • Readable from the first second. Texts that a plugin's screen writes once it has opened (a live preview, a notice, a box filled in) now get their readable ink at once, without having to switch the mode back and forth.
    • Readable after a switch. Switching the mode with the toolbar button, or your system switching, no longer leaves a link or a button light on a light box: the colors are measured once the switch is complete.
    • Follows the changes. When a plugin restyles its screen as you work (a color you pick in its settings, a box you open), the texts concerned are measured again, grouped in one pass so that it stays light.

    Fixes

    • On some plugins' screens, a text written by their script after the page opened kept a light color on a light box until the mode was switched.
    • After a switch with the toolbar button, texts with a color animation could lose their readable ink.
    Downloads
  • v0.1.0 22f3d6895b

    Robin released this 2026-11-20 21:25:08 +01:00 | 13 commits to main since this release

    Your block theme, in light and in dark, without redesigning a single page.

    LRob Dark Mode switches your theme's color palette to match each visitor's preference. Your pages, blocks and layout stay exactly as they are.

    What you get

    • Your site follows your visitors. In dark mode on their phone? Your site is dark. In light mode at the office? It's light. It works as soon as you activate the plugin.
    • A toggle they'll actually use. Drop the Light / dark toggle block in your header or footer: automatic, dark or light, remembered on their next visit, with no cookie.
    • No flash of the wrong colors. The right mode is applied before the page appears.
    • You keep the last word on every color. Each palette color gets a proposed value for the other mode, and you can change it or keep it as it is.
    • No surprises. Scan the site finds the colors written in hard, which won't follow the mode, so you can fix them before your visitors notice.

    Good to know

    Lightweight: no external library, font or script. English and French. Updates arrive in WordPress like any other plugin.

    Downloads