Make it yours

Themes & Design Tokens

The Standard Garden Obsidian plugin turns frontmatter metadata into a live, typographic design system. You can style individual notes or your entire workspace using bare frontmatter keys that map directly to CSS variables with zero abstraction.


1. How Tokens Work

The plugin reads frontmatter keys in the active note, checks them against the canonical token dictionary, and injects a matching CSS variable with !important onto html body:

---
font-text: "EB Garamond"
optical-ratio: 1.25
color-light-accent: "#b45309"
---

Translates at runtime directly to:

html body {
  --font-text: "EB Garamond" !important;
  --optical-ratio: 1.25 !important;
  --color-light-accent: #b45309 !important;
}

The key name is the CSS property name minus the -- prefix. No namespace prefix, no extra configuration.


2. Built-in Curated Themes (The Golden Standard)

Standard Garden ships with 11 curated classical themes bundled natively inside the plugin (academic, accessible, blueprint, book, code, documentation, editorial, eink, gallery, humanist, and international), paired with open-source foundry typefaces (EB Garamond, Newsreader, Literata, Source Serif 4, Fraunces, Instrument Sans & Serif, Inter, IBM Plex, iA Writer, JetBrains Mono, Maple Mono, Atkinson Hyperlegible, Lexend, and OpenDyslexic).

You can activate a theme globally in Settings → Standard Garden → Appearance → Default Theme, or apply it to a single note:

---
theme: humanist
---

Curated Themes

Theme Character & Atmosphere Recommended Use
humanist A warm, approachable theme with organic typography (EB Garamond & Instrument Sans). Long-form essays and literature.
editorial A clean, typography-focused theme for writers (Newsreader & Instrument Serif). Magazine-style articles and criticism.
academic A formal, structured theme with numbered sections (Source Serif 4). Papers and research notes.
book A classic, literary theme optimized for deep reading (Literata). Books and serialized writing.
gallery A visual-first theme where images span full width and captions read like wall labels. Portfolios, photo essays, art documentation.
international A crisp Neo-Grotesque grid theme (Inter & JetBrains Mono). Reports, design systems, structured essays.
blueprint Technical schematic atmosphere in drafting-table blue (IBM Plex). Architecture notes, engineering specs.
documentation Structured precision for technical reading (Inter & JetBrains Mono). Engineering logs, code notes, specifications.
code Monospace-led notebook for developers (Maple Mono & Fraunces). Programming logs, snippets, technical notes.
accessible High-legibility typography designed for effortless reading (Atkinson Hyperlegible & Lexend). Accessible reading and study notes.
eink Zero-glare, high-contrast paper aesthetic (Literata). E-readers and low-power screens.

You can also switch themes dynamically using the command palette (Standard Garden: Set note theme) or by clicking Let’s Hyphe design this in the side panel to generate a custom palette tailored to your note’s subject matter.


3. Custom Vault Themes (type: theme) & Fonts (type: font)

Beyond the 11 bundled themes, you can create and share your own themes and fonts simply by adding Markdown notes anywhere in your vault.

Creating a Vault Theme (type: theme)

Any note in your vault with type: theme in its frontmatter is automatically discovered by the plugin, added to the Set note theme picker and Default Theme dropdown (labeled as a vault theme), and compiled natively when active. Design tokens live directly as flat keys at the root of the YAML frontmatter, and optional rules use standard selectors inside ```css fences (no body.stnd-adapter wrapper required):

---
type: theme
theme: forest
title: Forest
color-light-background: "#f4f1ea"
color-light-foreground: "#1e2620"
color-light-accent: "#2d6a4f"
font-header: '"Forrest", serif'
font-text: '"Source Serif 4", serif'
---

```css
h1, h2 {
  letter-spacing: -0.02em;
}

- Every flat design token key in frontmatter is emitted as `--<key>: <value>` inside the theme selector (`--color-light-background`, `--font-header`, `--ratio`, `--density`, etc.).
- Optional CSS rules inside ```` ```css ```` blocks can use standard selectors (`:root`, `h1`, `.callout`); Obsidian maps them into the `.stnd-adapter` workspace automatically. Top-level `@font-face` or `@media` rules can live in a ```` ```css global ```` fence.
- The theme identifier comes from `theme:` in frontmatter (or falls back to the note's filename in lowercase), and its display label comes from `title:` (with `id` / `label` accepted for compatibility).
- Any `@font-face` rules with embedded `data:font/woff2;base64,...` URIs inside a theme note are automatically offloaded into binary font files inside the plugin cache so switching themes stays instantaneous.

### Adding Custom Vault Fonts (`type: font`)

Want to use your own licensed or custom typefaces (such as *MonoLisa*, *Söhne*, *Berkeley Mono*, or *Adobe Jenson Pro*) in Obsidian without installing them system-wide on every device? Create a note with `type: font` in its frontmatter and place your `@font-face` declarations inside a ```` ```css ```` code block:

```markdown
---
type: font
---

```css
@font-face {
  font-family: "My Custom Serif";
  src: url("data:font/woff2;base64,d09GMgABAAAAA...") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

**Fast Binary Font Offloading:** When Standard Garden detects a `type: font` note, it extracts any base64-encoded font data, writes binary `.woff2` / `.ttf` / `.otf` files into `.obsidian/plugins/standard-garden/fonts/`, and caches lightweight local resource URLs in `cache-fonts.json`. Obsidian never has to re-parse megabytes of base64 strings on startup.

---

<a id="typography"></a>
## 4. Typography Tokens

> Active when **Settings → Standard Garden → Appearance → Standard Design System** is enabled. It is off by default, so enabling the plugin never changes how your notes look.

| Frontmatter Key | CSS Variable | Description |
|---|---|---|
| `font-text` | `--font-text` | Body text typeface (auto-imported from local or Google Fonts). |
| `font-header` | `--font-header` | Heading typeface (H1–H6 and inline titles). |
| `font-monospace` | `--font-monospace` | Code blocks and inline monospace text. |
| `font-interface` | `--font-interface` | Obsidian UI and menu typography. |
| `ratio` | `--ratio` | Modular type scale multiplier (`1.2` = minor third, `1.25` = major third, `1.333` = perfect fourth). |
| `density` | `--density` | Line-height multiplier and baseline density. |
| `reading-width` | `--reading-width` | Maximum reading measure for paragraphs (e.g. `68ch`, `38rlh`, `42rem`). |
| `font-weight` | `--font-weight` | Regular body weight (`400`). |
| `font-weight-bold` | `--font-weight-bold` | Bold text weight (`600`, `700`). |
| `font-header-weight` | `--font-weight-header` | Weight for all headings. |
| `font-header-letter-spacing` | `--font-header-letter-spacing` | Heading letter spacing (e.g. `-0.02em`). |
| `font-header-line-height` | `--font-header-line-height` | Heading line height multiplier. |
| `font-header-style` | `--font-header-style` | Heading style (`normal` or `italic`). |
| `font-feature` | `--font-feature` | OpenType font features for prose (`"'liga', 'kern'"`). |
| `font-variation` | `--font-variation` | Variable font axis settings (`"'wght' 450"`). |

---

<a id="colors"></a>
## 5. Color Tokens

### Light Theme Palettes

| Frontmatter Key | CSS Variable | Target |
|---|---|---|
| `color-light-background` | `--color-light-background` | Note paper / canvas background. |
| `color-light-foreground` | `--color-light-foreground` | Primary prose ink color. |
| `color-light-accent` | `--color-light-accent` | Interactive links and primary signal color. |
| `color-light-red` | `--color-light-red` | Warning and deletion highlights. |
| `color-light-orange` | `--color-light-orange` | Caution and pending highlights. |
| `color-light-yellow` | `--color-light-yellow` | Standard highlighter yellow. |
| `color-light-green` | `--color-light-green` | Fresh additions and success highlights. |
| `color-light-cyan` | `--color-light-cyan` | Technical callouts and code highlights. |
| `color-light-blue` | `--color-light-blue` | Secondary accent and information links. |
| `color-light-purple` | `--color-light-purple` | Thought callouts and philosophical links. |
| `color-light-pink` | `--color-light-pink` | Rose accent highlights. |
| `color-light-bold` | `--color-light-bold` | Dedicated ink color for **bold** text. |
| `color-light-italic` | `--color-light-italic` | Dedicated ink color for *italic* text. |

### Dark Theme Palettes

The dark mode palette mirrors the exact same structure: replace `-light-` with `-dark-` (e.g., `color-dark-background`, `color-dark-foreground`, `color-dark-accent`). Both sets can live simultaneously in the same note, adapting automatically when Obsidian toggles between light and dark modes.

---

## 6. Fine Color Control

You can also target specific semantic elements regardless of theme mode:

| Frontmatter Key | CSS Variable | Function |
|---|---|---|
| `color-header` | `--color-header` | Color for all headings (H1–H6). |
| `color-bold` | `--color-bold` | Override for bold text in both modes. |
| `color-italic` | `--color-italic` | Override for italic text in both modes. |
| `color-accent` | `--color-accent` | Override for links and active buttons. |

---

## Live typographic mirroring: Obsidian as your visual canvas

Standard Garden eliminates the gap between local note-taking and web presentation. The official Obsidian plugin embeds our curated open-source font foundry and design engine directly inside Obsidian, while also supporting your own custom `type: theme` and `type: font` vault notes. It is opt-in: turn it on in **Settings → Standard Garden → Appearance → Standard Design System**.

- **Real-Time Display Mirroring:** Whenever you specify a temperament in frontmatter (`theme: humanist`, `theme: blueprint`, `theme: editorial`, `theme: academic`, `theme: international`, `theme: gallery`, `theme: eink`, or any custom `type: theme` note in your vault), Obsidian instantly switches its live rendering to that exact atmosphere.
- **Embedded & Vault Foundry Typography:** The plugin bundles curated open-source typefaces (*EB Garamond*, *Newsreader*, *Instrument Sans*, *Fraunces*, *IBM Plex*, *JetBrains Mono*, *Maple Mono*) and automatically offloads base64 fonts from your `type: font` vault notes into binary cache files without requiring system font installation.
- **True-to-Web Fidelity:** Spacing, line heights, font contrasts, and margins in Obsidian mirror the live publication on [standard.garden](https://standard.garden). What you compose locally is precisely what your readers experience online.
- **Vault Default & Per-Note Overrides:** Choose a default aesthetic in **Garden panel → Design** (or plugin settings) to grace your entire vault, or customize specific notes individually with the `theme:` key.


---

## See Also

- [The Obsidian Atelier](/guide/publish/obsidian) — installation, sync, and publication workflow
- [CSS & Rendering Hooks](/guide/style/css-hooks) — classes injected onto notes for custom stylesheets
- [Styling the Soil](/guide/style/frontmatter) — full frontmatter metadata reference

Are you absolutely sure?

This action cannot be undone.