Automatically adhere to system light/dark mode setting

Why do I have to go through from light to dark or from dark to light … twice a day …

3 Likes

Where should I go to write this css code ?

+1 for this. Every time I toggle between light and dark mode for macOS, I would also need to do the same for Obsidian, which is a bit inconvenient. Would be great if toggling the system’s mode would also automatically toggle Obsidian’s.

1 Like

Yes, a built in setting for this would be great! :smile:

1 Like

If it’s not possible for Obsidian to ‘read’ that information from the operating system (since different people have different operation systems), what about an option in the settings where we can specify a schedule?

For instance, use Dark mode from 20:00 till 7:00.

5 Likes

This feature is now available if you use Minimal Theme with the Minimal Theme Settings plugin. It’s also available as a separate plugin called System Dark Mode that should be compatible with most themes.

13 Likes

Thanks so much for this plugin! I was stoked when I first saw it in the community plugins.

If I may give a “bug report” in this thread, refreshing Obsidian resets the light/dark mode. Both Obsidian and the OS were in dark mode at first; when I refreshed Obsidian, it turned to light mode again. I did toggle the system’s mode to see if the plugin is working, and it is; just a minor bug.

Thank you for adding this request @evanm. I would like to add that this setting is also useful for automation. I have a global Keyboard Maestro combination to toggle between both. Obsidian is the only app in addition to BBEdit which does not switch on its own.

Provide option for Obsidian to automatically adapt to the current appearance of MacOS (Light Mode / Dark Mode)

4 Likes

More specifically, the UI dialog used to open other vaults does not adapt the current theme colors. Inherit the colors from the active theme and apply them to the selection window. Either set this by default. Alternatively as an option that can be checked, or provide drop-down to select theme for the window in case people have different themes applied to different vaults.

I would like to add that although different operational systems use different mechanisms, I imagine that some specific code for platform is already present, at least obviously on Electrum, so it could be done on Obsidian.

The plugin unfortunately doesn’t work on Android.

1 Like

Any chance this to be implemented? Personally, I’m interested in auto-switching dark/light themes on iOS and MacOS.

Great that there’s already a plugin, but this should definitely get implemented, and IMO it should also be the default enabled setting (at least on macOS that’s the platform policy).

Obsidian:
image

Notion:

1 Like

It’s a feature in Electron itself, so Obsidian could implement it without additional framework.

1 Like

Hello, I’m happy user of “System dark mode” plugin for Obsidian.

But, I’ve got one question. Is it possible to change theme in memory without changing appearance.json? My vault is under Git and every evening, after system appearance has been automatically changed to dark I have to ignore appearance.json during staging files for commit:

{
   "baseFontSize": 16,
-  "theme": "moonstone",
+  "theme": "obsidian",
...
1 Like

Have you considered adding it to your gitignore file?

I vote for leaving Obsidian Core alone. I think it should be a lean note taking knowledge base only. Everything else should be a plugin.

I’ve thought about ignoring it, but it’s not a solution for me: appearance.json file contains other settings that I want to backup and reuse across machines:

{
  "baseFontSize": 16,
  "theme": "moonstone",
  "cssTheme": "California Coast",
  "translucency": true,
  "enabledCssSnippets": [
    "bullet-point-relationship-lines",
    "bigger-link-popup-preview"
  ]
}

this was implemented at some point.