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: 14, 14, 14;
|
|
--mat-surface-rgb: 14, 14, 14;
|
|
--mat-on-surface-rgb: 224, 224, 224;
|
|
--mat-primary-rgb: 255, 0, 0;
|
|
--mat-on-primary-rgb: 255, 255, 255;
|
|
|
|
/* ── Core Backgrounds ──────────────────────────────────── */
|
|
--background-primary: #0e0e0e;
|
|
--background-primary-alt: #0e0e0e;
|
|
--background-secondary: #0e0e0e;
|
|
--background-secondary-alt: #1c1c1c;
|
|
|
|
/* ── Titlebar ──────────────────────────────────────────── */
|
|
--titlebar-background: #0e0e0e;
|
|
--titlebar-background-focused: #0e0e0e;
|
|
--titlebar-text-color: #e0e0e0;
|
|
|
|
/* ── Borders & Dividers ────────────────────────────────── */
|
|
--background-modifier-border: #1c1c1c;
|
|
--background-modifier-border-focus: #444444;
|
|
--background-modifier-border-hover: #444444;
|
|
|
|
/* ── Text Colors ───────────────────────────────────────── */
|
|
--text-normal: #e0e0e0;
|
|
--text-muted: #bdbdbd;
|
|
--text-faint: #444444;
|
|
--text-on-accent: #ffffff;
|
|
--text-selection: rgba(255, 0, 0, 0.25);
|
|
|
|
/* ── Accent & Interactive ──────────────────────────────── */
|
|
--interactive-accent: #ff0000;
|
|
--interactive-accent-hover: #b71c1c;
|
|
--interactive-accent-rgb: 255, 0, 0;
|
|
--text-accent: #ff0000;
|
|
--text-accent-hover: #b71c1c;
|
|
|
|
/* ── 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: #0e0e0e;
|
|
--color-base-05: #0e0e0e;
|
|
--color-base-10: #0e0e0e;
|
|
--color-base-20: #0e0e0e;
|
|
--color-base-25: #1c1c1c;
|
|
--color-base-30: #2a2a2a;
|
|
--color-base-35: #2a2a2a;
|
|
--color-base-40: #1c1c1c;
|
|
--color-base-50: #444444;
|
|
--color-base-60: #bdbdbd;
|
|
--color-base-70: #e0e0e0;
|
|
--color-base-100: #ffffff;
|
|
|
|
/* ── Semantic Colors ───────────────────────────────────── */
|
|
--color-red: #ff5252;
|
|
--color-orange: #00ff00;
|
|
--color-yellow: #00ff00;
|
|
--color-green: #2a2a2a;
|
|
--color-cyan: #2a2a2a;
|
|
--color-blue: #ff0000;
|
|
--color-purple: #00ff00;
|
|
--color-pink: #00ff00;
|
|
|
|
/* ── Headings ──────────────────────────────────────────── */
|
|
--h1-color: #ff0000;
|
|
--h2-color: #ff0000;
|
|
--h3-color: #00ff00;
|
|
--h4-color: #00ff00;
|
|
--h5-color: #bdbdbd;
|
|
--h6-color: #444444;
|
|
|
|
/* ── Links ─────────────────────────────────────────────── */
|
|
--link-color: #ff0000;
|
|
--link-color-hover: #e0e0e0;
|
|
--link-external-color: #00ff00;
|
|
--link-unresolved-color: #444444;
|
|
|
|
/* ── Tags ──────────────────────────────────────────────── */
|
|
--tag-color: #e0e0e0;
|
|
--tag-background: #b71c1c;
|
|
--tag-border-color: #ff0000;
|
|
--tag-color-hover: #ffffff;
|
|
--tag-background-hover: #ff0000;
|
|
|
|
/* ── Checkboxes ────────────────────────────────────────── */
|
|
--checkbox-color: #ff0000;
|
|
--checkbox-color-hover: #b71c1c;
|
|
--checkbox-border-color: #444444;
|
|
--checkbox-marker-color: #ffffff;
|
|
|
|
/* ── Code Blocks ───────────────────────────────────────── */
|
|
--code-background: #0e0e0e;
|
|
--code-normal: #e0e0e0;
|
|
--code-comment: #444444;
|
|
--code-function: #ff0000;
|
|
--code-important: #ff5252;
|
|
--code-keyword: #00ff00;
|
|
--code-operator: #00ff00;
|
|
--code-property: #bdbdbd;
|
|
--code-punctuation: #1c1c1c;
|
|
--code-string: #00ff00;
|
|
--code-tag: #ff5252;
|
|
--code-value: #00ff00;
|
|
|
|
/* ── 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: #ff0000;
|
|
--graph-node-unresolved: #444444;
|
|
--graph-node-focused: #e0e0e0;
|
|
--graph-node-tag: #00ff00;
|
|
--graph-node-attachment: #00ff00;
|
|
--graph-line: #1c1c1c;
|
|
--graph-background: #0e0e0e;
|
|
|
|
}
|
|
|
|
/* ── Active line highlight ─────────────────────────────────── */
|
|
.cm-active {
|
|
background-color: rgba(var(--mat-on-surface-rgb), 0.03) !important;
|
|
} |