/* 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: 16, 20, 23; --mat-surface-rgb: 16, 20, 23; --mat-on-surface-rgb: 224, 227, 231; --mat-primary-rgb: 129, 207, 255; --mat-on-primary-rgb: 0, 52, 75; /* ── Core Backgrounds ──────────────────────────────────── */ --background-primary: #101417; --background-primary-alt: #101417; --background-secondary: #181c1f; --background-secondary-alt: #1c2023; /* ── Titlebar ──────────────────────────────────────────── */ --titlebar-background: #101417; --titlebar-background-focused: #181c1f; --titlebar-text-color: #e0e3e7; /* ── Borders & Dividers ────────────────────────────────── */ --background-modifier-border: #3f484f; --background-modifier-border-focus: #899299; --background-modifier-border-hover: #899299; /* ── Text Colors ───────────────────────────────────────── */ --text-normal: #e0e3e7; --text-muted: #bec8d0; --text-faint: #899299; --text-on-accent: #00344b; --text-selection: rgba(129, 207, 255, 0.25); /* ── Accent & Interactive ──────────────────────────────── */ --interactive-accent: #81cfff; --interactive-accent-hover: #389acb; --interactive-accent-rgb: 129, 207, 255; --text-accent: #81cfff; --text-accent-hover: #389acb; /* ── 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: #c58325; --background-modifier-error: #93000a; --background-modifier-error-hover: #ffb4ab; /* ── Obsidian Color Scale (--color-base-XX) ────────────── */ --color-base-00: #101417; --color-base-05: #101417; --color-base-10: #0b0f12; --color-base-20: #181c1f; --color-base-25: #1c2023; --color-base-30: #262a2e; --color-base-35: #313539; --color-base-40: #3f484f; --color-base-50: #899299; --color-base-60: #bec8d0; --color-base-70: #e0e3e7; --color-base-100: #e0e3e7; /* ── Semantic Colors ───────────────────────────────────── */ --color-red: #ffb4ab; --color-orange: #ffb960; --color-yellow: #abcbe1; --color-green: #c58325; --color-cyan: #2b4a5d; --color-blue: #81cfff; --color-purple: #abcbe1; --color-pink: #ffb960; /* ── Headings ──────────────────────────────────────────── */ --h1-color: #81cfff; --h2-color: #81cfff; --h3-color: #abcbe1; --h4-color: #ffb960; --h5-color: #bec8d0; --h6-color: #899299; /* ── Links ─────────────────────────────────────────────── */ --link-color: #81cfff; --link-color-hover: #000000; --link-external-color: #ffb960; --link-unresolved-color: #899299; /* ── Tags ──────────────────────────────────────────────── */ --tag-color: #000000; --tag-background: #389acb; --tag-border-color: #81cfff; --tag-color-hover: #00344b; --tag-background-hover: #81cfff; /* ── Checkboxes ────────────────────────────────────────── */ --checkbox-color: #81cfff; --checkbox-color-hover: #389acb; --checkbox-border-color: #899299; --checkbox-marker-color: #00344b; /* ── Code Blocks ───────────────────────────────────────── */ --code-background: #181c1f; --code-normal: #e0e3e7; --code-comment: #899299; --code-function: #81cfff; --code-important: #ffb4ab; --code-keyword: #abcbe1; --code-operator: #ffb960; --code-property: #bec8d0; --code-punctuation: #3f484f; --code-string: #ffb960; --code-tag: #ffb4ab; --code-value: #abcbe1; /* ── 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 #899299; /* ── Graph View ────────────────────────────────────────── */ --graph-node: #81cfff; --graph-node-unresolved: #899299; --graph-node-focused: #000000; --graph-node-tag: #abcbe1; --graph-node-attachment: #ffb960; --graph-line: #3f484f; --graph-background: #101417; } /* ── Active line highlight ─────────────────────────────────── */ .cm-active { background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important; }