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: 26, 16, 24;
|
|
--mat-surface-rgb: 26, 16, 24;
|
|
--mat-on-surface-rgb: 240, 221, 233;
|
|
--mat-primary-rgb: 255, 170, 248;
|
|
--mat-on-primary-rgb: 90, 0, 94;
|
|
|
|
/* ── Core Backgrounds ──────────────────────────────────── */
|
|
--background-primary: #1a1018;
|
|
--background-primary-alt: #1a1018;
|
|
--background-secondary: #221821;
|
|
--background-secondary-alt: #261c25;
|
|
|
|
/* ── Titlebar ──────────────────────────────────────────── */
|
|
--titlebar-background: #1a1018;
|
|
--titlebar-background-focused: #221821;
|
|
--titlebar-text-color: #f0dde9;
|
|
|
|
/* ── Borders & Dividers ────────────────────────────────── */
|
|
--background-modifier-border: #4f434d;
|
|
--background-modifier-border-focus: #9c8c97;
|
|
--background-modifier-border-hover: #9c8c97;
|
|
|
|
/* ── Text Colors ───────────────────────────────────────── */
|
|
--text-normal: #f0dde9;
|
|
--text-muted: #d3c2cd;
|
|
--text-faint: #9c8c97;
|
|
--text-on-accent: #5a005e;
|
|
--text-selection: rgba(255, 170, 248, 0.25);
|
|
|
|
/* ── Accent & Interactive ──────────────────────────────── */
|
|
--interactive-accent: #ffaaf8;
|
|
--interactive-accent-hover: #7f0085;
|
|
--interactive-accent-rgb: 255, 170, 248;
|
|
--text-accent: #ffaaf8;
|
|
--text-accent-hover: #7f0085;
|
|
|
|
/* ── 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: #6b364a;
|
|
--background-modifier-error: #93000a;
|
|
--background-modifier-error-hover: #ffb4ab;
|
|
|
|
/* ── Obsidian Color Scale (--color-base-XX) ────────────── */
|
|
--color-base-00: #1a1018;
|
|
--color-base-05: #1a1018;
|
|
--color-base-10: #140b13;
|
|
--color-base-20: #221821;
|
|
--color-base-25: #261c25;
|
|
--color-base-30: #312730;
|
|
--color-base-35: #3d313a;
|
|
--color-base-40: #4f434d;
|
|
--color-base-50: #9c8c97;
|
|
--color-base-60: #d3c2cd;
|
|
--color-base-70: #f0dde9;
|
|
--color-base-100: #f0dde9;
|
|
|
|
/* ── Semantic Colors ───────────────────────────────────── */
|
|
--color-red: #ffb4ab;
|
|
--color-orange: #fbb2ca;
|
|
--color-yellow: #e9b9d3;
|
|
--color-green: #6b364a;
|
|
--color-cyan: #5f3c51;
|
|
--color-blue: #ffaaf8;
|
|
--color-purple: #e9b9d3;
|
|
--color-pink: #fbb2ca;
|
|
|
|
/* ── Headings ──────────────────────────────────────────── */
|
|
--h1-color: #ffaaf8;
|
|
--h2-color: #ffaaf8;
|
|
--h3-color: #e9b9d3;
|
|
--h4-color: #fbb2ca;
|
|
--h5-color: #d3c2cd;
|
|
--h6-color: #9c8c97;
|
|
|
|
/* ── Links ─────────────────────────────────────────────── */
|
|
--link-color: #ffaaf8;
|
|
--link-color-hover: #ffd6f7;
|
|
--link-external-color: #fbb2ca;
|
|
--link-unresolved-color: #9c8c97;
|
|
|
|
/* ── Tags ──────────────────────────────────────────────── */
|
|
--tag-color: #ffd6f7;
|
|
--tag-background: #7f0085;
|
|
--tag-border-color: #ffaaf8;
|
|
--tag-color-hover: #5a005e;
|
|
--tag-background-hover: #ffaaf8;
|
|
|
|
/* ── Checkboxes ────────────────────────────────────────── */
|
|
--checkbox-color: #ffaaf8;
|
|
--checkbox-color-hover: #7f0085;
|
|
--checkbox-border-color: #9c8c97;
|
|
--checkbox-marker-color: #5a005e;
|
|
|
|
/* ── Code Blocks ───────────────────────────────────────── */
|
|
--code-background: #221821;
|
|
--code-normal: #f0dde9;
|
|
--code-comment: #9c8c97;
|
|
--code-function: #ffaaf8;
|
|
--code-important: #ffb4ab;
|
|
--code-keyword: #e9b9d3;
|
|
--code-operator: #fbb2ca;
|
|
--code-property: #d3c2cd;
|
|
--code-punctuation: #4f434d;
|
|
--code-string: #fbb2ca;
|
|
--code-tag: #ffb4ab;
|
|
--code-value: #e9b9d3;
|
|
|
|
/* ── 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 #9c8c97;
|
|
|
|
/* ── Graph View ────────────────────────────────────────── */
|
|
--graph-node: #ffaaf8;
|
|
--graph-node-unresolved: #9c8c97;
|
|
--graph-node-focused: #ffd6f7;
|
|
--graph-node-tag: #e9b9d3;
|
|
--graph-node-attachment: #fbb2ca;
|
|
--graph-line: #4f434d;
|
|
--graph-background: #1a1018;
|
|
|
|
}
|
|
|
|
/* ── Active line highlight ─────────────────────────────────── */
|
|
.cm-active {
|
|
background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important;
|
|
} |