How does macOS switch dark mode at sunset automatically?
macOS has had built-in automatic dark mode switching since macOS Mojave. The feature is called Auto and lives in System Settings under the Appearance section. When you enable it, macOS uses Core Location to determine your geographic position and calculate local sunrise and sunset times. At sunset, macOS switches to dark mode. At sunrise, it switches back to light mode.
Core Location does not need to pinpoint your exact street address. For solar calculations, it only needs a rough city-level location, which it derives from your Wi-Fi network data or, on MacBooks, approximate GPS. This means the feature works even if you have Location Services set to minimal access. macOS refreshes the calculation daily, so it adjusts automatically as day length changes with the seasons.
The Auto mode is entirely system-level - it does not require any third-party software, does not run a background daemon, and has no meaningful impact on battery life. It is the simplest way to auto-switch dark mode at sunset on Mac, and for most users it is a good starting point.
What are the limitations of macOS Auto Appearance?
The built-in Auto setting is effective but deliberately simple. Once you move beyond the basic sunrise-to-sunset cycle, you will find several gaps:
- No sunset offset - macOS switches exactly at sunset. There is no option to switch 15, 30, or 60 minutes before the sun goes down. If you work indoors under artificial light, the transition often feels one step behind where your eyes need it.
- No custom time override - you cannot tell macOS to switch at, say, 7 pm regardless of when sunset falls. The only options are Light, Dark, and Auto.
- No weekday vs weekend differentiation - if you go to bed later on weekends, you cannot set a different switching schedule for those days. The same sunrise-sunset rule applies seven days a week.
- No weather awareness - on a heavily overcast winter afternoon at 3 pm, when the light outside is already dim, macOS will still wait for the official sunset time before switching. It has no knowledge of current weather conditions.
- No per-display control - Auto Appearance is a system-wide toggle. You cannot have dark mode on an external monitor while keeping light mode on your MacBook screen.
- No keyboard shortcut - there is no built-in shortcut to toggle dark mode manually. You have to open System Settings every time you want to override the schedule.
For users with straightforward schedules, these limitations do not matter. But if you want tighter control over when and how dark mode activates, the built-in setting is not enough.
How do you set up sunset-based dark mode on Mac?
Setting up macOS Auto Appearance takes under a minute. Here is the step-by-step process:
- Click the Apple menu () in the top-left corner of your screen.
- Select System Settings from the dropdown.
- In the left sidebar, click Appearance.
- Under the Appearance heading at the top of the right panel, click Auto.
- Close System Settings. macOS will now switch to dark mode at your local sunset and back to light mode at sunrise.
That is all that is required. macOS handles the rest automatically, including seasonal adjustments as sunrise and sunset times shift throughout the year. You do not need to grant any additional permissions - macOS uses network-based location data it already has access to.
If you are on macOS Ventura or later and want to verify the feature is working, you can check the current appearance by holding Option and clicking the Control Centre icon in the menu bar, then looking at the Display section.
For a full breakdown of all scheduling methods including custom times and third-party tools, see How to Schedule Dark Mode on Mac (3 Methods).
How does Solace improve on macOS's built-in sunset scheduling?
Solace is a macOS menu bar app designed for users who have outgrown the built-in Auto mode. It keeps everything that works about macOS's solar scheduling - precise location-aware sunset detection - and adds several layers of control on top.
Pre-sunset offset
The most requested feature that macOS does not offer is a sunset offset. Solace lets you configure dark mode to activate a set number of minutes before the official sunset time. A 30-minute offset means dark mode turns on while the sky is still golden rather than waiting until dusk. For people who are sensitive to the blue light on their displays in the evening, this earlier switch matters.
Weather-aware switching
On overcast days, the effective light level can drop to near-dusk levels hours before sunset. Solace integrates real-time weather data and can trigger dark mode earlier when conditions are significantly darker than usual - a heavy overcast, storm, or fog event. This makes the switching feel responsive to the actual environment rather than just the clock.
Custom time schedules
If you prefer a fixed time - say, dark mode at 6 pm regardless of when sunset falls - Solace supports that as well. You can mix scheduling modes: use solar scheduling on weekdays and fixed times on weekends, or any combination that matches your routine.
Global keyboard shortcut
Solace adds a configurable keyboard shortcut for instant dark mode toggling. This is useful when you need to override the schedule temporarily - sharing your screen in a bright room, or switching to light mode for a specific app - without opening System Settings.
Wallpaper syncing
Beyond dark mode, Solace can pair different wallpapers with each appearance mode and switch them in sync. When dark mode activates at sunset, your wallpaper transitions to a nighttime image at the same moment. When light mode returns at sunrise, the wallpaper switches back. It is a small detail that makes the whole-system transition feel intentional.
Zero data collection
All location processing in Solace is done entirely on-device. Your coordinates are never sent to a server. There is no analytics, no telemetry, no account required, and no subscription. It is a one-time $4.99 purchase.
Solace requires macOS Sequoia or later.
Step-by-step: setting up Solace for sunset-based dark mode
Once you have downloaded and installed Solace, configuration takes about two minutes:
- Click the Solace icon in your menu bar (it appears as a crescent moon).
- Select Preferences from the dropdown menu.
- In the Preferences window, navigate to the Scheduling tab.
- Select Sunset / Sunrise as the scheduling mode. Solace will request location access. Click Allow to enable solar calculations.
- Use the Before Sunset offset slider to choose how early dark mode activates. A setting of 30 minutes means dark mode turns on 30 minutes before sunset.
- (Optional) Toggle Weather-aware switching to enable early activation on overcast days.
- (Optional) Navigate to the Shortcuts tab and assign a keyboard shortcut for manual toggling.
- Close Preferences. Solace will run silently in the background, switching dark mode according to your schedule.
Wondering whether Night Shift gives you enough protection on its own? Read Why Night Shift Alone Isn't Enough to Protect Your Sleep.
Why does switching dark mode at sunset matter for sleep?
The case for sunset-triggered dark mode is not purely aesthetic. There is a growing body of evidence that the timing of your display's appearance has real effects on sleep quality.
A 2015 study from Harvard Medical School found that blue light suppresses melatonin production for twice as long as green light and shifts circadian rhythms by up to 3 hours, compared to 1.5 hours for green light. Melatonin is the hormone that signals to your body that it is time to sleep. When blue-heavy light from a screen delays its production, the result is often difficulty falling asleep and reduced sleep quality even after you do.
Dark mode reduces the overall luminance of your display and, on OLED screens, significantly reduces blue light emission. Switching to dark mode at or before sunset removes a major source of circadian disruption during the hours when your body is preparing for sleep.
The National Sleep Foundation reports that 63% of adults say their sleep is affected by screen use in the hour before bed. Simply automating the switch to dark mode at sunset removes one decision from your evening and ensures the transition happens consistently, even on days when you forget.
The compounding effect matters too. A single night of better sleep is helpful. A consistent nightly routine - built into your device and requiring no manual action - is transformative over weeks and months. Automated sunset switching is one of the lowest-effort sleep hygiene improvements you can make on a Mac.
Blue light suppresses melatonin for twice as long as green light and shifts circadian rhythms by up to 3 hours. - Harvard Medical School, 2015
Comparing colour temperature tools for Mac? See f.lux vs Night Shift on Mac: Which Is Better?
Frequently asked questions
Does macOS automatically switch to dark mode at sunset?
Yes. Setting Appearance to Auto in System Settings uses Core Location to determine your local sunset time and switches macOS to dark mode automatically. It switches back to light mode at sunrise. No third-party app is required for basic sunset-based switching.
Can I set dark mode to switch before sunset on Mac?
Not with macOS built-in settings. The Auto mode switches exactly at sunset with no offset option. To switch 15, 30, or 60 minutes before sunset, you need a third-party app like Solace, which offers a configurable pre-sunset offset alongside its solar scheduling.
Does dark mode scheduling drain battery?
No, the impact is minimal. macOS Auto Appearance uses Core Location in its low-power significant-change mode, which consumes negligible battery. Solace also uses native macOS APIs and on-device processing, keeping CPU and battery usage minimal at all times.
Can I schedule dark mode differently on weekdays vs weekends?
macOS built-in Auto mode cannot differentiate between weekdays and weekends. Solace supports per-day scheduling, so you can switch dark mode at sunset on weekdays and use a different rule or later offset on weekends if your routine differs.
Does auto dark mode work with Night Shift?
Yes. macOS Auto Appearance and Night Shift operate entirely independently. You can have both enabled simultaneously. Night Shift warms your screen colour temperature while Auto Appearance handles the light/dark mode switch. Solace can manage both colour temperature and dark mode from one app.
Solace - sunset scheduling with offset control
Switch dark mode before sunset, not just at it. Solar scheduling, weather awareness, wallpaper sync, and a keyboard shortcut. $4.99, yours forever.
Buy Solace - $4.99One-time purchase, no subscription. Learn more about Solace