/* ========================================================================== Vibrant Theme for Obsidian Author: James Lemony Refactored & modernized for Obsidian 1.x+ ========================================================================== */ /* -------------------------------------------------------------------------- 1. COLOR PALETTE & OBSIDIAN DESIGN TOKENS -------------------------------------------------------------------------- */ :is(.theme-dark, .print.theme-dark) { /* Custom Palette Variables */ --background-primary: #222222; --background-secondary: #333333; --background-third: #444444; --background-fourth: #2C2C2C; --accent-color-text: #FFFF00; --accent-color-borders: #FFFFFF; --accent-color-text-inverted: #000000; --color-icon: #FFFFFF; --gray-color: #585858; --text-normal: #FFFFFF; --text-bold: #FF0000; --text-italics: #00FFFF; --text-link: #00FF00; --text-highlight: #FFFF00; --text-strikethrough: #FF00FF; --text-title-h1: #FF0000; --text-title-h2: #00FF00; --text-title-h3: #FFFF00; --text-title-h4: #00FFFF; --text-title-h5: #FFA500; --text-title-h6: #FF00AA; --pdf-title-h1: #810000; --pdf-title-h2: #008100; --pdf-title-h3: #1d00c0; --pdf-title-h4: #008181; --pdf-title-h5: #915e00; --pdf-title-h6: #6c00be; /* Native Obsidian 1.x Token Mappings */ --bold-color: var(--text-bold); --bold-weight: 700; --italic-color: var(--text-italics); --text-highlight-bg: transparent; --text-faint: var(--gray-color); --text-muted: var(--text-normal); --link-color: var(--text-link); --link-color-hover: var(--text-link); --link-unresolved-color: var(--text-link); --link-decoration: none; --link-decoration-hover: none; --h1-color: var(--text-title-h1); --h2-color: var(--text-title-h2); --h3-color: var(--text-title-h3); --h4-color: var(--text-title-h4); --h5-color: var(--text-title-h5); --h6-color: var(--text-title-h6); --code-background: var(--background-third); --code-normal: var(--text-normal); --inline-code-bg: var(--background-third); --inline-code-color: var(--text-normal); --blockquote-background-color: var(--background-third); --blockquote-color: var(--text-normal); --list-marker-color: var(--accent-color-text); --indent-guide-color: var(--accent-color-text); --indent-guide-color-active: var(--accent-color-text); --checkbox-color: var(--text-bold); --checkbox-color-hover: var(--text-link); --checkbox-border-color: transparent; --checkbox-border-color-hover: transparent; --icon-color: var(--color-icon); --icon-color-hover: var(--color-icon); --icon-color-focused: var(--color-icon); --icon-opacity: 1; --icon-stroke: 1.75px; --icon-stroke-width: 1.75px; --tab-text-color-active: var(--accent-color-text); --tab-text-color-focused-active: var(--accent-color-text); --tab-text-color: var(--text-normal); --tab-background-active: var(--background-primary); --tab-outline-color: transparent; --tab-outline-width: 0px; --divider-color: var(--accent-color-borders); --divider-width: 2px; } /* -------------------------------------------------------------------------- 2. WORKSPACE & LAYOUT RESIZE FIXES -------------------------------------------------------------------------- */ .workspace-tab-container .workspace-leaf.mod-active hr.workspace-leaf-resize-handle, .workspace-tab-container .workspace-leaf .workspace-leaf-resize-handle { display: none; } .theme-dark .markdown-source-view.is-live-preview { --list-padding-inline-start: 0; } .theme-dark .markdown-source-view.mod-cm6 .cm-scroller { padding-top: 0; } /* -------------------------------------------------------------------------- 3. TYPOGRAPHY & INLINE FORMATTING -------------------------------------------------------------------------- */ /* Normal Text */ :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line, :is(.theme-dark, .theme-light) .markdown-rendered tbody tr>td:last-child, :is(.theme-dark, .theme-light) .markdown-rendered tbody tr>td:first-child { color: var(--text-normal); } /* Comments (%% ... %%) */ :is(.theme-dark, .theme-light) .cm-comment, :is(.theme-dark, .theme-light) .cm-s-obsidian .cm-comment, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-comment, :is(.theme-dark, .theme-light) span.cm-formatting-comment { color: var(--gray-color); } /* Italics */ :is(.theme-dark, .theme-light) .markdown-rendered em, :is(.theme-dark, .theme-light) .cm-s-obsidian .cm-em, :is(.theme-dark, .theme-light) .cm-line .cm-em { color: var(--text-italics); } /* Bold */ :is(.theme-dark, .theme-light) .markdown-rendered strong, :is(.theme-dark, .theme-light) .cm-s-obsidian .cm-strong, :is(.theme-dark, .theme-light) .cm-line .cm-strong { color: var(--text-bold); } /* Strikethrough */ :is(.theme-dark, .theme-light) .markdown-rendered del, :is(.theme-dark, .theme-light) .cm-s-obsidian .cm-strikethrough, :is(.theme-dark, .theme-light) .cm-line .cm-strikethrough { text-decoration: none; color: var(--text-strikethrough); } /* Highlight */ :is(.theme-dark, .theme-light) .markdown-rendered mark, :is(.theme-dark, .theme-light) span.cm-highlight, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-highlight, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-formatting-highlight { background-color: transparent; color: var(--text-highlight); } /* Links & References */ :is(.theme-dark, .theme-light) .markdown-rendered .internal-link, :is(.theme-dark, .theme-light) .markdown-rendered .external-link, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-link, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-hmd-internal-link, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-formatting-link, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-formatting-link-string, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .is-unresolved, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-underline, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-url, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-link, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-hmd-internal-link, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-formatting-link, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-formatting-link-string, :is(.theme-dark, .theme-light) .callout a.internal-link, :is(.theme-dark, .theme-light) .callout a.external-link, :is(.theme-dark, .theme-light) .callout-content a.internal-link, :is(.theme-dark, .theme-light) .callout-content a.external-link, :is(.theme-dark, .theme-light) .callout .cm-link, :is(.theme-dark, .theme-light) .callout .cm-hmd-internal-link, :is(.theme-dark, .theme-light) .callout .cm-formatting-link, :is(.theme-dark, .theme-light) .callout .cm-formatting-link-string, :is(.theme-dark, .theme-light) .callout .cm-url, :is(.theme-dark, .theme-light) .callout-content .cm-link, :is(.theme-dark, .theme-light) .callout-content .cm-hmd-internal-link, :is(.theme-dark, .theme-light) .callout-content .cm-formatting-link, :is(.theme-dark, .theme-light) .callout-content .cm-formatting-link-string, :is(.theme-dark, .theme-light) .callout-content .cm-url { color: var(--text-link) !important; text-decoration: none; } :is(.theme-dark, .theme-light) .markdown-rendered .internal-link:hover, :is(.theme-dark, .theme-light) .markdown-rendered .external-link:hover, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-link:hover, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-hmd-internal-link:hover, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .is-unresolved:hover, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-underline:hover, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-url:hover, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-link:hover, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line .cm-hmd-internal-link:hover, :is(.theme-dark, .theme-light) .callout a.internal-link:hover, :is(.theme-dark, .theme-light) .callout a.external-link:hover, :is(.theme-dark, .theme-light) .callout-content a.internal-link:hover, :is(.theme-dark, .theme-light) .callout-content a.external-link:hover, :is(.theme-dark, .theme-light) .callout .cm-link:hover, :is(.theme-dark, .theme-light) .callout .cm-hmd-internal-link:hover, :is(.theme-dark, .theme-light) .callout-content .cm-link:hover, :is(.theme-dark, .theme-light) .callout-content .cm-hmd-internal-link:hover { color: var(--text-link) !important; text-decoration: none; } /* Headings */ :is(.theme-dark, .theme-light) .cm-header-1, :is(.theme-dark, .theme-light) .markdown-rendered h1, :is(.theme-dark, .theme-light) .markdown-preview-view h1 { color: var(--text-title-h1); } :is(.theme-dark, .theme-light) .cm-header-2, :is(.theme-dark, .theme-light) .markdown-rendered h2, :is(.theme-dark, .theme-light) .markdown-preview-view h2 { color: var(--text-title-h2); } :is(.theme-dark, .theme-light) .cm-header-3, :is(.theme-dark, .theme-light) .markdown-rendered h3, :is(.theme-dark, .theme-light) .markdown-preview-view h3 { color: var(--text-title-h3); } :is(.theme-dark, .theme-light) .cm-header-4, :is(.theme-dark, .theme-light) .markdown-rendered h4, :is(.theme-dark, .theme-light) .markdown-preview-view h4 { color: var(--text-title-h4); } :is(.theme-dark, .theme-light) .cm-header-5, :is(.theme-dark, .theme-light) .markdown-rendered h5, :is(.theme-dark, .theme-light) .markdown-preview-view h5 { color: var(--text-title-h5); } :is(.theme-dark, .theme-light) .cm-header-6, :is(.theme-dark, .theme-light) .markdown-rendered h6, :is(.theme-dark, .theme-light) .markdown-preview-view h6 { color: var(--text-title-h6); } /* Inline Titles & Preview Titles (Gradients) */ .theme-dark .inline-title { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-image: linear-gradient(120deg, #ff0000 0%, #ff7f00 15%, #ffff00 30%, #00ff00 45%, #00bfff 60%, #6a5acd 75%, #ee82ee 90%, #ee82ee 100%); background-size: 100%; width: fit-content; } .theme-dark .markdown-embed-title { font-size: 150%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-image: linear-gradient(120deg, #ffd900 30%, #ff00b0 70%, #ff00b0 100%); background-size: 100%; width: fit-content; } /* Text alignment */ .markdown-preview-view p { text-align: justify; text-justify: inter-word; } /* Line Numbers */ .theme-dark .markdown-source-view.mod-cm6 .cm-gutters { color: var(--accent-color-borders); } /* Active Line Highlight (No indentation) */ .theme-dark .markdown-source-view.mod-cm6 .cm-line.cm-active { background-color: var(--background-fourth); border-radius: 5px; transition: background-color 0.6s ease, border-radius 0.6s ease; } /* -------------------------------------------------------------------------- 4. BLOCKS, LISTS, TABLES & CODE -------------------------------------------------------------------------- */ /* Blockquotes */ :is(.theme-dark, .theme-light) .markdown-preview-view blockquote, :is(.theme-dark, .theme-light) .markdown-rendered blockquote, :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-quote, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-quote { color: var(--text-normal); } .theme-dark .markdown-source-view.mod-cm6 span.cm-formatting-quote { color: var(--accent-color-text); } .theme-dark .markdown-source-view.mod-cm6.is-live-preview .HyperMD-quote { background-color: var(--background-third); border-radius: 5px; } .theme-dark .markdown-source-view.mod-cm6.is-live-preview .HyperMD-quote:before, .theme-dark .markdown-source-view.mod-cm6 .cm-blockquote-border:before { margin-left: 1px; } /* Code Blocks & Inline Code */ :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-inline-code, :is(.theme-dark, .theme-light) .markdown-rendered code, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .cm-line.HyperMD-codeblock, :is(.theme-dark, .theme-light) .markdown-rendered pre { color: var(--text-normal); font-weight: bolder; font-size: 100%; background-color: var(--background-third); } :is(.theme-dark, .theme-light) .cm-s-obsidian span.cm-inline-code, :is(.theme-dark, .theme-light) .markdown-rendered :not(pre)>code { padding: 5px; line-height: 30px; border-radius: 5px; } /* Tables */ .theme-dark .markdown-rendered th { color: var(--accent-color-text); border: 3px solid var(--gray-color); background-color: var(--background-primary); } .theme-dark .markdown-rendered tbody tr:nth-child(odd), .theme-dark .markdown-rendered tbody tr:nth-child(even) { border: 3px solid var(--background-third); } /* Lists & Bullets */ .theme-dark .cm-s-obsidian .HyperMD-list-line-1 { color: var(--text-normal); padding-bottom: 0; } .theme-dark .markdown-source-view.mod-cm6 .cm-indent::before, .theme-dark .markdown-rendered.show-indentation-guide li>ul::before { color: var(--accent-color-text); width: 0; border-right: 2px solid var(--accent-color-text); } :is(.theme-dark, .theme-light) ol>li::marker, :is(.theme-dark, .theme-light) ul>li::marker, :is(.theme-dark, .theme-light) .cm-s-obsidian .cm-formatting-list { color: var(--accent-color-text); } .theme-dark .list-bullet::after { background-color: var(--accent-color-text); } /* Checkboxes & Completed Task Items */ .theme-dark input[type=checkbox] { background-color: var(--text-bold); border-radius: 3px; border: 0 solid transparent; transition: 0.3s; } .theme-dark input[type=checkbox]:checked { border-color: transparent; background-color: var(--text-link); } .theme-dark input[type=checkbox]:checked::after { padding: 1px; } .theme-dark input[type=checkbox]:checked:hover { border-color: transparent; background-color: var(--text-link); } .theme-dark .checkbox-container { background-color: var(--text-bold); } .theme-dark .checkbox-container.is-enabled { background-color: var(--text-link); } /* Completed task text greyed out */ :is(.theme-dark, .theme-light) .markdown-rendered .task-list-item.is-checked, :is(.theme-dark, .theme-light) .markdown-rendered li.is-checked, :is(.theme-dark, .theme-light) .markdown-source-view.mod-cm6 .HyperMD-task-line[data-task]:not([data-task=" "]):not([data-task=""]) { color: var(--gray-color); } /* -------------------------------------------------------------------------- 5. UI CONTROLS, NAVIGATION & PANELS -------------------------------------------------------------------------- */ /* Buttons & Actions */ .empty-state-action { color: #00ff00; } :is(.theme-dark, .theme-light) .clickable-icon { color: var(--color-icon); opacity: 1; } .clickable-icon[aria-disabled='true'] { opacity: 0; } .mod-linux .titlebar-button, .mod-windows .titlebar-button { color: var(--color-icon); background-color: var(--background-primary); } /* Scoped UI Icons - Uniform stroke width */ .theme-dark .clickable-icon svg.svg-icon, .theme-dark .nav-action-button svg.svg-icon, .theme-dark .view-action svg.svg-icon, .theme-dark svg.svg-icon { color: var(--color-icon); opacity: 1; stroke: var(--color-icon); stroke-width: var(--icon-stroke-width, 1.75px); } .collapse-icon svg.svg-icon { color: var(--accent-color-text); stroke: var(--accent-color-text); stroke-width: var(--icon-stroke-width, 1.75px); } .theme-dark hr.workspace-leaf-resize-handle { background-color: var(--accent-color-borders); border: 2px solid var(--accent-color-borders); } /* Menus & Prompts */ .theme-dark .menu, .theme-dark .prompt { background-color: var(--background-primary); border: 2px solid var(--accent-color-borders); } .theme-dark .menu-item { color: var(--text-normal); } /* Workspace Tabs */ .theme-dark .workspace-tab-header-container { background-color: var(--background-primary); border-bottom: none; } .theme-dark .workspace-tab-header-container:hover { background-color: var(--background-primary); } .theme-dark .workspace-tab-header-container::after { display: none; } .theme-dark .workspace-tabs .workspace-tab-header-container, .theme-dark .workspace-tabs .workspace-tab-header-container-inner { border-bottom: none; } .theme-dark .mod-root .workspace-tab-header-container-inner { padding-left: 5px; } .theme-dark .workspace-tab-header { margin-left: 10px; margin-top: 2px; background-color: var(--background-primary); box-shadow: 0 0 0 2px var(--text-normal); } .theme-dark .workspace-tab-header:hover { background-color: var(--background-primary); box-shadow: 0 0 0 2px var(--accent-color-text) !important; } .theme-dark .workspace-tab-header-container .workspace-tab-header:first-child { margin-left: 2px; } .theme-dark .workspace-tab-header-container .workspace-tab-header:last-child { margin-right: 2px; } .theme-dark .workspace-tab-header-inner { background-color: var(--background-primary); } .theme-dark .workspace-tab-header:hover .workspace-tab-header-inner { background-color: var(--background-primary); } .theme-dark .workspace-tab-header-inner-title { color: var(--text-normal); } .theme-dark .workspace-tab-header:hover .workspace-tab-header-inner-title, .theme-dark .workspace-tab-header:not(.is-active):hover .workspace-tab-header-inner-title { color: var(--text-normal) !important; } .theme-dark .workspace .mod-root .workspace-tab-header-inner::after { margin-right: 2px; background-color: var(--background-primary); color: var(--text-normal); } .theme-dark .workspace-tab-header:not(.is-active)::before, .theme-dark .workspace-tab-header:not(.is-active)::after, .theme-dark .workspace-tab-header:not(.is-active):hover::before, .theme-dark .workspace-tab-header:not(.is-active):hover::after { display: none !important; } .theme-dark .workspace-tab-header.is-active, .theme-dark .workspace-tab-header-container .workspace-tab-header.is-active, .theme-dark .workspace-tab-header.is-active:hover, .theme-dark .workspace-tab-header-container .workspace-tab-header.is-active:hover { background-color: var(--background-primary); box-shadow: 0 0 0 2px var(--accent-color-text) !important; } .theme-dark .workspace-split.mod-root .workspace-tab-header-container .workspace-tab-header.is-active::before, .theme-dark .workspace-split.mod-root .workspace-tab-header-container .workspace-tab-header.is-active::after { display: block !important; box-shadow: inset 0 0 0 2px var(--accent-color-text), 0 0 0 calc(var(--tab-curve) * 4) var(--tab-background-active) !important; } .theme-dark .workspace-tab-header.is-active .workspace-tab-header-inner-title, .theme-dark .workspace-tab-header.is-active:hover .workspace-tab-header-inner-title, .theme-dark .is-focused .mod-active .workspace-tab-header.is-active .workspace-tab-header-inner-title { color: var(--accent-color-text) !important; } /* Pinned Tab Icons */ .theme-dark .workspace-tab-header .workspace-tab-header-status-container, .theme-dark .workspace-tab-header .workspace-tab-header-status-container>div, .theme-dark .workspace-tab-header .workspace-tab-header-status-container svg, .theme-dark .workspace-tab-header .workspace-tab-header-status-icon, .theme-dark .workspace-tab-header.mod-pinned :is(.workspace-tab-header-status-container, .workspace-tab-header-status-icon, .workspace-tab-header-inner-icon, .clickable-icon svg, svg) { color: var(--accent-color-text); stroke: var(--accent-color-text); fill: none; } /* Ribbons & Sidebars (Removed top and right white borders) */ .theme-dark .workspace-ribbon, .theme-dark .workspace-ribbon.mod-left, .theme-dark .workspace-ribbon.mod-left.is-collapsed, .theme-dark .workspace-ribbon.mod-primary { background-color: var(--background-primary); border-right: none; border-top: none; border-left: none; border-bottom: none; box-shadow: none; } .theme-dark .workspace-ribbon .sidebar-toggle-button { background-color: var(--background-primary); } .theme-dark .workspace-ribbon.mod-left:before, .theme-dark .workspace-ribbon.mod-primary:before { background-color: var(--background-primary); border-bottom: none; border-top: none; border-right: none; } .theme-dark .workspace-ribbon.mod-left:after, .theme-dark .workspace-ribbon.mod-primary:after { border-top: none; border-bottom: none; } .theme-dark .nav-header { background-color: var(--background-primary); border-top: none; } .theme-dark .nav-files-container, .theme-dark .workspace-tabs .workspace-leaf .view-content, .theme-dark .workspace-leaf-content { background-color: var(--background-primary); } .theme-dark .workspace-split.mod-horizontal>* { color: var(--background-primary); } .theme-dark .nav-file-title-content, .theme-dark .nav-folder-title-content, .theme-dark .tree-item-inner { color: var(--text-normal); } .theme-dark .nav-folder.mod-root .nav-folder>.nav-folder-children { border-left: 2px solid var(--accent-color-text); } .theme-dark .tree-item-flair, .theme-dark .search-empty-state { color: var(--accent-color-text); } /* Search Panels */ .theme-dark .search-result-container { background-color: var(--background-primary); } .theme-dark .search-suggest-info-text { color: var(--text-normal); } .theme-dark .search-result-file-matches { color: var(--accent-color-borders); background-color: var(--background-primary); border: 2px solid var(--accent-color-borders); } .theme-dark .search-input-container input, .theme-dark .suggestion { background-color: var(--background-primary); border: 2px solid var(--accent-color-borders); } /* Top & Bottom Bars */ .theme-dark .view-header-title-container { justify-content: center; text-align: center; } .theme-dark .view-header-title { color: var(--accent-color-text); text-align: center; } .theme-dark .view-header-title-parent { justify-content: center; text-align: center; } .theme-dark .view-header-title-parent .view-header-breadcrumb-separator, .theme-dark .view-header-title-parent .view-header-breadcrumb, .theme-dark .status-bar-item { color: var(--text-normal); } .theme-dark .status-bar { background-color: var(--background-primary); border: 1px solid var(--accent-color-borders); } /* -------------------------------------------------------------------------- 6. INPUTS, BUTTONS, MODALS & SETTINGS -------------------------------------------------------------------------- */ .theme-dark input[type='text'] { background-color: var(--background-primary); border: none; box-shadow: none; color: var(--text-normal); transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; } .theme-dark input[type='search'], .theme-dark textarea, .theme-dark .dropdown { background-color: var(--background-primary); border: 2px solid var(--accent-color-borders); color: var(--text-normal); transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; } /* When search/text input is active/focused */ .theme-dark input[type='search']:focus { border-color: var(--accent-color-text); color: var(--text-normal); background-color: var(--background-primary); } .theme-dark input[type='text']:hover, .theme-dark input[type='text']:focus { color: var(--text-normal); background-color: var(--background-primary); border: none; } .theme-dark input[type='search']:hover, .theme-dark input[type='search']:focus:hover, .theme-dark textarea:hover, .theme-dark textarea:focus, .theme-dark .dropdown:hover, .theme-dark .dropdown:focus { color: var(--text-normal); background-color: var(--background-primary); border-color: var(--accent-color-text); } /* Settings buttons with fast/gentle fade in and fade out to --accent-color-text */ .theme-dark button, .theme-dark button.mod-cta { background-color: var(--background-primary); border: 2px solid var(--accent-color-borders); color: var(--accent-color-borders); transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; } .theme-dark button:hover, .theme-dark button:focus, .theme-dark button.mod-cta:hover, .theme-dark button.mod-cta:focus { background-color: var(--background-primary); border-color: var(--accent-color-text); color: var(--accent-color-text); } /* Modals & Settings Page (No white bar at top) */ .theme-dark .modal { background-color: var(--background-primary); border: 2px solid var(--accent-color-borders); } .theme-dark .modal.mod-settings, .theme-dark .modal.mod-settings .modal-header, .theme-dark .modal.mod-settings .modal-title, .theme-dark .modal.mod-settings .modal-close-button { border-top: none; box-shadow: none; } .theme-dark .modal.mod-settings .vertical-tab-header { background-color: var(--background-primary); border-right: 2px solid var(--accent-color-borders); border-top: none; } .theme-dark .community-modal-sidebar, .theme-dark .modal-sidebar { background-color: var(--background-primary); border-top: none; } .theme-dark .vertical-tab-header-group-title { color: var(--accent-color-borders); font-size: larger; } /* Setting Tabs on Left Hand Side (Text and Icons fade to --accent-color-text) */ .theme-dark .vertical-tab-nav-item { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; background-color: var(--background-primary); border: 2px solid var(--background-primary); color: var(--text-normal); } .theme-dark .vertical-tab-nav-item .vertical-tab-nav-item-icon, .theme-dark .vertical-tab-nav-item svg { color: var(--color-icon); stroke: var(--color-icon); opacity: 1; transition: color 0.2s ease, stroke 0.2s ease; } .theme-dark .vertical-tab-nav-item:hover, .theme-dark .horizontal-tab-nav-item.is-active, .theme-dark .vertical-tab-nav-item.is-active { background-color: var(--background-primary); border: 2px solid var(--accent-color-text); color: var(--accent-color-text); } .theme-dark .vertical-tab-nav-item.is-active .vertical-tab-nav-item-icon, .theme-dark .vertical-tab-nav-item.is-active svg, .theme-dark .vertical-tab-nav-item:hover .vertical-tab-nav-item-icon, .theme-dark .vertical-tab-nav-item:hover svg { color: var(--accent-color-text); stroke: var(--accent-color-text); } /* Community Items in Plugins/Themes */ .theme-dark .community-item { background-color: var(--background-primary); border: 2px solid var(--accent-color-borders); } .theme-dark .community-item:hover, .theme-dark .community-item.is-selected { color: var(--accent-color-borders); background-color: var(--background-primary); border: 2px solid var(--accent-color-text); } .theme-dark .community-item-name { color: var(--accent-color-text); } .theme-dark .community-item .flair, .theme-dark .community-item.is-selected .flair { color: var(--background-primary); background-color: var(--accent-color-text); } .theme-dark .community-item-desc, .theme-dark .community-item-author, .theme-dark .community-item-updated, .theme-dark .community-item-downloads-text, .theme-dark .community-item.is-selected :is(.community-item-author, .community-item-repo, .community-item-downloads, .community-item-updated) { color: var(--accent-color-borders); opacity: 1; } body:not(.is-phone) .theme-dark .community-item.is-selected :is(.community-item-author, .community-item-repo, .community-item-downloads, .community-item-updated) { color: var(--text-normal); opacity: 1; } /* Metadata & Properties */ .theme-dark .metadata-properties { border: 2px solid var(--background-secondary); border-radius: 0.2cm; } .theme-dark .metadata-properties:hover, .theme-dark .metadata-property:hover { border: 2px solid var(--accent-color-borders); border-radius: 0.2cm; } .theme-dark .metadata-property { border: 2px solid var(--background-primary); border-radius: 0.2cm; padding-top: 2px; box-shadow: none; outline: none; } .theme-dark .metadata-property:focus-within { border: 2px solid var(--accent-color-text); border-radius: 0.2cm; box-shadow: none; outline: none; } .theme-dark .metadata-property:focus-within :is(.metadata-property-key, .metadata-property-value, .metadata-input-longtext, input, textarea) { border: none; box-shadow: none; outline: none; } /* -------------------------------------------------------------------------- 7. CANVAS & MERMAID DIAGRAMS -------------------------------------------------------------------------- */ .canvas-background :is(svg, rect, path, circle) { stroke: var(--background-third); } .canvas-node-label { color: var(--text-normal); background-color: var(--background-primary); } .canvas-node-resizer:is([data-resize='left'], [data-resize='right'], [data-resize='top'], [data-resize='bottom']) { color: var(--accent-color-text); opacity: 1; stroke-width: 3px; stroke: #00ddff; } .theme-dark .workspace-leaf-content[data-type='canvas'] .view-content { --theme: 255, 255, 255; } .node-labels, .branchLabel, .commit-label, .nodes, .mermaid rect, tspan { stroke-width: 0; } tspan { fill: var(--accent-color-text-inverted); } /* -------------------------------------------------------------------------- 8. CALLOUTS -------------------------------------------------------------------------- */ .theme-dark .callout { background-color: var(--background-secondary); border: 2px solid var(--accent-color-borders); } .theme-dark .callout-content { color: var(--text-normal); } /* Callout Type Borders & Accent Colors */ .callout:is([data-callout="note"]) { --callout-accent-color: #4187ff; } .callout:is([data-callout="abstract"], [data-callout="summary"], [data-callout="tldr"]) { --callout-accent-color: #9de1ff; } .callout:is([data-callout="info"], [data-callout="todo"]) { --callout-accent-color: #00ddff; } .callout:is([data-callout="tip"], [data-callout="hint"], [data-callout="important"]) { --callout-accent-color: #00ffe5; } .callout:is([data-callout="success"], [data-callout="check"], [data-callout="done"]) { --callout-accent-color: #00ff62; } .callout:is([data-callout="question"], [data-callout="help"], [data-callout="faq"]) { --callout-accent-color: #62ff00; } .callout:is([data-callout="warning"], [data-callout="caution"], [data-callout="attention"]) { --callout-accent-color: #ff9500; } .callout:is([data-callout="failure"], [data-callout="fail"], [data-callout="missing"]) { --callout-accent-color: #ff0000; } .callout:is([data-callout="danger"], [data-callout="error"]) { --callout-accent-color: #ff0033; } .callout[data-callout="bug"] { --callout-accent-color: #ff005d; } .callout[data-callout="example"] { --callout-accent-color: #9e77ff; } .callout:is([data-callout="quote"], [data-callout="cite"]) { --callout-accent-color: var(--text-normal); } /* Apply Callout Colors Dynamically */ .callout[data-callout] { border-color: var(--callout-accent-color); } .callout[data-callout]>.callout-title { color: var(--callout-accent-color); } .callout[data-callout]>.callout-title .callout-icon .svg-icon, .callout[data-callout]>.callout-title .callout-icon .svg-icon * { stroke: var(--callout-accent-color); } /* -------------------------------------------------------------------------- 9. FOOTNOTES -------------------------------------------------------------------------- */ /* Footnote link in body */ a.footnote-link, .cm-s-obsidian span.cm-footref.cm-hmd-barelink, .cm-s-obsidian span.cm-footref.cm-hmd-barelink.cm-formatting { color: salmon; } /* Footnote live preview definition line */ .cm-s-obsidian .cm-line.HyperMD-footnote span.cm-hmd-footnote .cm-underline { color: salmon; } /* Footnote container text */ .footnotes, .cm-s-obsidian .cm-line.HyperMD-footnote { color: salmon; font-weight: bold; font-size: 0.9em; } /* Footnote list marker */ .footnotes ol>li::marker { color: salmon; font-weight: bold; font-size: 1em; } /* -------------------------------------------------------------------------- 10. PRINT / PDF EXPORT -------------------------------------------------------------------------- */ @media print { :root { --pdf-background: #FFFFFF; --pdf-text: #000000; --pdf-normal: #FFFFFF; --pdf-bold: #810000; --pdf-italics: #008181; --pdf-link: #008100; --pdf-highlight: #818100; --pdf-strikethrough: #660066; } body { background-color: var(--pdf-background); color: var(--pdf-text); } /* Inline Text Formatting */ em, .cm-s-obsidian .cm-em { color: var(--pdf-italics); text-decoration: underline; } .cm-strong, strong, .cm-s-obsidian .cm-strong { color: var(--pdf-bold); text-decoration: underline; } .cm-strikethrough, del { color: var(--pdf-strikethrough); text-decoration: underline; } .cm-s-obsidian span.cm-link, .cm-s-obsidian span.cm-hmd-internal-link, .markdown-rendered .internal-link, span.cm-underline, .markdown-source-view.mod-cm6 .is-unresolved, .external-link { color: var(--pdf-link); text-decoration: underline; } span.cm-highlight, .cm-s-obsidian span.cm-formatting-highlight, .cm-s-obsidian span.cm-highlight, .markdown-rendered mark { background-color: transparent; color: var(--pdf-highlight); text-decoration: underline; } ol>li::marker, ul>li::marker, .cm-s-obsidian .cm-formatting-list { color: var(--pdf-text); } /* Tables */ .markdown-rendered th { color: var(--pdf-highlight); border: 2px solid var(--pdf-text); background-color: var(--pdf-background); text-decoration: underline; } .markdown-rendered tbody tr>td:nth-child(2n+2), .markdown-rendered thead tr>th:nth-child(2n+2) { background-color: var(--pdf-background); } /* Headings */ .cm-header-1, .markdown-preview-view h1, .markdown-rendered h1 { color: var(--pdf-title-h1); text-decoration: underline; text-align: center; } .cm-header-2, .markdown-preview-view h2, .markdown-rendered h2 { color: var(--pdf-title-h2); text-decoration: underline; } .cm-header-3, .markdown-preview-view h3, .markdown-rendered h3 { color: var(--pdf-title-h3); text-decoration: underline; } .cm-header-4, .markdown-preview-view h4, .markdown-rendered h4 { color: var(--pdf-title-h4); text-decoration: underline; } .cm-header-5, .markdown-preview-view h5, .markdown-rendered h5 { color: var(--pdf-title-h5); text-decoration: underline; } .cm-header-6, .markdown-preview-view h6, .markdown-rendered h6 { color: var(--pdf-title-h6); text-decoration: underline; } /* Callouts */ .callout, .callout-title, .callout-icon, .callout-content { color: var(--pdf-text); border-color: var(--pdf-text); background-color: var(--pdf-background); page-break-before: auto; page-break-after: avoid; } .callout[data-callout] { border: 2px solid var(--pdf-text); } .callout[data-callout]>.callout-title { color: var(--pdf-text); } .callout[data-callout]>.callout-title .callout-icon .svg-icon, .callout[data-callout]>.callout-title .callout-icon .svg-icon * { stroke: var(--pdf-text); } /* Embed Title */ .markdown-embed-title { font-size: 150%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-image: linear-gradient(120deg, var(--pdf-text) 30%, var(--pdf-text) 70%, var(--pdf-text) 100%); background-size: 100%; width: fit-content; color: var(--pdf-text); text-decoration: underline; } }