Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Smart DayNight switcher

andrii256andrii2562k downloads

Intelligently determines sunrise and sunset times and automatically switches the color scheme to light or dark mode.

  • Overview
  • Scorecard
  • Updates4

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).

❔️ Can it switch a bit before or after sunrise/sunset?

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.

❔️ Can I turn it off for a while?

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.

Plugin settings tab in dark mode: status line, pause toggle, location, offsets and a seven-day sunrise and sunset schedule

🐛💡 Found a bug or have a feature idea?

Feel free to open an issue in this repository. I’ll check it out and do my best to help!

Credits

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.

HealthExcellent
ReviewSatisfactory
About
Switch Obsidian between light and dark themes automatically based on calculated local sunrise and sunset times. Enter your latitude/longitude (defaults to London if omitted); calculations run locally and no location data is sent.
ThemingAutomationDates
Details
Current version
2.0.0
Last updated
4 weeks ago
Created
2 years ago
Updates
4 releases
Downloads
2k
Compatible with
Obsidian 1.8.9+
Platforms
Desktop, Mobile
License
OTHER
Report bugRequest featureReport plugin
Author
andrii256andrii256
github.com/Andrii256
GitHubandrii256
  1. Community
  2. Plugins
  3. Theming
  4. Smart DayNight switcher

Related plugins

Update modified date

Automatically update a frontmatter modified date field when the file is modified.

Vault Changelog

Maintain a changelog of recently edited notes.

Rollover Daily Todos

Rollover any unchecked checkboxes from your last daily note into today's note.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

BRAT

Easily install a beta version of a plugin for testing.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Templater

Create and use dynamic templates.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Advanced URI

Control everything with URI.