Skip to content

chrisgrieser/shimmering-focus

Repository files navigation

Shimmering Focus ⟡

Download count Last commit

A minimalistic and opinionated Obsidian theme for the keyboard-centric user.
🏆 Winner Obsidian October 2022.

Promo Screenshot


Design philosophy

  • Radical minimalism: As opposed to a minimalism of colors, this theme focuses on a minimalistic user interface: UI elements not relevant for keyboard users are hidden, or only shown when needed. All hidden UI elements can be permanently re-enabled with the Style Settings Plugin.
  • Condensed display of information: Unnecessary padding and white-space is removed, which is beneficial for small screens or higher zoom levels.
  • High customizability: Dozens of customization options available via the Style Settings Plugin.

Features

  • Smart hiding of UI elements: The tab bar is only shown when there is more than one tab open, and the sidebar tab buttons are only shown on hover.
  • Images: Alt-text of images used as caption, images can be zoomed in via click-and-hold or toggled between reduced and original size via Style Settings.
  • Tables: Highlighting of active cells, alternating row colors
  • Vim mode: Explicit styling of Obsidian's Vim Mode and various settings such as relative line numbers.
  • Writing: Emphasis of Pandoc citations and footnotes, extensive styling for the Longform Plugin.
  • Headings: Distinctive styling and various options for differentiating heading levels.
  • Many customization options available via Style Settings Plugin.

Commands

When the Style Settings Plugin is installed, Shimmering Focus adds commands for toggling theme features:

  • Toggle folding of URLs (Source Mode)
  • Toggle between reduced and original image size (reduced size can be set in the respective style setting)

Customize colors

With Shimmering Focus, you can create your own color scheme with this CSS snippet. You are welcome to share your color scheme.

.theme-light.theme-light {
    --bg-hue: 230;
    --bg-sat: 25%;

    /* `--color-accent-hsl` should have the same values as `--color-accent` */
    --color-accent: hsl(184 79% 35%);
    --color-accent-hsl: 184, 79%, 35%;
    --interactive-accent: hsl(184 79% 30%);

    --alt-heading-color: hsl(232 34% 50%);
    --secondary-accent: hsl(28 54% 51%);
    --hover-accent: hsl(328 100% 54%);
    --link-unresolved-color: hsl(101 42% 51%);
}

.theme-dark.theme-dark {
    --bg-hue: 230;
    --bg-sat: 15%;

    /* Note that `--color-accent-hsl` should have the same values as `--color-accent` */
    --color-accent: hsl(184 79% 45%);
    --color-accent-hsl: 184, 79%, 35%;
    --interactive-accent: hsl(184 79% 30%);

    --alt-heading-color: hsl(232 50% 70%);
    --secondary-accent: hsl(28 63% 61%);
    --hover-accent: hsl(328 100% 64%);
	--link-unresolved-color: hsl(101 42% 51%);
}

/* Hide the background color settings since they are overwritten by the custom colors above */ 
.style-settings-container .setting-item:is([data-id="bg-hue-light"],[data-id="bg-hue-dark"]) {
	display: none;
}

Standalone snippets

Some features of this theme are available as standalone snippets. These can be found in the snippets directory.

Contribute

Bug fixes, support for more plugins, or improvements for mobile are welcome. However, please ask before contributing entirely new features by creating a Draft PR or an issue.

All relevant source files are located in the source directory, and will be compiled via GitHub action when pushed to GitHub.

The theme uses lightning-css for syntax-lowering in its build. That means you can use modern CSS features like CSS-nesting, as the resulting theme.css will still be compatible with older Obsidian Installer versions that do not support nesting yet. Furthermore, this theme targets Obsidian installer version 1.1.9, so feel free to use :has().

The theme is written completely dependency-free in vanilla CSS.

Licenses

Credits

Thanks

About the developer
In my day job, I am a sociologist studying the social mechanisms underlying the digital economy. For my PhD project, I investigate the governance of the app economy and how software ecosystems manage the tension between innovation and compatibility. If you are interested in this subject, feel free to get in touch.

Important

For questions, feature requests, or bug reports, please file an issue via GitHub. Due to the number of messages I receive, I am not able to respond to inquiries made elsewhere.

Buy Me a Coffee at
ko-fi.com