/* ============================================================ VELLUM — An Obsidian Theme by Rohith A (ZIYAL) Dual mode: Vanilla Parchment (light) · Calm Charcoal (dark) Fonts: Playfair Display (headings) · Charm (body) v1.0.1 ============================================================ */ @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Charm:wght@400;700&display=swap'); /* ============================================================ CSS CUSTOM PROPERTIES — LIGHT (VANILLA) ============================================================ */ .theme-light { --color-base-00: #F5F0E8; --color-base-05: #EFE9DC; --color-base-10: #E8E0CF; --color-base-20: #DDD5C0; --color-base-25: #D4CAAF; --color-base-30: #C8BD9E; --color-base-35: #B8AC8A; --color-base-40: #A89B75; --color-base-50: #7A6E55; --color-base-60: #5C5240; --color-base-70: #3D3525; --color-base-100: #2C2415; --color-text: #1B2A4A; --text-normal: #1B2A4A; --text-muted: #4A5A7A; --text-faint: #7A8AA8; --color-sepia-text: #3D2B1F; --color-sepia-muted: #6B4C3B; --color-sepia-faint: #9B7B6A; --color-accent: #1B2A4A; --color-accent-1: #2A3D6B; --color-accent-2: #3D5490; --interactive-accent: #1B2A4A; --interactive-accent-hover: #2A3D6B; --link-color: #2A4080; --link-color-hover: #1B2A4A; --link-external-color: #3D5490; --link-unresolved-color: #9B7B6A; --tag-color: #1B2A4A; --tag-background: rgba(27, 42, 74, 0.08); --tag-background-hover: rgba(27, 42, 74, 0.15); --code-background: #EBE4D4; --code-normal: #3D2B1F; --code-comment: #9B7B6A; --code-string: #5A7A3A; --code-keyword: #2A4080; --code-function: #8B3A3A; --background-primary: #F5F0E8; --background-primary-alt: #EFE9DC; --background-secondary: #E8E0CF; --background-secondary-alt: #DDD5C0; --background-modifier-border: #D4CAAF; --background-modifier-border-hover: #C8BD9E; --background-modifier-border-focus: #1B2A4A; --background-modifier-hover: rgba(27, 42, 74, 0.06); --background-modifier-active-hover: rgba(27, 42, 74, 0.10); --background-modifier-success: rgba(90, 122, 58, 0.15); --background-modifier-error: rgba(139, 58, 58, 0.12); --scrollbar-bg: transparent; --scrollbar-thumb-bg: #D4CAAF; --scrollbar-active-thumb-bg: #B8AC8A; --callout-default: #2A4080; --callout-info: #2A6080; --callout-tip: #5A7A3A; --callout-success: #3A7A5A; --callout-warning: #8B6A1A; --callout-error: #8B3A3A; --h1-color: #1B2A4A; --h2-color: #1B2A4A; --h3-color: #2A3D6B; --h4-color: #2A3D6B; --h5-color: #4A5A7A; --h6-color: #4A5A7A; --graph-node: #1B2A4A; --graph-node-unresolved: #C8BD9E; --graph-node-focused: #2A3D6B; --graph-node-tag: #5A7A3A; --graph-node-attachment: #8B6A1A; --graph-line: #D4CAAF; --graph-arrow: #C8BD9E; } /* ============================================================ CSS CUSTOM PROPERTIES — DARK (CALM CHARCOAL) ============================================================ */ .theme-dark { --color-base-00: #2E2E2E; --color-base-05: #323232; --color-base-10: #383838; --color-base-20: #404040; --color-base-25: #4D4C4C; --color-base-30: #555454; --color-base-35: #626060; --color-base-40: #706E6E; --color-base-50: #8A8888; --color-base-60: #A8A6A6; --color-base-70: #C4C2C2; --color-base-100: #E4E0D3; --color-text: #E4E0D3; --text-normal: #E4E0D3; --text-muted: #B8B4A8; --text-faint: #8A8880; --color-accent: #D4C9A8; --color-accent-1: #C8BC98; --color-accent-2: #B8AA80; --interactive-accent: #C8BC98; --interactive-accent-hover: #D4C9A8; --link-color: #C4BAA0; --link-color-hover: #E4E0D3; --link-external-color: #B8B0A0; --link-unresolved-color: #706E6E; --tag-color: #E4E0D3; --tag-background: rgba(228, 224, 211, 0.10); --tag-background-hover: rgba(228, 224, 211, 0.18); --code-background: #383838; --code-normal: #E4E0D3; --code-comment: #8A8880; --code-string: #A8C88A; --code-keyword: #A8B8D8; --code-function: #D8A8A8; --background-primary: #2E2E2E; --background-primary-alt: #323232; --background-secondary: #383838; --background-secondary-alt: #404040; --background-modifier-border: #4D4C4C; --background-modifier-border-hover: #626060; --background-modifier-border-focus: #C8BC98; --background-modifier-hover: rgba(228, 224, 211, 0.05); --background-modifier-active-hover: rgba(228, 224, 211, 0.09); --background-modifier-success: rgba(168, 200, 138, 0.12); --background-modifier-error: rgba(216, 168, 168, 0.12); --scrollbar-bg: transparent; --scrollbar-thumb-bg: #4D4C4C; --scrollbar-active-thumb-bg: #626060; --callout-default: #A8B8D8; --callout-info: #A8C8D8; --callout-tip: #A8C88A; --callout-success: #88C8A8; --callout-warning: #D8C888; --callout-error: #D8A8A8; --h1-color: #E4E0D3; --h2-color: #DDD8CA; --h3-color: #D0CAB8; --h4-color: #C4BEA8; --h5-color: #B8B4A8; --h6-color: #A8A6A0; --graph-node: #C8BC98; --graph-node-unresolved: #555454; --graph-node-focused: #E4E0D3; --graph-node-tag: #A8C88A; --graph-node-attachment: #D8C888; --graph-line: #4D4C4C; --graph-arrow: #555454; } /* ============================================================ TYPOGRAPHY — FONTS ============================================================ */ body { --font-text-theme: 'Charm', Georgia, serif; --font-interface-theme: 'Playfair Display', Georgia, serif; --font-monospace-theme: 'JetBrains Mono', 'Fira Code', monospace; --font-text-size: 16px; --line-height-normal: 1.75; --line-height-tight: 1.4; font-family: var(--font-text-theme); font-size: var(--font-text-size); line-height: var(--line-height-normal); font-feature-settings: "kern" 1, "liga" 1, "calt" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } /* Headings — higher specificity instead of !important */ .markdown-preview-view h1, .markdown-preview-view h2, .markdown-preview-view h3, .markdown-preview-view h4, .markdown-preview-view h5, .markdown-preview-view h6, .cm-editor .cm-header, .HyperMD-header .cm-header { font-family: 'Playfair Display', Georgia, serif; font-feature-settings: "kern" 1, "liga" 1; letter-spacing: -0.01em; } .markdown-preview-view h1, .cm-header-1 { font-size: 2em; font-weight: 700; color: var(--h1-color); margin-bottom: 0.4em; line-height: 1.2; } .markdown-preview-view h2, .cm-header-2 { font-size: 1.6em; font-weight: 600; color: var(--h2-color); margin-bottom: 0.35em; line-height: 1.25; } .markdown-preview-view h3, .cm-header-3 { font-size: 1.3em; font-weight: 600; color: var(--h3-color); } .markdown-preview-view h4, .cm-header-4 { font-size: 1.1em; font-weight: 600; color: var(--h4-color); } .markdown-preview-view h5, .cm-header-5 { font-size: 1em; font-weight: 600; color: var(--h5-color); font-style: italic; } .markdown-preview-view h6, .cm-header-6 { font-size: 0.9em; font-weight: 400; color: var(--h6-color); font-style: italic; text-transform: uppercase; letter-spacing: 0.08em; } /* ============================================================ EDITOR — CORE ============================================================ */ .markdown-source-view.mod-cm6 .cm-content, .markdown-preview-view { font-family: var(--font-text-theme); font-size: var(--font-text-size); line-height: var(--line-height-normal); max-width: 720px; margin: 0 auto; padding: 2em 2.5em; } /* Cursor — use CSS variable override instead of !important */ .theme-light .cm-cursor, .theme-light .cm-cursor-primary { border-left-color: var(--color-accent); border-left-width: 2px; } .theme-dark .cm-cursor, .theme-dark .cm-cursor-primary { border-left-color: var(--color-accent); border-left-width: 2px; } /* Selection — scoped to theme classes */ .theme-light .cm-selectionBackground, .theme-light ::selection { background-color: rgba(27, 42, 74, 0.12); } .theme-dark .cm-selectionBackground, .theme-dark ::selection { background-color: rgba(228, 224, 211, 0.12); } /* Active line */ .theme-light .cm-active-line { background-color: rgba(27, 42, 74, 0.03); } .theme-dark .cm-active-line { background-color: rgba(228, 224, 211, 0.03); } .cm-strong, strong { font-weight: 700; } .cm-em, em { font-style: italic; } .markdown-preview-view hr { border: none; border-top: 1px solid var(--background-modifier-border); margin: 2.5em auto; width: 60%; opacity: 0.6; } /* ============================================================ LINKS ============================================================ */ a, .cm-hmd-internal-link, .internal-link { color: var(--link-color); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; } a:hover, .internal-link:hover { color: var(--link-color-hover); border-bottom-color: var(--link-color-hover); } /* Unresolved — scoped specificity, no !important */ .markdown-preview-view .is-unresolved { color: var(--link-unresolved-color); opacity: 0.7; } /* ============================================================ BLOCKQUOTES ============================================================ */ .markdown-preview-view blockquote { border-left: 3px solid var(--color-accent); background: var(--background-secondary); margin: 1.5em 0; padding: 1em 1.5em; border-radius: 0 4px 4px 0; font-style: italic; color: var(--text-muted); } .markdown-preview-view blockquote p { margin: 0; } /* ============================================================ CODE BLOCKS ============================================================ */ code { font-family: var(--font-monospace-theme); font-size: 0.85em; background: var(--code-background); color: var(--code-normal); padding: 0.15em 0.4em; border-radius: 3px; } pre code { background: transparent; padding: 0; } pre { background: var(--code-background); border: 1px solid var(--background-modifier-border); border-radius: 6px; padding: 1.2em 1.5em; overflow-x: auto; line-height: 1.6; } /* ============================================================ TAGS — scoped specificity, no !important ============================================================ */ .markdown-preview-view .cm-hashtag, .markdown-preview-view a.tag, a.tag { color: var(--tag-color); background: var(--tag-background); border-radius: 100px; padding: 0.1em 0.6em; font-size: 0.82em; font-family: var(--font-text-theme); text-decoration: none; transition: background 0.2s ease; } a.tag:hover { background: var(--tag-background-hover); } /* ============================================================ TABLES ============================================================ */ .markdown-preview-view table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 0.92em; } .markdown-preview-view th { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; background: var(--background-secondary); border-bottom: 2px solid var(--background-modifier-border); padding: 0.6em 1em; text-align: left; } .markdown-preview-view td { padding: 0.5em 1em; border-bottom: 1px solid var(--background-modifier-border); } .markdown-preview-view tr:hover td { background: var(--background-modifier-hover); } /* ============================================================ CALLOUTS ============================================================ */ .callout { border-radius: 6px; border-left-width: 3px; border-left-style: solid; padding: 1em 1.2em; margin: 1.2em 0; background: var(--background-secondary); } .callout-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 0.95em; margin-bottom: 0.4em; } /* ============================================================ SIDEBAR & NAVIGATION ============================================================ */ .nav-file-title, .nav-folder-title { font-family: var(--font-text-theme); font-size: 0.88em; border-radius: 4px; padding: 2px 8px; transition: background 0.15s ease; } .nav-file-title:hover, .nav-folder-title:hover { background: var(--background-modifier-hover); } .nav-file-title.is-active, .nav-folder-title.is-active { background: var(--background-modifier-active-hover); color: var(--text-normal); font-weight: 600; } .nav-folder-title-content { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 0.85em; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); } /* ============================================================ TABS ============================================================ */ .workspace-tab-header { font-family: var(--font-text-theme); font-size: 0.85em; } .workspace-tab-header.is-active { font-weight: 700; } /* ============================================================ INLINE TITLE — higher specificity, no !important ============================================================ */ .markdown-preview-view .inline-title, .markdown-source-view .inline-title { font-family: 'Playfair Display', Georgia, serif; font-size: 2.4em; font-weight: 700; color: var(--h1-color); letter-spacing: -0.02em; line-height: 1.15; padding-bottom: 0.3em; border-bottom: 1px solid var(--background-modifier-border); margin-bottom: 1em; } /* ============================================================ SCROLLBARS ============================================================ */ ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb-bg); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-active-thumb-bg); } /* ============================================================ SEARCH & MODALS ============================================================ */ .prompt { border-radius: 10px; border: 1px solid var(--background-modifier-border); background: var(--background-primary); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); } .prompt-input { font-family: var(--font-text-theme); font-size: 1.1em; border-bottom: 1px solid var(--background-modifier-border); padding: 1em 1.2em; } .suggestion-item { font-family: var(--font-text-theme); font-size: 0.9em; padding: 0.5em 1em; border-radius: 4px; } .suggestion-item.is-selected { background: var(--background-modifier-active-hover); } /* ============================================================ GRAPH VIEW ============================================================ */ .graph-view.color-fill { color: var(--graph-node); } .graph-view.color-fill-unresolved { color: var(--graph-node-unresolved); } .graph-view.color-fill-focused { color: var(--graph-node-focused); } .graph-view.color-fill-tag { color: var(--graph-node-tag); } .graph-view.color-fill-attachment { color: var(--graph-node-attachment); } .graph-view.color-line { color: var(--graph-line); } .graph-view.color-arrow { color: var(--graph-arrow); } /* ============================================================ STATUS BAR ============================================================ */ .status-bar { font-family: var(--font-text-theme); font-size: 0.75em; color: var(--text-faint); background: var(--background-secondary); border-top: 1px solid var(--background-modifier-border); } /* ============================================================ CHECKBOXES ============================================================ */ input[type="checkbox"] { border: 1.5px solid var(--background-modifier-border); border-radius: 3px; } .task-list-item-checkbox:checked { background-color: var(--color-accent); border-color: var(--color-accent); } .task-list-item.is-checked .task-list-item-checkbox + * { text-decoration: line-through; color: var(--text-faint); } /* ============================================================ FRONTMATTER / PROPERTIES ============================================================ */ .metadata-container { font-family: var(--font-text-theme); font-size: 0.85em; border-radius: 6px; background: var(--background-secondary); border: 1px solid var(--background-modifier-border); margin-bottom: 1.5em; } .metadata-property-key { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 0.9em; color: var(--text-muted); } /* ============================================================ RIBBON & TOOLBAR ============================================================ */ .side-dock-ribbon { background: var(--background-secondary); border-right: 1px solid var(--background-modifier-border); } .side-dock-ribbon .side-dock-ribbon-action { opacity: 0.5; transition: opacity 0.2s ease; } .side-dock-ribbon .side-dock-ribbon-action:hover { opacity: 1; } /* ============================================================ SEPIA MODE ============================================================ */ .vellum-sepia.theme-light { --text-normal: var(--color-sepia-text); --text-muted: var(--color-sepia-muted); --text-faint: var(--color-sepia-faint); --h1-color: var(--color-sepia-text); --h2-color: var(--color-sepia-text); --h3-color: var(--color-sepia-muted); --h4-color: var(--color-sepia-muted); --h5-color: var(--color-sepia-faint); --h6-color: var(--color-sepia-faint); --link-color: #5A3A28; --link-color-hover: var(--color-sepia-text); --color-accent: var(--color-sepia-text); --interactive-accent: var(--color-sepia-text); --tag-color: var(--color-sepia-text); } /* ============================================================ STYLE SETTINGS ============================================================ */ /* @settings name: Vellum Theme id: vellum-theme settings: - id: vellum-font-size title: Base Font Size type: variable-number-slider default: 16 min: 13 max: 22 step: 1 format: px description: Adjust body text size - id: vellum-line-height title: Line Height type: variable-number-slider default: 1.75 min: 1.3 max: 2.2 step: 0.05 description: Adjust reading line spacing - id: vellum-max-width title: Content Width type: variable-number-slider default: 720 min: 500 max: 1100 step: 20 format: px description: Maximum width of the reading/writing area - id: vellum-sepia-mode title: Sepia Font Mode (Light theme) type: class-toggle default: false addCommand: true description: Switch light theme font from Navy Blue → Warm Brown - id: vellum-light-bg title: Light Background Color type: variable-themed-color opacity: false format: hex default-light: '#F5F0E8' default-dark: '#2E2E2E' description: Customize the main background color - id: vellum-accent-light title: Accent Color (Light) type: variable-color opacity: false format: hex default: '#1B2A4A' description: Accent / heading color for light mode - id: vellum-accent-dark title: Accent Color (Dark) type: variable-color opacity: false format: hex default: '#C8BC98' description: Accent / interactive color for dark mode */ /* ============================================================ RESPONSIVE / MOBILE TWEAKS ============================================================ */ @media (max-width: 768px) { .markdown-source-view.mod-cm6 .cm-content, .markdown-preview-view { padding: 1.2em 1.2em; max-width: 100%; } .markdown-preview-view .inline-title, .markdown-source-view .inline-title { font-size: 1.8em; } } /* ============================================================ PRINT ============================================================ */ @media print { body { background: #FFFFFF; color: #000000; } .markdown-preview-view { max-width: 100%; padding: 0; } }