Theme Design Utilities

by pseudometa
5
4
3
2
1
Score: 61/100

Description

Category: Customization & UI

The Theme Design Utilities plugin offers a range of helpful tools for Obsidian theme designers. It includes features like mobile emulation for previewing themes on mobile devices and the ability to cycle through installed themes or toggle between light and dark modes. The plugin also provides commands for debugging, such as adding red outlines to elements or freezing Obsidian for creating test elements. Additionally, it offers helpful resources like cheatsheets and markdown notes for testing theme colors and CSS adjustments. These utilities streamline the theme design process and improve efficiency within the Obsidian environment.

Reviews

No reviews yet.

Stats

151
stars
19,143
downloads
7
forks
1,614
days
26
days
486
days
9
total PRs
0
open PRs
0
closed PRs
9
merged PRs
8
total issues
1
open issues
7
closed issues
22
commits

README file from

Github

Theme Design Utilities

Obsidian downloads Latest release

Some utilities and Quality-of-Life features for designers of Obsidian themes.

Table of contents

Commands added

Mobile emulation

Conveniently enable the mobile emulation of Obsidian, that is how Obsidian would look on mobile. This helps with styling your theme for mobile.

Cycle between all three modes

Cycles between Source Mode, Live Preview, and Reading Mode. Set a hotkey to quickly check how the theme looks in all three view modes.

Cycle through installed themes

Cycles between all installed themes. As opposed to the Theme Switcher Plugin, this does not open a modal, but rather directly switches to the next installed theme.

Light/dark mode toggle

A simple command to toggle between light and dark mode. Set a hotkey to quickly change the mode of the theme.

Freeze obsidian

Opens the devtools and freeze interaction with Obsidian, after a small delay. During that delay, you can create fleeting elements like context menus or tooltips which stays on screen.

To unfreeze Obsidian, click the "play" button which appears at the top of Obsidian.

Toggle devtools

Opens/closes the devtools (developer console). Does the same thing as Obsidian's built-in method of opening the devtools, but being available in the command palette allows you to set a custom hotkey for it.

Garble text

Garbles all text in the whole app. "Ungarbles" elements that are hovered. This way you can share screenshots while maintaining privacy.

.foobar test class

This command adds/removes a test class .foobar to the DOM-element .app-container. This way you can quickly toggle some CSS on-and-off for debugging purposes, without having to enable/disable a snippet.

.app-container.foobar h1 {
	color: red;
}

Red outlines for debugging

Add red outlines to all elements. Run the command again to remove the outlines. The outlines are useful for debugging purposes, essentially serving as the CSS equivalent for console.log().

Permanent test notice

Post a notice (notification) that stays on screen until you click it. This is useful for styling notices, as they normally quickly fade away.

CSS feature compatibility (chrome version)

  • Displays a notice with the current Chrome version utilized by Obsidian to render CSS. Sites like MDN or W3-Schools usually document the minimum Chrome version required for a certain CSS feature at the bottom of the feature's documentation page.
  • On iOS, Obsidian uses the Safari engine, for which the version matches the iOS version the user is using. Prevalence of iOS versions – and therefore underlying Safari versions to target – are published by Apple itself.

If you are using stylelint, you can also simply use the nifty stylelint-no-unsupported-browser-features plugin, and add this to your .stylelintrc.json:

{
	"extends": ["stylelint-config-recommended"],
	"plugins": ["stylelint-no-unsupported-browser-features"],
	"rules": [
		"plugin/no-unsupported-browser-features": [true, {
			"browsers": ["last 10 Chrome versions", "last 3 iOS versions"],
			"ignore": ["css-masks"],
			"ignorePartialSupport": true
		}],
	]
}

Show cheatsheet

Open a cheat sheet showing the Obsidian CSS classes.

Documentation and sample notes

You can access these resources without installing the plugin.

Cheatsheets

You can get various obsidian design cheatsheets from the cheatsheets folder.

Markdown note: display your current theme colors

theme-design-utilities-current_theme.md is a markdown file that can be added to your vault to display your current theme colors.

Markdown note and CSS snippet: play with colors

The theme-design-utilities-colorplay.md markdown note and its companion CSS snippet display colored boxes. The note should be added to your vault, and the CSS snippet to your snippet collection. You can change the colors by editing the CSS snippet, or using the Style Settings plugin.

Other resources for Obsidian theme designers

Obsidian plugins

Guides

Installation

This plugin is available in Obsidian's Community Plugin Browser: SettingsCommunity PluginsBrowse → Search for "Theme Design Utilities"

Build

npm install
node .esbuild.mjs

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.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Group Snippets
4 years ago by Mara-Li
Create folder of snippets to activate them in one click !
Day and Night
4 years ago by Kevin Patel
An Obsidian plugin to automatically switch between day and night themes based on a set schedule
Theme Toggler
4 years ago by larsmagnus
Toggle the theme in Obsidian's panels
Dynamic Background
4 years ago by Samuel Song
Adding dynamic background effects to the Obsidian editor
Callout Manager
3 years ago by eth-p
An Obsidian.md plugin that makes creating and configuring callouts easy.
Mermaid Themes
3 years ago by jvsteiner
mermaid themes for obsidian
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
Swiss army knife
3 years ago by mwoz123
HelpMate
2 years ago by TfTHacker
HelpMate for Obsidian - providing help and documentation from within Obsidian
VARE
2 years ago by 4Source
This is a plugin for Obsidian (https://obsidian.md). Allows you to easily manage your plugins and themes inside Obsidian.
Fast Text Color
2 years ago by Leon Holtmeier
Obsidian plugin to enable colored text with a custom syntax.
Minimal Theme Settings
5 years ago by @kepano
Settings plugin to control colors and fonts in Minimal Theme
Style Settings
5 years ago by mgmeyers
A dynamic user interface for adjusting theme, plugin, and snippet CSS variables within Obsidian
Theme Picker
5 years ago by kenset
Auto Class
4 years ago by Nathonius
Automatically add CSS classes to notes based on file path.
Auto switch themes between dark/light mode
a year ago by Robert Storlind
Obsidian plugin for switching themes when toggling dark/light mode
Friday
a year ago by sunwei
Write anywhere. Publish everywhere. Sync your notes, publish instantly, turn Markdown into websites.
Obsifetch
a year ago by tabibyte
neofetch but for obsidian
Theme Controller
a year ago by Binaris
Set when and how the themes will be displayed
Extended File Support
a year ago by Nick de Bruin
Adds opening and embedding support for various filetypes to Obsidian
Easy Fonts
a year ago by Jose Elias Alvarez
Easily load custom fonts, even on mobile.
Smart DayNight switcher
a year ago by Andrii Hrushetskyi
Theme toggle
a year ago by @gapmiss
Obsidian.md plugin … adds a ribbon icon and command for toggling between dark & light theme modes.
Rainbow-Colored Sidebar
a year ago by Kevin Woblick
Automatically color your sidebar like a rainbow. No configuration needed. 8 themes included.
API Designer
5 months ago by Ruveyda Yilmaz
A plugin for Obsidian that lets you design and document API endpoints visually without leaving your notes.