andrii2562k downloadsIntelligently determines sunrise and sunset times and automatically switches the color scheme to light or dark mode.
Calculates daily sunrise and sunset times for your location and automatically switches your Obsidian theme: light mode when the sun rises ☀️ and dark mode when it sets 🌒.
No more manual theme switching!
Sunrise and sunset are calculated on your device. Two free services are used only to guess or name your location, and nothing else is sent anywhere (see the settings for details).
Yes. Set a sunrise and/or sunset offset (up to 3 hours) in the settings, e.g. to turn on dark mode 10 minutes before sunset.
Yes. Turn on “Pause automatic switching” in the settings, and Obsidian’s own light/dark setting applies until you turn it off. The “Pause or resume automatic switching” command does the same, and the “Set hotkey” button next to the toggle lets you give it a hotkey.

Feel free to open an issue in this repository. I’ll check it out and do my best to help!
Sunrise and sunset are calculated with SunCalc by Vladimir Agafonkin, whose formulas are based on the Astronomy Answers articles on the position of the sun.