Linux 软件免费装
Banner图

Mawu Dark Mode for the Admin Dashboard, Editor & Website

开发者 uosamuel
更新时间 2026年12月2日 20:43
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPL v2 or later
版权网址: 版权信息

标签

accessibility admin theme dark mode night mode dark theme

下载

0.13.2 0.7.2 0.10.2 0.9.1 0.9.3 0.7.4 0.7.5 0.7.6 0.8.0 0.9.5 0.9.6 0.9.7 0.10.1 0.10.3 0.12.0 0.13.0 0.13.1 0.7.1 0.7.3 0.9.0 0.9.2 0.9.4 0.11.0 0.13.3

详情介绍:

Mawu Dark Mode is a free dark mode for WordPress, for you and for your visitors. In the admin it darkens the whole wp-admin: the dashboard, the menu and toolbar, the block editor (including the page you write on), the Classic Editor, the login page and other plugins' settings screens. On your website it is optional: visitors get a dark mode switch, or the site follows their phone or computer setting. It needs no account, and nothing is tracked unless you opt in. https://youtu.be/bhIW5bZ0BlE In the admin, Mawu is not a floating toggle. Its 26 themes are real WordPress admin color schemes, listed under Users → Profile → Admin Color Scheme next to "Default" and "Midnight". Each person on your site picks their own, so your choice changes nothing for anyone else. Why Mawu? WordPress's built-in color schemes only change the menu and toolbar. The rest of the dashboard stays bright, and so does the block editor's writing canvas. Your website has no dark mode at all. Mawu covers all three: Features How dark mode for visitors works It is off until you turn it on under Mawu → More settings → Frontend. Mawu first uses your theme's own color settings (block themes and many popular themes), so the result looks designed, not filtered. For other themes it adjusts each element's color after the page loads. A tiny script in the page head applies the visitor's choice before the first paint, so there is no white flash, and it works with page caching because nothing changes on the server. For developers When dark mode for visitors is on, <html> gets the class mawu-dark while the page is dark. It is set before the first paint, so your theme CSS can use it: .mawu-dark .site-header { ... }. Mawu Pro adds a JavaScript API with a change event, a class that turns any element into a switch, and PHP hooks. Privacy Mawu does not use cookies for visitors and sends nothing to anyone else. Mawu adds a suggested paragraph to Settings → Privacy → Policy guide, for your privacy policy.

安装:

  1. In your dashboard, go to Plugins → Add New, search for "Mawu Dark Mode", then install and activate it. (Or upload the mawu-dark-mode folder to /wp-content/plugins/.)
  2. Open Mawu in the admin menu, pick a theme in the Admin section and click "Use". You can also pick one under Users → Profile → Admin Color Scheme.
  3. Optional: set your schedule under Mawu → More settings → Schedule (or Users → Profile), and turn on the dark login page in the Admin section.

屏幕截图:

  • Dark mode for your visitors: a live preview of your site beside the settings, with nothing changed until you save.
  • Your website in dark mode with the free "Sun beside moon" switch. Photos are dimmed, never inverted.
  • The dashboard in Graphite: grey with WordPress blue.
  • The block editor, including the page you write on.
  • The dark mode button in the top admin bar: one click switches, and the list picks any of the 26 themes.
  • The schedule: set your hours and the theme, and Mawu warns you if your site clock ignores daylight saving.
  • All 26 Mawu themes in WordPress's own Admin Color Scheme picker.
  • Export your settings and import them on another site, with a preview before anything is saved.

常见问题:

How do I turn on dark mode in the WordPress admin?

Install and activate Mawu, then open Mawu in the admin menu, pick the theme you like and click "Use". The whole admin changes straight away. You can switch back to WordPress's default scheme from the same page.

Can I switch dark mode on and off quickly?

Yes. Click the moon or sun button in the top admin bar, on any screen. It switches at once, without reloading the page, and remembers both your dark theme and your light scheme. Hover the button to pick another theme. Ctrl+Alt+D does the same, and you can pick your own key combination on the Mawu settings page or on your profile. You can also turn on a floating button in the corner, in the Admin section of the Mawu settings page.

Does it work with the block editor (Gutenberg)?

Yes. The toolbar, sidebars, buttons and the writing canvas all follow your chosen theme.

Does it work with the Classic Editor?

Yes. Turn on "Classic Editor: dark writing area" in the Admin section of the Mawu settings page. It applies when the Classic Editor plugin is active.

Can it switch on automatically at night?

Yes, two ways. On Mawu → More settings → Schedule (or your Profile screen), under "When should dark mode be on?", choose "On a schedule", set your hours and pick a theme. Mawu switches to it during those hours and back to your usual scheme the rest of the day. Or choose "Match my device": the admin follows your computer's or phone's light or dark setting, and changes as soon as it does. Both are per person. A click on the dark mode switch still wins until the next change.

Does this change what my site visitors see?

Not unless you turn on dark mode for visitors under Mawu → More settings → Frontend. It is off by default. Admin dark mode never changes your public site.

Will dark mode for visitors work with my theme?

It is tested with the default WordPress themes and popular themes such as Astra, Kadence, GeneratePress, Blocksy, OceanWP and Neve, and with Elementor and other page builders. If a part of your page looks wrong, add its CSS selector to the exclude list, or tick "Never darken" on that page, and please tell us in the support forum.

Will other plugins' settings pages change too?

Yes, in most cases. Mawu reads their real colors, so it works without a list of supported plugins. If something stays light, please open a support topic with the plugin's name.

Can a link open my site in dark mode?

Yes. Add ?mawu=dark to any link, for example https://example.com/?mawu=dark. Use ?mawu=light for light, or ?mawu=auto to follow the visitor's device again. The choice is remembered like a click on the switch, and the parameter is removed from the address bar. It only works while dark mode for visitors is on. Page caches are not affected, because the page itself never changes.

My theme is already dark. Can visitors get a light version?

Yes, with Mawu Pro. Under Mawu → More settings → Frontend, open "Your site's own look" and pick "My site is dark". Your site stays dark as it is, and the switch offers a light version made from the theme you choose. Photos keep their own look.

Can I translate the visitor switch?

Yes. Every word the switch shows or reads out can be translated, for example with Loco Translate. Text you type in the Switch settings is registered with WPML and Polylang, so you can translate it in their string translation screens.

Does it clash with Dark Reader, Smart Invert or Chrome's forced dark?

No. Mawu tells the browser which mode each page is in, so Chrome's forced dark leaves it alone. It also asks Dark Reader to stand down, and if an older Dark Reader paints the page anyway, Mawu steps back so nothing is darkened twice. With iOS Smart Invert, photos are not dimmed a second time. In Windows contrast themes, the switch still shows its state.

Does this send any data anywhere?

Not unless you opt in. Dark mode runs in your browser and your own WordPress install. Pro's visitor stats, if you turn them on, are stored on your own site only (see Privacy). Mawu uses Freemius for Pro licensing, and its opt-in screen on activation can be skipped. See External services above for what is sent if you opt in.

Is there a Pro version?

Yes. Mawu Pro and the Agency plan are available now. The free plugin stays complete: every theme, both editors, the login page, the quick switch, the schedule and dark mode for visitors stay free. Pro adds a theme builder, intensity and OLED black, sunset-to-sunrise and weekly schedules, site controls for roles and screens, more visitor switch designs and colours, dark versions of your images, videos, logo and site icon, rules by category, tag, post type and WooCommerce product (never darken, start dark or hide the switch), a light version for sites that are dark by design, visitor stats (how many visitors use dark mode, and why) with weekly or monthly email reports, and seasonal effects (snow with the Christmas themes, ghosts and bats with the Halloween ones). Agency covers up to 100 sites and has everything in Pro, plus white-label, client lock, settings sync between sites and multisite network controls. Buying Pro also helps pay for Mawu's work, which keeps the free plugin growing. There is a 30-day free trial. A card is required to start, nothing is charged for 30 days, and you can cancel any time: the free features keep working. See Mawu → More settings → Tools.

Can I copy my settings to another site?

Yes. On Mawu → More settings → Tools, "Download settings file" saves one small .json file with the site's Mawu options and your own theme and schedule. On the other site, choose that file and click "Check file". Mawu shows what will change, and nothing is saved until you click Apply. Themes the other site doesn't have are skipped.

Can I add my own CSS for dark mode?

Yes, with WordPress's own Additional CSS: Appearance → Customize → Additional CSS, or in a block theme the Site Editor's Styles → Additional CSS. Start each rule with html[data-mawu-mode="dark"] so it applies only while a visitor has dark mode on: html[data-mawu-mode="dark"] .site-footer { background: #000; } Additional CSS only reaches your public site. For CSS in the admin (added by your own code or an admin CSS plugin), start each rule with body.admin-color- and the Mawu theme's name in lower case, so light schemes never match it: body.admin-color-graphite #adminmenu { border-right: 1px solid #333; }

I make a plugin. How do I make my admin screens match Mawu?

Mawu adjusts other plugins' screens automatically, but your own CSS loads first, so light panels can show for a moment before Mawu reaches them. To avoid that, use Mawu's color variables with your normal color as the fallback: background: var(--mawu-surface, #fff); color: var(--mawu-text, #1d2327); Available: --mawu-bg, --mawu-surface, --mawu-surface-alt, --mawu-border, --mawu-text, --mawu-text-muted, --mawu-accent and --mawu-link. They are set on <body> only when the person viewing uses a Mawu theme, so nothing changes for anyone else.

更新日志:

All versions: Mawu Dark Mode changelog. 0.13.3 0.13.2 0.13.1 0.13.0