# Automatic Dark Theme

**URL:** <https://community.getmailspring.com/t/automatic-dark-theme/488>\
**Category:** Resolved\
**Tags:** interface, theme\
**Created:** [February 8, 2021, 6:31pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488 "2021-02-08T18:31:10Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://community.getmailspring.com/uploads/default/original/1X/3f576930406c827860db462048a1fc090a147a05.png) [@system](https://community.getmailspring.com/u/system)\
**Post date:** [February 8, 2021, 6:31pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/1 "2021-02-08T18:31:10Z")

</div>

Could it be possible to add a new theme choosing between dark and light depending on the system’s theme on macOS Mojave and later ?

For instance light theme is better at day but dark theme is better for reading at night. macOS Catalina already has a feature that changes the theme depending on the time of the day. Is it possible for Mailspring to adapt it’s with Catalina’s ?

Thanks

* * *

(Originally posted by **[lsonnino](https://github.com/lsonnino)** on GitHub.)

(Original post had 7 upvotes.)

> <https://github.com/Foundry376/Mailspring/issues/1748>
>
> Could it be possible to add a new theme choosing between dark and light dependin…g on the system's theme on macOS Mojave and later ?
> For instance light theme is better at day but dark theme is better for reading at night. macOS Catalina already has a feature that changes the theme depending on the time of the day. Is it possible for Mailspring to adapt it's with Catalina's ?
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![DontEatOreo](https://community.getmailspring.com/user_avatar/community.getmailspring.com/donteatoreo/32/1841_2.png) [@DontEatOreo](https://community.getmailspring.com/u/DontEatOreo)\
**Post date:** [April 14, 2021, 2:05pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/2 "2021-04-14T14:05:43Z")

</div>

**The Problem**  
Currently you have to manually switch between Light theme and Dark theme.

**Proposed Solution**  
Changing the theme automatically can be done in many different ways. I think the best approach will be the user choosing a time period for when a particular theme to be chosen. For example, from 7 AM to 7 PM, Mailspring will be using a Light theme, and from 7 PM to 7 AM, Mailspring will be using a Dark theme.

**Alternative Solutions**  
Another way will be to look at the system theme and deciding based on that. For example, on Windows, Mailspring can check a Registry value called “ **AppsUseLightTheme** ” located at “HKEY\_CURRENT\_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize” And if it’s set on 0, that means Windows is using Dark Mode, and if it’s set to 1, that means Windows is using Light mode.

---

<div class="post-metadata">

**Author:** ![nemo](https://community.getmailspring.com/user_avatar/community.getmailspring.com/nemo/32/4145_2.png) [@nemo](https://community.getmailspring.com/u/nemo)\
**Post date:** [December 27, 2021, 6:41pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/3 "2021-12-27T18:41:37Z")

</div>

Electron has a nice guide on how to integrate with the OS level theme to detect light/dark modes: [Dark Mode | Electron](https://www.electronjs.org/docs/latest/tutorial/dark-mode/)

---

<div class="post-metadata">

**Author:** ![miluoshi](https://community.getmailspring.com/user_avatar/community.getmailspring.com/miluoshi/32/1510_2.png) [@miluoshi](https://community.getmailspring.com/u/miluoshi)\
**Post date:** [June 21, 2022, 9:39pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/4 "2022-06-21T21:39:12Z")

</div>

Hi, are there any updates on whether this is planned to be implemented? Thanks

---

<div class="post-metadata">

**Author:** ![aboodeDaBOSS](https://community.getmailspring.com/user_avatar/community.getmailspring.com/aboodedaboss/32/5552_2.png) [@aboodeDaBOSS](https://community.getmailspring.com/u/aboodeDaBOSS)\
**Post date:** [July 6, 2022, 9:51pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/5 "2022-07-06T21:51:32Z")

</div>

please i specifically installed this for the theme

---

<div class="post-metadata">

**Author:** ![\_david\_aaron](https://community.getmailspring.com/user_avatar/community.getmailspring.com/_david_aaron/32/4087_2.png) [@\_david\_aaron](https://community.getmailspring.com/u/_david_aaron)\
**Post date:** [July 12, 2022, 6:44pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/6 "2022-07-12T18:44:48Z")

</div>

It would be great if Mailspring would automatically switch between light and dark theme based on the user’s system setting. Almost every other app I use has this functionality.

---

<div class="post-metadata">

**Author:** ![pmarreck](https://community.getmailspring.com/user_avatar/community.getmailspring.com/pmarreck/32/6406_2.png) [@pmarreck](https://community.getmailspring.com/u/pmarreck)\
**Post date:** [December 12, 2022, 10:58pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/7 "2022-12-12T22:58:27Z")

</div>

Would definitely love this feature, and a lot of apps are already doing it (sticking with whatever the system elects as the transition point from light/dark)

---

<div class="post-metadata">

**Author:** ![alexlibris](https://community.getmailspring.com/user_avatar/community.getmailspring.com/alexlibris/32/6893_2.png) [@alexlibris](https://community.getmailspring.com/u/alexlibris)\
**Post date:** [April 6, 2023, 9:15pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/8 "2023-04-06T21:15:03Z")

</div>

I was made a bash file, execute it via keyboard shortcut, to switch light/dark mode in Ubuntu 22.04.

With these lines below, switch Mailspring to dark theme:

pkill mailspring  
sed -i ‘50 s/light/dark/’ ~/.config/Mailspring/config.json  
mailspring -b

… and with these to light theme:

pkill mailspring  
sed -i ‘50 s/dark/light/’ ~/.config/Mailspring/config.json  
mailspring -b

Works excellent for my needs, maybe will be helpful for others…

---

<div class="post-metadata">

**Author:** ![macbookandrew](https://community.getmailspring.com/user_avatar/community.getmailspring.com/macbookandrew/32/10378_2.png) [@macbookandrew](https://community.getmailspring.com/u/macbookandrew)\
**Post date:** [July 21, 2025, 2:56pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/9 "2025-07-21T14:56:12Z")

</div>

I got fed up enough with having to manually switch themes that I created a plugin to automatically switch between the default light and dark themes: [Andrew Minion / Mailspring Automatic Light-Dark Mode · GitLab](https://gitlab.com/andrewminion/mailspring-automatic-light-dark-mode)

---

<div class="post-metadata">

**Author:** ![pvinis](https://community.getmailspring.com/user_avatar/community.getmailspring.com/pvinis/32/10403_2.png) [@pvinis](https://community.getmailspring.com/u/pvinis)\
**Post date:** [July 28, 2025, 8:03am UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/10 "2025-07-28T08:03:25Z")

</div>

amazing, works like a charm, thank you. Hopefully it gets picked up eventually.

---

<div class="post-metadata">

**Author:** ![Paul-16098](https://community.getmailspring.com/user_avatar/community.getmailspring.com/paul-16098/32/11447_2.png) [@Paul-16098](https://community.getmailspring.com/u/Paul-16098)\
**Post date:** [October 20, 2025, 4:08am UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/11 "2025-10-20T04:08:52Z")

</div>

> [@If plugins name includes \`/\` the path will error](https://community.getmailspring.com/t/if-plugins-name-includes-the-path-will-error/13982):
>
> ├─packages │ └─Automatic Light │ └─Dark Mode │ ├─.git │ │ ├─hooks │ │ ├─info │ │ ├─logs │ │ │ └─refs │ │ │ ├─heads │ │ │ └─remotes │ │ │ └─origin │ │ ├─objects │ │ │ ├─info │ │ │ └─pack │ │ └─refs │ │ ├─heads │ │ ├─remotes │ │ │ └─origin │ │ └─tags │ ├─lib │ ├─src │ └─…

---

<div class="post-metadata">

**Author:** ![bengotow](https://community.getmailspring.com/user_avatar/community.getmailspring.com/bengotow/32/14_2.png) [@bengotow](https://community.getmailspring.com/u/bengotow)\
**Post date:** [April 19, 2026, 9:26pm UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/12 "2026-04-19T21:26:17Z")

</div>

Hey folks, good news! Mailspring 1.20.0 (April 2026) added an “Automatic” theme (now the default) that follows your operating system’s light/dark mode setting. It also adds system accent color support, so the default themes will use your system tint color by default.

Thanks for creating the plugin in the meantime @macbookandrew, very cool. 🔥

---

<div class="post-metadata">

**Author:** ![bengotow](https://community.getmailspring.com/user_avatar/community.getmailspring.com/bengotow/32/14_2.png) [@bengotow](https://community.getmailspring.com/u/bengotow)\
**Post date:** [June 14, 2026, 2:28am UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/13 "2026-06-14T02:28:56Z")

</div>

Following up here: as of **Mailspring 1.22.0** you can now pick which specific themes are used for light and dark when running in Automatic mode, building on the system light/dark switching we added earlier. Update to 1.22.0 and you’ll find it under Preferences → Appearance. Thanks all for the long-running feedback on this one!

---

<div class="post-metadata">

**Author:** ![system](https://community.getmailspring.com/uploads/default/original/1X/3f576930406c827860db462048a1fc090a147a05.png) [@system](https://community.getmailspring.com/u/system)\
**Post date:** [July 14, 2026, 2:29am UTC](https://community.getmailspring.com/t/automatic-dark-theme/488/14 "2026-07-14T02:29:16Z")

</div>

Closed on July 14, 2026, 2:29am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
