/* Matugen Obsidian Dynamic Colors Snippet * Place output in: /.obsidian/snippets/matugen.css * Then enable it in: Settings → Appearance → CSS Snippets */ .theme-dark, .theme-light { /* ── Material You RGB helpers ──────────────────────────── */ --mat-bg-rgb: 28, 28, 28; --mat-surface-rgb: 28, 28, 28; --mat-on-surface-rgb: 251, 241, 199; --mat-primary-rgb: 131, 165, 152; --mat-on-primary-rgb: 28, 28, 28; /* ── Core Backgrounds ──────────────────────────────────── */ --background-primary: #1c1c1c; --background-primary-alt: #1c1c1c; --background-secondary: #1c1c1c; --background-secondary-alt: #282828; /* ── Titlebar ──────────────────────────────────────────── */ --titlebar-background: #1c1c1c; --titlebar-background-focused: #1c1c1c; --titlebar-text-color: #fbf1c7; /* ── Borders & Dividers ────────────────────────────────── */ --background-modifier-border: #303030; --background-modifier-border-focus: #ebdbb2; --background-modifier-border-hover: #ebdbb2; /* ── Text Colors ───────────────────────────────────────── */ --text-normal: #fbf1c7; --text-muted: #ebdbb2; --text-faint: #ebdbb2; --text-on-accent: #1c1c1c; --text-selection: rgba(131, 165, 152, 0.25); /* ── Accent & Interactive ──────────────────────────────── */ --interactive-accent: #83a598; --interactive-accent-hover: #458588; --interactive-accent-rgb: 131, 165, 152; --text-accent: #83a598; --text-accent-hover: #458588; /* ── Hover & Active Modifiers ──────────────────────────── */ --background-modifier-hover: rgba(var(--mat-on-surface-rgb), 0.06); --background-modifier-active-hover: rgba(var(--mat-primary-rgb), 0.15); --background-modifier-success: #3c3836; --background-modifier-error: #8c1d18; --background-modifier-error-hover: #cc241d; /* ── Obsidian Color Scale (--color-base-XX) ────────────── */ --color-base-00: #1c1c1c; --color-base-05: #1c1c1c; --color-base-10: #1c1c1c; --color-base-20: #1c1c1c; --color-base-25: #282828; --color-base-30: #3c3836; --color-base-35: #504945; --color-base-40: #303030; --color-base-50: #ebdbb2; --color-base-60: #ebdbb2; --color-base-70: #fbf1c7; --color-base-100: #fbf1c7; /* ── Semantic Colors ───────────────────────────────────── */ --color-red: #cc241d; --color-orange: #b16286; --color-yellow: #b16286; --color-green: #3c3836; --color-cyan: #3c3836; --color-blue: #83a598; --color-purple: #b16286; --color-pink: #b16286; /* ── Headings ──────────────────────────────────────────── */ --h1-color: #83a598; --h2-color: #83a598; --h3-color: #b16286; --h4-color: #b16286; --h5-color: #ebdbb2; --h6-color: #ebdbb2; /* ── Links ─────────────────────────────────────────────── */ --link-color: #83a598; --link-color-hover: #fbf1c7; --link-external-color: #b16286; --link-unresolved-color: #ebdbb2; /* ── Tags ──────────────────────────────────────────────── */ --tag-color: #fbf1c7; --tag-background: #458588; --tag-border-color: #83a598; --tag-color-hover: #1c1c1c; --tag-background-hover: #83a598; /* ── Checkboxes ────────────────────────────────────────── */ --checkbox-color: #83a598; --checkbox-color-hover: #458588; --checkbox-border-color: #ebdbb2; --checkbox-marker-color: #1c1c1c; /* ── Code Blocks ───────────────────────────────────────── */ --code-background: #1c1c1c; --code-normal: #fbf1c7; --code-comment: #ebdbb2; --code-function: #83a598; --code-important: #cc241d; --code-keyword: #b16286; --code-operator: #b16286; --code-property: #ebdbb2; --code-punctuation: #303030; --code-string: #b16286; --code-tag: #cc241d; --code-value: #b16286; /* ── Scrollbar ─────────────────────────────────────────── */ --scrollbar-thumb-bg: rgba(var(--mat-on-surface-rgb), 0.12); --scrollbar-active-thumb-bg: rgba(var(--mat-on-surface-rgb), 0.25); --scrollbar-bg: transparent; /* ── Inputs ────────────────────────────────────────────── */ --input-shadow: none; --input-shadow-hover: 0 0 0 2px #ebdbb2; /* ── Graph View ────────────────────────────────────────── */ --graph-node: #83a598; --graph-node-unresolved: #ebdbb2; --graph-node-focused: #fbf1c7; --graph-node-tag: #b16286; --graph-node-attachment: #b16286; --graph-line: #303030; --graph-background: #1c1c1c; } /* ── Active line highlight ─────────────────────────────────── */ .cm-active { background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important; }