Toggle Dark Mode on Mac via Spotlight
In this article
Yes, you can toggle dark mode on a Mac using Spotlight, but not with a single direct command. Instead, you use Spotlight to open the relevant System Settings (or System Preferences) pane, then switch the appearance with a keyboard shortcut or a quick click. This guide shows you the fastest ways to do it, plus how to set up a true one-key toggle if you want one.
Why Spotlight Doesn't Have a Direct Toggle
Spotlight is a search launcher, not a command interpreter. When you type "dark mode" into Spotlight, it looks for apps, files, and settings pages that match the text. It won't run a script or flip a setting on its own. On modern macOS versions (Ventura and later), typing "dark" or "appearance" brings up the Appearance settings pane as the top result. Pressing Return opens that pane directly, which is the closest built-in shortcut.
On older macOS versions (Monterey and earlier), the same search opens the General pane in System Preferences, where the appearance options live. So Spotlight gets you to the right place in one keystroke, but the actual toggle still requires a click or a keyboard shortcut once you're there.
How to Toggle Dark Mode via Spotlight (Step by Step)
- Press Command + Space to open Spotlight.
- Type "dark mode" or "appearance". You'll see the Appearance settings pane appear under System Settings (or General under System Preferences on older macOS).
- Press Return to open it.
- In the Appearance section, click Dark (or Light) under the "Appearance" heading. On macOS Ventura and later, this is a set of three buttons: Light, Dark, and Auto. On older versions, it's a radio button group.
That's the complete built-in method. It takes about three seconds once you're used to it.
Faster: Add a Keyboard Shortcut
If you toggle dark mode often, the most efficient way is to assign a global keyboard shortcut. macOS doesn't expose a default shortcut for this, but you can create one in System Settings (or System Preferences) with a tiny bit of setup.
- System Settings → Keyboard → Keyboard Shortcuts → App Shortcuts (on Ventura and later).
- Click the + button, select System Settings as the application, type the exact menu command name ("Dark Mode" or "Light Mode"), and assign a shortcut like Control + Option + D.
- On Monterey and earlier, the path is System Preferences → Keyboard → Shortcuts → App Shortcuts, and you choose System Preferences as the app.
This works because the appearance toggle is a menu item in the View menu of System Settings/Preferences. After setting it up, you can press your shortcut from anywhere, and the appearance switches without opening anything. This is the real "one-key toggle" most people want.
Using Control Center for a Quick Toggle
Another built-in option that doesn't require Spotlight: click the Control Center icon in the menu bar (the two toggles icon), then click Dark Mode to toggle it. This is a single click if you have Control Center visible in the menu bar, which is the default. It's faster than Spotlight for the actual toggle, but Spotlight is still useful if you prefer keyboard navigation or if you've hidden the menu bar.
Common Problems and Workarounds
Some users type "dark mode" into Spotlight and see no settings result. This usually happens when Spotlight's indexing is disabled for System Settings, or when the search text doesn't match. Try typing just "appearance" or "dark". If that fails, open System Settings manually and check that Spotlight can see it: go to System Settings → Spotlight and make sure "System Settings" is checked under Search Results.
Another issue: the keyboard shortcut method stops working after a macOS update. This is a known quirk—updates sometimes reset App Shortcuts. Simply re-add the shortcut and it should work again.
Alternatives: Third-Party Apps and Automator
If you want even more control—like automatic switching at specific times or based on location—third-party apps such as NightOwl or Shifty offer menu bar toggles and scheduling. These are free or low-cost and don't require scripting. For a purely built-in approach, you can also create an Automator Quick Action that runs an AppleScript to toggle appearance, then assign it a keyboard shortcut in System Settings. That's more complex but gives you a true one-click toggle without third-party software.
Frequently Asked Questions
Can I toggle dark mode with a single Spotlight command?
No. Spotlight is a search tool, not a command line. It can open settings, but it cannot change settings directly. The closest you can get is opening the Appearance pane and pressing a keyboard shortcut you've assigned.
Why doesn't typing "dark mode" in Spotlight show anything?
Spotlight may not have indexed System Settings, or the search phrase doesn't match. Try "appearance" or "dark" instead. Also check that System Settings is enabled in Spotlight's search results under System Settings → Spotlight.
Will the keyboard shortcut method work on any Mac?
It works on any Mac running macOS Monterey or later, as long as you set it up correctly. The exact menu command name must match what appears in the View menu ("Dark Mode" or "Light Mode"). On some macOS versions, the menu item is labeled "Toggle Dark Mode," so use that exact name.
Does dark mode save battery on a MacBook?
On OLED displays, dark mode can save battery because black pixels are turned off. On traditional LCD displays (most MacBooks), the backlight is always on, so the savings are negligible. The effect is more noticeable on iPhones with OLED screens than on Macs.
Can I schedule dark mode to turn on automatically?
Yes. In System Settings → Appearance, choose "Auto" and then click "Options" to set a custom schedule (sunset to sunrise or a custom time). This works natively and doesn't require Spotlight or any shortcuts.