/* * Harbordark Theme for TriliumNext * * Derived from the current default (next) theme via #appThemeBase=next-dark. * Fixed dark variant (no automatic light/dark switching for user themes). * * Harbordark palette (from HANCORE-linux/omarchy-harbordark-theme, MIT): * bg #1b1b1b / #232323 / #2e2e2e / #141414 fg #efebdc * accents: red #F44336 coral #e75a50 sage #a99b7a * gold #E1CE98 rose #e58980 slate #77838a accent #e75a50 */ #trilium-app { --theme-style: dark; /* Main surfaces */ --main-background-color: #1b1b1b; --main-text-color: #efebdc; --main-border-color: #2e2e2e; --subtle-border-color: #232323; --dropdown-border-color: #2e2e2e; --dropdown-shadow-opacity: 0.6; /* Accented / highlight */ --accented-background-color: #232323; --more-accented-background-color: #2e2e2e; /* Cards & dialogs */ --card-background-color: #232323; --card-background-hover-color: #2e2e2e; --card-border-color: #2e2e2e; --tool-dialog-background-color: #141414; --modal-background-color: #141414; --modal-border-color: #2e2e2e; /* Text & muted */ --muted-text-color: #a99b7a; --menu-text-color: #efebdc; --menu-background-color: #232323e6; --menu-background-color-no-backdrop: #141414; /* Links */ --link-color: #e58980; --link-hover-color: #E1CE98; --link-hover-background: #E1CE9824; /* Inputs */ --input-background-color: #2e2e2e60; --input-text-color: #efebdc; --input-placeholder-color: #a99b7a80; --input-hover-background: #3f3f3f60; --input-focus-outline-color: #e58980; --input-focus-background: #3f3f3f50; --input-focus-color: #efebdc; --input-action-button-color: #a99b7a; --input-action-button-hover: #efebdc; /* Selection */ --selection-background-color: #e75a50; --hover-item-text-color: #efebdc; --hover-item-background-color: #232323; --active-item-text-color: #efebdc; --active-item-background-color: #2e2e2e; /* Left pane / launcher */ --left-pane-background-color: #141414; --left-pane-text-color: #a99b7a; --left-pane-icon-color: #817f68; --left-pane-item-hover-background: #232323; --left-pane-item-selected-background: #2e2e2e; --left-pane-item-selected-color: #efebdc; --launcher-pane-background-color: #141414; --launcher-pane-text-color: #a99b7a; --launcher-pane-vert-background-color: #141414; --launcher-pane-vert-text-color: #a99b7a; --launcher-pane-horiz-background-color: #141414; --launcher-pane-horiz-text-color: #a99b7a; /* Tabs & breadcrumb / window backgrounds */ --window-background-color-bgfx: #141414; --root-background: #141414; --tab-background-color: #141414; --note-split-background-color: #1b1b1b; --center-pane-background-color-bgfx: #1b1b1b; --launcher-pane-horiz-background-color-bgfx: #141414; --center-pane-horiz-layout-background-color-bgfx: #1b1b1b; --center-pane-vert-layout-background-color-bgfx: #1b1b1b; /* Tabs */ --active-tab-background-color: #141414; --active-tab-text-color: #efebdc; --inactive-tab-background-color: #1b1b1b; --inactive-tab-text-color: #a99b7a; --tab-close-button-hover-background: #232323; --tab-close-button-hover-color: #F44336; /* Right pane */ --right-pane-background-color: #141414; --right-pane-heading-color: #efebdc; --right-pane-item-hover-background: #232323; --right-pane-item-hover-color: #efebdc; /* Bottom panel */ --bottom-panel-background-color: #141414; --bottom-panel-title-bar-background-color: #1b1b1b; /* Status bar */ --status-bar-border-color: #2e2e2e; /* Code / inline code */ --inline-code-background-color: #232323; --inline-code-border-color: #2e2e2e; --code-block-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); /* Note icons */ --note-icon-background-color: #232323; --note-icon-color: #efebdc; /* Floating buttons */ --floating-button-background-color: #232323; --floating-button-color: #efebdc; --floating-button-hover-background: #2e2e2e; --floating-button-hover-color: #efebdc; /* Tooltips */ --tooltip-background-color: #232323; --tooltip-foreground-color: #efebdc; /* Scrollbar */ --scrollbar-thumb-color: #2e2e2e; --scrollbar-thumb-hover-color: #3f3f3f; --scrollbar-background-color: #141414; /* Checkboxes / tasks */ --task-checkbox-done-color: #a99b7a; --task-checkbox-glyph-color: #efebdc; --task-checkbox-without-state-background: #2e2e2e; --task-checkbox-with-state-background: #e75a50; /* Mermaid */ --mermaid-theme: dark; /* Buttons */ --cmd-button-background-color: #2e2e2ea0; --cmd-button-text-color: #efebdc; --cmd-button-hover-background-color: #3f3f3fa0; --cmd-button-hover-text-color: #efebdc; --icon-button-hover-background: #232323; --icon-button-hover-color: #efebdc; /* Logs */ --log-error-color: #F44336; --log-info-color: #e58980; --log-slow-color: #E1CE98; --log-success-color: #a99b7a; /* Badges */ --badge-background-color: #2e2e2e; --badge-text-color: #efebdc; /* CKEditor editor dropdowns / panels (no yellow) */ --ck-color-base-foreground: #232323; --ck-color-base-background: #1b1b1b; --ck-color-dialog-background: #1b1b1b; --ck-color-dropdown-panel-background: #232323; --ck-color-dropdown-panel-border: #2e2e2e; --ck-color-list-background: #232323; --ck-color-list-button-hover-background: #2e2e2e; --ck-color-list-button-on-background: #2e2e2e; --ck-color-button-default-background: #232323; --ck-color-button-default-hover-background: #2e2e2e; --ck-color-button-on-background: #2e2e2e; --ck-color-button-on-hover-background: #3f3f3f; --ck-color-button-action-background: #2e2e2e; --ck-color-button-action-hover-background: #3f3f3f; --ck-color-input-background: #1b1b1b; --ck-editor-toolbar-button-on-background: #2e2e2e; --ck-editor-toolbar-button-on-color: #efebdc; --ck-editor-toolbar-dropdown-button-open-background: #232323; } /* Menus & dropdowns are often rendered outside #trilium-app, so also set them globally. */ :root { --menu-text-color: #efebdc; --menu-background-color: #1b1b1b; --menu-background-color-no-backdrop: #1b1b1b; --menu-item-icon-color: #a99b7a; --menu-item-disabled-opacity: 0.5; --menu-item-keyboard-shortcut-color: #a99b7a90; --menu-item-arrow-color: #a99b7aa3; --menu-item-delimiter-color: #232323; --menu-item-group-header-color: #a99b7a; --menu-section-background-color: #1b1b1b; --menu-hover-item-background-color: #232323; --menu-hover-item-text-color: #efebdc; --hover-item-background-color: #232323; --active-item-background-color: #2e2e2e; --dropdown-border-color: #232323; --dropdown-item-icon-destructive-color: #F44336; /* CKEditor editor dropdowns are rendered outside #trilium-app, so set them globally (no yellow). */ --ck-color-base-text: #efebdc; --ck-color-text: #efebdc; --ck-color-base-foreground: #232323; --ck-color-base-background: #1b1b1b; --ck-color-dialog-background: #1b1b1b; --ck-color-dropdown-panel-background: #232323; --ck-color-dropdown-panel-border: #2e2e2e; --ck-color-list-background: #232323; --ck-color-list-button-hover-background: #2e2e2e; --ck-color-list-button-on-background: #2e2e2e; --ck-color-list-button-on-text: #efebdc; --ck-color-button-default-background: #232323; --ck-color-button-default-hover-background: #2e2e2e; --ck-color-button-on-background: #2e2e2e; --ck-color-button-on-hover-background: #3f3f3f; --ck-color-button-action-background: #2e2e2e; --ck-color-button-action-hover-background: #3f3f3f; --ck-color-input-background: #1b1b1b; --ck-color-input-text: #efebdc; --ck-color-panel-background: #232323; --ck-color-toolbar-background: #232323; } /* Force the note-tree context menu / dropdowns to the Harbordark background. */ body.desktop .dropdown-menu, body.desktop .dropdown-menu.tn-dropdown-menu, body.desktop .dropdown-menu.tn-dropdown-list, body.mobile .dropdown-menu { --menu-background-color: #1b1b1b !important; --menu-background-color-no-backdrop: #1b1b1b !important; --menu-section-background-color: #1b1b1b !important; background-color: #1b1b1b !important; } body.desktop .dropdown-menu::before, body.mobile .dropdown-menu::before { background-color: #1b1b1b !important; backdrop-filter: none !important; } body.desktop .dropdown-menu .dropdown-item, body.mobile .dropdown-menu .dropdown-item { --custom-color: #efebdc !important; color: #efebdc; } body.desktop .dropdown-menu .dropdown-item:hover, body.desktop .dropdown-menu .dropdown-item:focus, body.desktop .dropdown-menu .dropdown-item.active { background-color: #232323 !important; color: #efebdc; } /* ============ TREELINES (Vertical tree lines) ============ */ /* Base connector lines — Harbordark neutral */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:nth-of-type(2n) { border-left: 2.5px solid rgba(169, 155, 122, 0.8); border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:nth-of-type(2n+1) { border-left: 2.5px solid rgba(169, 155, 122, 0.5); border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR red */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-E64D4D) { border-left: 2.5px solid #F4433680; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR orange */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-E6994D) { border-left: 2.5px solid #dc816480; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR yellow */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-E5E64D) { border-left: 2.5px solid #E1CE9880; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR green (light) */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-99E64D) { border-left: 2.5px solid #a99b7a80; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR green */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-4DE64D) { border-left: 2.5px solid #a99b7a80; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR aqua/green */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-4DE699) { border-left: 2.5px solid #77838a80; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR aqua/cyan */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-4DE5E6) { border-left: 2.5px solid #77838a80; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR blue */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-4D99E6) { border-left: 2.5px solid #77838a80; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR blue/purple */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-4D4DE6) { border-left: 2.5px solid #e5898080; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR purple */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-994DE6) { border-left: 2.5px solid #e5898080; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* COLOR pink/magenta */ div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:has(> .color-E64DB3) { border-left: 2.5px solid #e5898080; border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; } /* ============ NOTE HEADER BOXES (h2-h6) ============ */ /* Box background behind header text. h2 spans full editor width, h3-h6 hug the text block. Transparent, distinct colours. */ .ck-content h2 { background-color: rgba(231, 90, 80, 0.30); border-bottom: 2px solid rgba(231, 90, 80, 0.6); border-radius: 4px; padding: 0.25em 0.4em; } .ck-content h3 { background-color: rgba(169, 155, 122, 0.25); border-bottom: 2px solid rgba(169, 155, 122, 0.6); border-radius: 4px; padding: 0.2em 0.35em; } .ck-content h4 { background-color: rgba(225, 206, 152, 0.22); border-bottom: 2px solid rgba(225, 206, 152, 0.55); border-radius: 4px; padding: 0.2em 0.35em; } .ck-content h5 { background-color: rgba(119, 131, 138, 0.25); border-bottom: 2px solid rgba(119, 131, 138, 0.6); border-radius: 4px; padding: 0.2em 0.35em; } .ck-content h6 { background-color: rgba(229, 137, 128, 0.25); border-bottom: 2px solid rgba(229, 137, 128, 0.6); border-radius: 4px; padding: 0.2em 0.35em; } /* ============ TABLES ============ */ .ck-content table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--main-border-color); border-radius: 8px; overflow: hidden; margin: 1em 0; } .ck-content table th, .ck-content table td { border: none; border-bottom: 1px solid var(--main-border-color); border-right: 1px solid var(--main-border-color); padding: 8px 12px; text-align: left; background-color: transparent !important; } .ck-content table th:last-child, .ck-content table td:last-child { border-right: none; } .ck-content table tr:last-child td { border-bottom: none; } .ck-content table thead th { background-color: rgba(231, 90, 80, 0.20) !important; color: #efebdc; font-weight: 700; border-bottom: 2px solid rgba(231, 90, 80, 0.45); } .ck-content table tbody td:first-child { background-color: rgba(255, 255, 255, 0.05) !important; color: #efebdc; font-weight: 600; white-space: nowrap; } .ck-content table tbody tr:nth-child(even) td:not(:first-child) { background-color: rgba(255, 255, 255, 0.04) !important; } .ck-content table tbody tr:hover td { background-color: rgba(94, 129, 172, 0.10) !important; } .ck-content table .col-hover { background-color: rgba(94, 129, 172, 0.10) !important; } .ck-content table tbody tr:hover td.col-hover, .ck-content table thead th.col-hover { background-color: rgba(94, 129, 172, 0.18) !important; }