Windows 11 dark mode keeps reverting because the OS stores theme preferences in two separate registry locations that can conflict, and a feature update or sync event can overwrite one without touching the other. The fix is almost always in the registry, not the Settings app, though a few specific scenarios need different solutions entirely.
This isn’t a cosmetic annoyance. Every time Windows resets to light mode, it’s telling you something broke in how your theme state gets written and read. Knowing which of the six causes is yours makes the difference between a five-minute registry edit and an hour of guessing. The steps below cover all six, confirmed against Windows 11 builds 22631 (23H2) and 22621 (22H2).
Why Dark Mode Keeps Resetting: The Two Registry Keys Behind Your Theme
The root cause of most dark mode resets lives in two registry keys under HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize:
- AppsUseLightTheme controls whether apps (like File Explorer, Settings, Notepad) use the light or dark skin
- SystemUsesLightTheme controls the taskbar, Start menu, and notification area
Both are DWORD values. Dark mode = 0. Light mode = 1. When either gets reset to 1 without your input, dark mode appears to “revert.” The two keys can also desync, meaning your apps go dark but your taskbar stays white, or vice versa.
To check your current values, press Win + R, type regedit, navigate to the path above, and look at both DWORDs. If either reads 1 after you’ve set dark mode through Settings, you have a write conflict. Set both to 0, click OK, and watch whether they revert on the next restart or update.
On builds 23H2 and later, these two keys update together when you change the mode in Settings. On older builds (21H2, 22H2), they can fall out of sync silently because the Settings UI writes them in sequence rather than atomically. That sequencing gap is why a crash or forced shutdown during a theme change can leave one key at 0 and the other still at 1. According to Microsoft Learn’s documentation on applying Windows themes, both keys must be consistent for the full dark theme to apply across apps and the system shell.
The Apps vs. System Theme Split
Windows 11 separates “app mode” from “system mode” in Settings, and most people set one without realizing the other exists. Go to Settings > Personalization > Colors and look for two distinct dropdowns: “Choose your mode” and, in some builds, a separate toggle for the system interface.
In Windows 11 23H2 and later, Microsoft consolidated these under a single “Mode” dropdown, but older builds (21H2, 22H2) show them separately. If you’re on an older build and only set the app theme to Dark, your taskbar will keep flashing white because SystemUsesLightTheme never changed.
Set both to Dark explicitly, then open regedit and confirm both registry DWORDs read 0. Don’t rely on the Settings preview alone; the UI has been known to display Dark while the registry still holds a stale 1 from a previous state.
A quick way to verify both keys in one step: open Windows PowerShell and run Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" | Select-Object AppsUseLightTheme, SystemUsesLightTheme. Both values should return 0. If either returns 1, that’s your culprit, and you know exactly which key to fix without scrolling through the registry manually. This is more reliable than the Settings UI, which can show a cached state rather than the live registry value.
Feature Updates Overwrite Your Theme: What Actually Happens
Windows 11 feature updates (the H1/H2 cumulative upgrades that ship roughly twice a year) run a repair pass on user profile defaults during installation. If your default user hive contains a light-mode value, the update can stamp it over your current preference.
This is the most common reason dark mode reverts specifically after Windows Update, not randomly. The fix has two parts. First, check whether Windows Update is set to apply automatically at a time when you’re not around to catch the reset. If you want more control over that process, stop Windows 11 from auto updating until you’ve confirmed your theme state survives an update cycle.
Second, after any major update, recheck both registry keys. If you find them reset to 1, set them back to 0 and also check Settings > Personalization > Colors to confirm the UI agrees. If the UI says Dark but the registry says Light, the next refresh event will trigger another reset.
High Contrast Mode Conflicts
High Contrast mode in Windows 11 overrides dark mode at the system level. When High Contrast is active, SystemUsesLightTheme gets forced regardless of what you’ve set, and Windows stops reading your normal theme preference until you turn it off.
Check via Settings > Accessibility > Contrast themes. If any contrast theme is selected, set it to “None.” You should also check this via the legacy path: Control Panel > Ease of Access Center > Make the computer easier to see and uncheck “Turn on High Contrast.” Both paths write to different locations and can fall out of sync.
Some third-party applications, notably certain accessibility tools and older screen readers, toggle High Contrast automatically based on ambient light sensors or time-of-day rules. If dark mode reverts at specific times rather than after restarts, a scheduled High Contrast activation is the likely culprit.
There is also an easy-to-trigger keyboard shortcut: Left Alt + Left Shift + Print Screen activates High Contrast without any confirmation dialog. If you share your machine or use an external keyboard with a non-standard Print Screen key position, an accidental key combo can silently flip the mode. Disable that shortcut via Settings > Accessibility > Keyboard if this keeps happening.
Third-Party Theme Utilities and the Scheduler Problem
Apps like Auto Dark Mode, Windhawk, or older utilities like Windows Auto Night Mode write directly to the same registry keys that Settings uses. When two tools compete for the same DWORD, whichever ran last wins. If your scheduled switcher is set to activate light mode at 7 AM, dark mode will revert every morning regardless of what you set manually the night before.
Open Task Scheduler (Win + S, search “Task Scheduler”) and look under Task Scheduler Library > Microsoft > Windows for any tasks referencing theme, personalization, or the app names above. Disable or delete tasks you don’t recognize. Then check your startup apps via Settings > Apps > Startup for any theme managers you may have forgotten you installed.
Auto Dark Mode specifically creates a scheduled task called AutoDarkMode in the Task Scheduler root. If you uninstalled it but the task remains, it will still fire and switch your theme on the old schedule. Delete the task manually after uninstalling.
To audit all scheduled tasks touching theme settings at once, open PowerShell as Administrator and run Get-ScheduledTask | Where-Object {$_.Actions.Execute -like "*theme*" -or $_.TaskName -like "*dark*"}. This surfaces any lingering automation that the GUI view might not make obvious.
Corrupt Theme Cache
Windows 11 caches theme data in %LocalAppData%\Microsoft\Windows\Themes. A corrupt .theme file in that folder can cause the system to fall back to a default light state on each login because it cannot read the cached preference.
To fix this, open File Explorer and navigate to C:\Users\[YourUsername]\AppData\Local\Microsoft\Windows\Themes. Delete everything in that folder except for any custom .theme files you actively use. Windows rebuilds the cache on next login. Then go to Settings > Personalization > Themes and reapply your preferred theme explicitly to write fresh cache entries.
While you’re in the Themes folder, also delete TranscodedWallpaper and CachedFiles if they exist. These can carry stale light-mode metadata that conflicts with a fresh dark theme application.
Cache corruption is more common after failed Windows updates or after restoring from a backup snapshot. If you recently rolled back or restored a system image, the Themes cache may reflect the pre-restoration state while the rest of your profile has moved forward. Clearing the cache forces Windows to rebuild it from your current registry values rather than the stale snapshot data.
Sync Settings Spreading a Light-Mode State Across Devices
If you use the same Microsoft account on multiple PCs, Windows Sync can push a light-mode theme preference from one machine to all others. This catches a lot of people who fixed the issue on their desktop only to have it revert after their laptop synced.
Go to Settings > Accounts > Windows backup (previously “Sync your settings” in older builds). Under “Remember my preferences,” you’ll see a toggle for “Personalization.” If this is on and any device in your account has light mode active, the next sync event will push that state everywhere.
The fix: set all your devices to dark mode first, then re-enable sync. Or disable personalization sync entirely if you prefer per-device theme settings. The sync preference itself stores at the Microsoft account level, so changing it on one machine changes it everywhere within a few minutes.
You can also review your connected devices by signing into account.microsoft.com/devices. Any PC you no longer actively use but haven’t removed from your account can still push sync data if it connects briefly. Remove retired devices from your Microsoft account to eliminate ghost sync sources pushing stale light-mode states. Microsoft’s Windows Sync settings documentation confirms that personalization sync is on by default for new Microsoft account sign-ins, which is why this catches so many people after a fresh Windows install.
Symptom, Cause, and Fix: Quick Reference
| Symptom | Most Likely Cause | Fix |
|---|---|---|
| Reverts after every restart | Registry key conflict or corrupt theme cache | Set both DWORDs to 0 in regedit; clear %LocalAppData%\Microsoft\Windows\Themes |
| Reverts after Windows Update | Update repair pass overwrites user defaults | Recheck registry post-update; control update timing |
| Apps dark, taskbar white (or reverse) | AppsUseLightTheme and SystemUsesLightTheme out of sync | Set both registry DWORDs to 0; recheck Settings > Personalization > Colors |
| Reverts at a specific time daily | Scheduled theme switcher (Auto Dark Mode, Task Scheduler task) | Disable or reconfigure the scheduled task |
| Reverts on a specific device after fixing others | Microsoft account sync pushing light mode | Disable personalization sync or fix all devices first |
| High contrast activates unexpectedly | Accessibility app or Left Alt + Left Shift + Print Screen shortcut | Disable High Contrast via Settings > Accessibility > Contrast themes |
If None of the Above Fixes It
Worth noting before you go deeper: if you are on a clean 23H2 install with no third-party theme tools and no Microsoft account sync, the Settings app alone is often sufficient. The registry approach is the reliable path when something else is interfering, but it is not always the first step you need. Start with Settings, verify in regedit, then escalate to the steps below only if the value keeps flipping.
A small number of machines see dark mode revert due to a corrupt user profile rather than a specific setting conflict. You can test this by creating a new local user account, setting dark mode on it, and rebooting. If it holds on the new account but not your main one, the issue is profile-level.
In that case, Microsoft’s recommendation is to create a fresh profile and migrate your files, but a less disruptive option is to use Windows PowerShell (run as Administrator) to repair the profile with sfc /scannow followed by DISM /Online /Cleanup-Image /RestoreHealth. Both commands together take 10-20 minutes and fix corrupted system files that can affect per-user registry writes. The Microsoft support article on System File Checker details what each command does and what to expect from the output.
A well-tuned Windows installation also helps in general. Unnecessary background processes and bloated startup sequences can interfere with registry writes during login. If you want to address the broader performance picture, the guide on how to speed up Windows 11 covers the startup and background service optimizations worth making.
Some best antivirus suites with behavioral monitoring can flag registry writes from theme-switching utilities as suspicious and block them silently. If you’re running a security suite with real-time registry protection, check its logs for blocked write events targeting the Personalize key.
Frequently Asked Questions
Why does Windows 11 dark mode keep turning off after a restart?
The most common reason is a registry key conflict. Windows stores your theme preference in AppsUseLightTheme and SystemUsesLightTheme under HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize. If either DWORD gets reset to 1 during restart, Windows loads light mode. Set both to 0 in regedit and test across two restarts to confirm.
Why does dark mode revert after a Windows update?
Feature updates run a profile repair pass that can overwrite user-level registry defaults with system defaults, which are light mode. After any major update, check your theme in Settings > Personalization > Colors and verify both registry DWORDs still read 0. If they’ve been reset to 1, set them back and monitor after the next update cycle.
Why are my apps dark but my taskbar is still white?
This happens when AppsUseLightTheme is set to 0 (dark) but SystemUsesLightTheme is still 1 (light). Open regedit, navigate to the Personalize key, and set both DWORDs to 0. Also verify in Settings > Personalization > Colors that the “Mode” dropdown shows Dark for both the app and system options.
Can a third-party app cause dark mode to keep reverting?
Yes. Theme scheduling apps like Auto Dark Mode write to the same registry keys as Windows Settings. If a scheduled task is set to activate light mode at certain hours, it will override your manual setting. Open Task Scheduler and check for any theme-related tasks under the root library. Disable or reconfigure them, then set dark mode again.
Does Microsoft account sync affect dark mode settings?
It can, if any device on your account has light mode active and personalization sync is enabled. Go to Settings > Accounts > Windows backup and check the “Remember my preferences” toggle. If personalization sync is on, a light-mode state from one device will propagate to all others within minutes of that device connecting to the internet.
How do I stop dark mode from reverting permanently?
Set both AppsUseLightTheme and SystemUsesLightTheme to 0 in regedit. Clear the theme cache in %LocalAppData%\Microsoft\Windows\Themes. Disable any theme-switching utilities or scheduled tasks. Turn off personalization sync if you use multiple devices. After a Windows update, recheck the registry keys before assuming the fix held.


