Files
uni_notes/.obsidian/snippets/matugen.css
2026-04-07 13:43:08 +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: 31, 15, 13;
--mat-surface-rgb: 31, 15, 13;
--mat-on-surface-rgb: 251, 219, 215;
--mat-primary-rgb: 255, 180, 169;
--mat-on-primary-rgb: 105, 0, 2;
/* ── Core Backgrounds ──────────────────────────────────── */
--background-primary: #1f0f0d;
--background-primary-alt: #1f0f0d;
--background-secondary: #281715;
--background-secondary-alt: #2c1b19;
/* ── Titlebar ──────────────────────────────────────────── */
--titlebar-background: #1f0f0d;
--titlebar-background-focused: #281715;
--titlebar-text-color: #fbdbd7;
/* ── Borders & Dividers ────────────────────────────────── */
--background-modifier-border: #5c403c;
--background-modifier-border-focus: #ac8883;
--background-modifier-border-hover: #ac8883;
/* ── Text Colors ───────────────────────────────────────── */
--text-normal: #fbdbd7;
--text-muted: #e5bdb8;
--text-faint: #ac8883;
--text-on-accent: #690002;
--text-selection: rgba(255, 180, 169, 0.25);
/* ── Accent & Interactive ──────────────────────────────── */
--interactive-accent: #ffb4a9;
--interactive-accent-hover: #bc120f;
--interactive-accent-rgb: 255, 180, 169;
--text-accent: #ffb4a9;
--text-accent-hover: #bc120f;
/* ── 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: #0058c8;
--background-modifier-error: #93000a;
--background-modifier-error-hover: #ffb4ab;
/* ── Obsidian Color Scale (--color-base-XX) ────────────── */
--color-base-00: #1f0f0d;
--color-base-05: #1f0f0d;
--color-base-10: #190a08;
--color-base-20: #281715;
--color-base-25: #2c1b19;
--color-base-30: #382523;
--color-base-35: #43302d;
--color-base-40: #5c403c;
--color-base-50: #ac8883;
--color-base-60: #e5bdb8;
--color-base-70: #fbdbd7;
--color-base-100: #fbdbd7;
/* ── Semantic Colors ───────────────────────────────────── */
--color-red: #ffb4ab;
--color-orange: #afc6ff;
--color-yellow: #ffb4a9;
--color-green: #0058c8;
--color-cyan: #87261d;
--color-blue: #ffb4a9;
--color-purple: #ffb4a9;
--color-pink: #afc6ff;
/* ── Headings ──────────────────────────────────────────── */
--h1-color: #ffb4a9;
--h2-color: #ffb4a9;
--h3-color: #ffb4a9;
--h4-color: #afc6ff;
--h5-color: #e5bdb8;
--h6-color: #ac8883;
/* ── Links ─────────────────────────────────────────────── */
--link-color: #ffb4a9;
--link-color-hover: #ffffff;
--link-external-color: #afc6ff;
--link-unresolved-color: #ac8883;
/* ── Tags ──────────────────────────────────────────────── */
--tag-color: #ffffff;
--tag-background: #bc120f;
--tag-border-color: #ffb4a9;
--tag-color-hover: #690002;
--tag-background-hover: #ffb4a9;
/* ── Checkboxes ────────────────────────────────────────── */
--checkbox-color: #ffb4a9;
--checkbox-color-hover: #bc120f;
--checkbox-border-color: #ac8883;
--checkbox-marker-color: #690002;
/* ── Code Blocks ───────────────────────────────────────── */
--code-background: #281715;
--code-normal: #fbdbd7;
--code-comment: #ac8883;
--code-function: #ffb4a9;
--code-important: #ffb4ab;
--code-keyword: #ffb4a9;
--code-operator: #afc6ff;
--code-property: #e5bdb8;
--code-punctuation: #5c403c;
--code-string: #afc6ff;
--code-tag: #ffb4ab;
--code-value: #ffb4a9;
/* ── 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 #ac8883;
/* ── Graph View ────────────────────────────────────────── */
--graph-node: #ffb4a9;
--graph-node-unresolved: #ac8883;
--graph-node-focused: #ffffff;
--graph-node-tag: #ffb4a9;
--graph-node-attachment: #afc6ff;
--graph-line: #5c403c;
--graph-background: #1f0f0d;
}
/* ── Active line highlight ─────────────────────────────────── */
.cm-active {
background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important;
}