From b0835b98892d94f7f7a99409694e853dcc64fb02 Mon Sep 17 00:00:00 2001 From: "@gapmiss" Date: Sat, 30 May 2026 17:46:14 -0500 Subject: [PATCH] feat: add custom font CSS variable Added --inline-callout-font-family variable (default: inherit). Configurable via Style Settings plugin. Closes #6 Co-Authored-By: Claude Opus 4.5 --- README.md | 1 + styles.css | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 55403bc..a4fd65f 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,7 @@ See [CSS snippets - Obsidian Help](https://help.obsidian.md/Extending+Obsidian/C ```css body { + --inline-callout-font-family: inherit; --inline-callout-font-size: .85em; --inline-callout-font-weight: 400; --inline-callout-border-radius: 4px; diff --git a/styles.css b/styles.css index 901a8be..e2023b2 100644 --- a/styles.css +++ b/styles.css @@ -1,4 +1,5 @@ body { + --inline-callout-font-family: inherit; --inline-callout-font-size: .85em; --inline-callout-font-weight: 400; --inline-callout-border-radius: 4px; @@ -45,6 +46,7 @@ body { } .inline-callout-label { + font-family: var(--inline-callout-font-family); font-size: var(--inline-callout-font-size); margin-top: var(--inline-callout-label-margin-top); margin-right: var(--inline-callout-label-margin-right); @@ -157,6 +159,11 @@ settings: type: heading level: 4 collapsed: true +- + id: inline-callout-font-family + title: Font family + type: variable-text + default: inherit - id: inline-callout-font-size title: Font size