140 lines
6.5 KiB
CSS
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, 19, 26;
|
|
--mat-surface-rgb: 18, 19, 26;
|
|
--mat-on-surface-rgb: 226, 225, 235;
|
|
--mat-primary-rgb: 183, 196, 255;
|
|
--mat-on-primary-rgb: 0, 38, 131;
|
|
|
|
/* ── Core Backgrounds ──────────────────────────────────── */
|
|
--background-primary: #12131a;
|
|
--background-primary-alt: #12131a;
|
|
--background-secondary: #1a1b22;
|
|
--background-secondary-alt: #1e1f26;
|
|
|
|
/* ── Titlebar ──────────────────────────────────────────── */
|
|
--titlebar-background: #12131a;
|
|
--titlebar-background-focused: #1a1b22;
|
|
--titlebar-text-color: #e2e1eb;
|
|
|
|
/* ── Borders & Dividers ────────────────────────────────── */
|
|
--background-modifier-border: #444653;
|
|
--background-modifier-border-focus: #8e909f;
|
|
--background-modifier-border-hover: #8e909f;
|
|
|
|
/* ── Text Colors ───────────────────────────────────────── */
|
|
--text-normal: #e2e1eb;
|
|
--text-muted: #c4c5d5;
|
|
--text-faint: #8e909f;
|
|
--text-on-accent: #002683;
|
|
--text-selection: rgba(183, 196, 255, 0.25);
|
|
|
|
/* ── Accent & Interactive ──────────────────────────────── */
|
|
--interactive-accent: #b7c4ff;
|
|
--interactive-accent-hover: #0d38ab;
|
|
--interactive-accent-rgb: 183, 196, 255;
|
|
--text-accent: #b7c4ff;
|
|
--text-accent-hover: #0d38ab;
|
|
|
|
/* ── 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: #822200;
|
|
--background-modifier-error: #93000a;
|
|
--background-modifier-error-hover: #ffb4ab;
|
|
|
|
/* ── Obsidian Color Scale (--color-base-XX) ────────────── */
|
|
--color-base-00: #12131a;
|
|
--color-base-05: #12131a;
|
|
--color-base-10: #0c0e14;
|
|
--color-base-20: #1a1b22;
|
|
--color-base-25: #1e1f26;
|
|
--color-base-30: #282a31;
|
|
--color-base-35: #33343c;
|
|
--color-base-40: #444653;
|
|
--color-base-50: #8e909f;
|
|
--color-base-60: #c4c5d5;
|
|
--color-base-70: #e2e1eb;
|
|
--color-base-100: #e2e1eb;
|
|
|
|
/* ── Semantic Colors ───────────────────────────────────── */
|
|
--color-red: #ffb4ab;
|
|
--color-orange: #ffb59f;
|
|
--color-yellow: #bac4f7;
|
|
--color-green: #822200;
|
|
--color-cyan: #3a446f;
|
|
--color-blue: #b7c4ff;
|
|
--color-purple: #bac4f7;
|
|
--color-pink: #ffb59f;
|
|
|
|
/* ── Headings ──────────────────────────────────────────── */
|
|
--h1-color: #b7c4ff;
|
|
--h2-color: #b7c4ff;
|
|
--h3-color: #bac4f7;
|
|
--h4-color: #ffb59f;
|
|
--h5-color: #c4c5d5;
|
|
--h6-color: #8e909f;
|
|
|
|
/* ── Links ─────────────────────────────────────────────── */
|
|
--link-color: #b7c4ff;
|
|
--link-color-hover: #d5dbff;
|
|
--link-external-color: #ffb59f;
|
|
--link-unresolved-color: #8e909f;
|
|
|
|
/* ── Tags ──────────────────────────────────────────────── */
|
|
--tag-color: #d5dbff;
|
|
--tag-background: #0d38ab;
|
|
--tag-border-color: #b7c4ff;
|
|
--tag-color-hover: #002683;
|
|
--tag-background-hover: #b7c4ff;
|
|
|
|
/* ── Checkboxes ────────────────────────────────────────── */
|
|
--checkbox-color: #b7c4ff;
|
|
--checkbox-color-hover: #0d38ab;
|
|
--checkbox-border-color: #8e909f;
|
|
--checkbox-marker-color: #002683;
|
|
|
|
/* ── Code Blocks ───────────────────────────────────────── */
|
|
--code-background: #1a1b22;
|
|
--code-normal: #e2e1eb;
|
|
--code-comment: #8e909f;
|
|
--code-function: #b7c4ff;
|
|
--code-important: #ffb4ab;
|
|
--code-keyword: #bac4f7;
|
|
--code-operator: #ffb59f;
|
|
--code-property: #c4c5d5;
|
|
--code-punctuation: #444653;
|
|
--code-string: #ffb59f;
|
|
--code-tag: #ffb4ab;
|
|
--code-value: #bac4f7;
|
|
|
|
/* ── 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 #8e909f;
|
|
|
|
/* ── Graph View ────────────────────────────────────────── */
|
|
--graph-node: #b7c4ff;
|
|
--graph-node-unresolved: #8e909f;
|
|
--graph-node-focused: #d5dbff;
|
|
--graph-node-tag: #bac4f7;
|
|
--graph-node-attachment: #ffb59f;
|
|
--graph-line: #444653;
|
|
--graph-background: #12131a;
|
|
|
|
}
|
|
|
|
/* ── Active line highlight ─────────────────────────────────── */
|
|
.cm-active {
|
|
background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important;
|
|
} |