/* 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: 32, 15, 13; --mat-surface-rgb: 32, 15, 13; --mat-on-surface-rgb: 253, 219, 215; --mat-primary-rgb: 255, 180, 172; --mat-on-primary-rgb: 105, 0, 7; /* ── Core Backgrounds ──────────────────────────────────── */ --background-primary: #200f0d; --background-primary-alt: #200f0d; --background-secondary: #291715; --background-secondary-alt: #2d1b19; /* ── Titlebar ──────────────────────────────────────────── */ --titlebar-background: #200f0d; --titlebar-background-focused: #291715; --titlebar-text-color: #fddbd7; /* ── Borders & Dividers ────────────────────────────────── */ --background-modifier-border: #5d3f3c; --background-modifier-border-focus: #ae8884; --background-modifier-border-hover: #ae8884; /* ── Text Colors ───────────────────────────────────────── */ --text-normal: #fddbd7; --text-muted: #e7bdb8; --text-faint: #ae8884; --text-on-accent: #690007; --text-selection: rgba(255, 180, 172, 0.25); /* ── Accent & Interactive ──────────────────────────────── */ --interactive-accent: #ffb4ac; --interactive-accent-hover: #de1521; --interactive-accent-rgb: 255, 180, 172; --text-accent: #ffb4ac; --text-accent-hover: #de1521; /* ── 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: #0075b9; --background-modifier-error: #93000a; --background-modifier-error-hover: #ffb4ab; /* ── Obsidian Color Scale (--color-base-XX) ────────────── */ --color-base-00: #200f0d; --color-base-05: #200f0d; --color-base-10: #1a0a08; --color-base-20: #291715; --color-base-25: #2d1b19; --color-base-30: #392523; --color-base-35: #452f2d; --color-base-40: #5d3f3c; --color-base-50: #ae8884; --color-base-60: #e7bdb8; --color-base-70: #fddbd7; --color-base-100: #fddbd7; /* ── Semantic Colors ───────────────────────────────────── */ --color-red: #ffb4ab; --color-orange: #98cbff; --color-yellow: #ffb4ac; --color-green: #0075b9; --color-cyan: #8b1919; --color-blue: #ffb4ac; --color-purple: #ffb4ac; --color-pink: #98cbff; /* ── Headings ──────────────────────────────────────────── */ --h1-color: #ffb4ac; --h2-color: #ffb4ac; --h3-color: #ffb4ac; --h4-color: #98cbff; --h5-color: #e7bdb8; --h6-color: #ae8884; /* ── Links ─────────────────────────────────────────────── */ --link-color: #ffb4ac; --link-color-hover: #ffffff; --link-external-color: #98cbff; --link-unresolved-color: #ae8884; /* ── Tags ──────────────────────────────────────────────── */ --tag-color: #ffffff; --tag-background: #de1521; --tag-border-color: #ffb4ac; --tag-color-hover: #690007; --tag-background-hover: #ffb4ac; /* ── Checkboxes ────────────────────────────────────────── */ --checkbox-color: #ffb4ac; --checkbox-color-hover: #de1521; --checkbox-border-color: #ae8884; --checkbox-marker-color: #690007; /* ── Code Blocks ───────────────────────────────────────── */ --code-background: #291715; --code-normal: #fddbd7; --code-comment: #ae8884; --code-function: #ffb4ac; --code-important: #ffb4ab; --code-keyword: #ffb4ac; --code-operator: #98cbff; --code-property: #e7bdb8; --code-punctuation: #5d3f3c; --code-string: #98cbff; --code-tag: #ffb4ab; --code-value: #ffb4ac; /* ── 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 #ae8884; /* ── Graph View ────────────────────────────────────────── */ --graph-node: #ffb4ac; --graph-node-unresolved: #ae8884; --graph-node-focused: #ffffff; --graph-node-tag: #ffb4ac; --graph-node-attachment: #98cbff; --graph-line: #5d3f3c; --graph-background: #200f0d; } /* ── Active line highlight ─────────────────────────────────── */ .cm-active { background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important; }