Greetings everyone!
I’d like to introduce a new plugin I’ve been working on called Style Settings. This plugin was inspired by the Minimal Theme and California Coast settings plugins. It allows theme authors and every day users to easily tweak CSS variables via Obsidian settings. My hope is that this can eventually replace theme specific plugins.
This plugin allows snippet, theme, and plugin CSS files to define a dynamic set of configuration options. It then allows users to see all of the tweakable settings in one settings pane. It allows both toggling classes on and off the body element, as well as setting numeric, string, and color CSS variables. For example, say I wanted to tweak Obsidian’s default font, default text color, and accent text color. I could do so by adding this to a CSS snippet:
/* @settings
name: Font Overrides
id: font-overrides
settings:
-
id: default-font
title: Base Font
type: variable-text
default: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif'
-
id: text-normal
title: Base Font Color
type: variable-color
format: hex
default: '#2e3338'
-
id: text-accent
title: Accent Font Color
type: variable-color
format: hex
default: '#705dcf'
-
id: text-accent-hover
title: Accent Hover Color
type: variable-color
format: hex
default: '#7a6ae6'
*/
The Style Settings plugin will then convert this into a list of tweakable settings:
To see a more details on how this works and how to define settings, see the github repo here: GitHub - mgmeyers/obsidian-style-settings
Please report any bugs or issues here: Issues · mgmeyers/obsidian-style-settings · GitHub