Files
SDG-OS/matugen/templates-out/obsidian.css
T
2026-06-05 11:20:31 +02:00

140 lines
6.5 KiB
CSS

/* Matugen Obsidian Dynamic Colors Snippet
* Place output in: <vault>/.obsidian/snippets/matugen.css
* Then enable it in: Settings → Appearance → CSS Snippets
*/
.theme-dark, .theme-light {
/* ── Material You RGB helpers ──────────────────────────── */
--mat-bg-rgb: 18, 18, 18;
--mat-surface-rgb: 18, 18, 18;
--mat-on-surface-rgb: 224, 224, 224;
--mat-primary-rgb: 118, 186, 153;
--mat-on-primary-rgb: 0, 0, 0;
/* ── Core Backgrounds ──────────────────────────────────── */
--background-primary: #121212;
--background-primary-alt: #121212;
--background-secondary: #121212;
--background-secondary-alt: #1e1e1e;
/* ── Titlebar ──────────────────────────────────────────── */
--titlebar-background: #121212;
--titlebar-background-focused: #121212;
--titlebar-text-color: #e0e0e0;
/* ── Borders & Dividers ────────────────────────────────── */
--background-modifier-border: #1e1e1e;
--background-modifier-border-focus: #444444;
--background-modifier-border-hover: #444444;
/* ── Text Colors ───────────────────────────────────────── */
--text-normal: #e0e0e0;
--text-muted: #bdbdbd;
--text-faint: #444444;
--text-on-accent: #000000;
--text-selection: rgba(118, 186, 153, 0.25);
/* ── Accent & Interactive ──────────────────────────────── */
--interactive-accent: #76ba99;
--interactive-accent-hover: #5a9a80;
--interactive-accent-rgb: 118, 186, 153;
--text-accent: #76ba99;
--text-accent-hover: #5a9a80;
/* ── 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: #2a2a2a;
--background-modifier-error: #8c1d18;
--background-modifier-error-hover: #ff5252;
/* ── Obsidian Color Scale (--color-base-XX) ────────────── */
--color-base-00: #121212;
--color-base-05: #121212;
--color-base-10: #121212;
--color-base-20: #121212;
--color-base-25: #1e1e1e;
--color-base-30: #2a2a2a;
--color-base-35: #2a2a2a;
--color-base-40: #1e1e1e;
--color-base-50: #444444;
--color-base-60: #bdbdbd;
--color-base-70: #e0e0e0;
--color-base-100: #ffffff;
/* ── Semantic Colors ───────────────────────────────────── */
--color-red: #ff5252;
--color-orange: #5c7080;
--color-yellow: #5c7080;
--color-green: #2a2a2a;
--color-cyan: #2a2a2a;
--color-blue: #76ba99;
--color-purple: #5c7080;
--color-pink: #5c7080;
/* ── Headings ──────────────────────────────────────────── */
--h1-color: #76ba99;
--h2-color: #76ba99;
--h3-color: #5c7080;
--h4-color: #5c7080;
--h5-color: #bdbdbd;
--h6-color: #444444;
/* ── Links ─────────────────────────────────────────────── */
--link-color: #76ba99;
--link-color-hover: #e0e0e0;
--link-external-color: #5c7080;
--link-unresolved-color: #444444;
/* ── Tags ──────────────────────────────────────────────── */
--tag-color: #e0e0e0;
--tag-background: #5a9a80;
--tag-border-color: #76ba99;
--tag-color-hover: #000000;
--tag-background-hover: #76ba99;
/* ── Checkboxes ────────────────────────────────────────── */
--checkbox-color: #76ba99;
--checkbox-color-hover: #5a9a80;
--checkbox-border-color: #444444;
--checkbox-marker-color: #000000;
/* ── Code Blocks ───────────────────────────────────────── */
--code-background: #121212;
--code-normal: #e0e0e0;
--code-comment: #444444;
--code-function: #76ba99;
--code-important: #ff5252;
--code-keyword: #5c7080;
--code-operator: #5c7080;
--code-property: #bdbdbd;
--code-punctuation: #1e1e1e;
--code-string: #5c7080;
--code-tag: #ff5252;
--code-value: #5c7080;
/* ── 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 #444444;
/* ── Graph View ────────────────────────────────────────── */
--graph-node: #76ba99;
--graph-node-unresolved: #444444;
--graph-node-focused: #e0e0e0;
--graph-node-tag: #5c7080;
--graph-node-attachment: #5c7080;
--graph-line: #1e1e1e;
--graph-background: #121212;
}
/* ── Active line highlight ─────────────────────────────────── */
.cm-active {
background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important;
}