413 lines
14 KiB
CSS
413 lines
14 KiB
CSS
/*
|
|
* Coffee 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).
|
|
*
|
|
* Coffee palette (dark roast, omarchy-coffee-theme) (from megabyte0x/omarchy-coffee-theme, MIT):
|
|
* bg #1d150f / #2d2118 / #3a2a20 / #160f0a fg #f0e2d0
|
|
* accents: red #d78a6f coral #e0a15c sage #8f7a67
|
|
* gold #ffda92 rose #ec8f89 slate #cf90a2 accent #e0a15c
|
|
*/
|
|
|
|
#trilium-app {
|
|
--theme-style: dark;
|
|
|
|
/* Main surfaces */
|
|
--main-background-color: #1d150f;
|
|
--main-text-color: #f0e2d0;
|
|
--main-border-color: #3a2a20;
|
|
--subtle-border-color: #2d2118;
|
|
--dropdown-border-color: #3a2a20;
|
|
--dropdown-shadow-opacity: 0.6;
|
|
|
|
/* Accented / highlight */
|
|
--accented-background-color: #2d2118;
|
|
--more-accented-background-color: #3a2a20;
|
|
|
|
/* Cards & dialogs */
|
|
--card-background-color: #2d2118;
|
|
--card-background-hover-color: #3a2a20;
|
|
--card-border-color: #3a2a20;
|
|
--tool-dialog-background-color: #160f0a;
|
|
--modal-background-color: #160f0a;
|
|
--modal-border-color: #3a2a20;
|
|
|
|
/* Text & muted */
|
|
--muted-text-color: #8f7a67;
|
|
--menu-text-color: #f0e2d0;
|
|
--menu-background-color: #2d2118e6;
|
|
--menu-background-color-no-backdrop: #160f0a;
|
|
|
|
/* Links */
|
|
--link-color: #ec8f89;
|
|
--link-hover-color: #ffda92;
|
|
--link-hover-background: #ffda9224;
|
|
|
|
/* Inputs */
|
|
--input-background-color: #3a2a2060;
|
|
--input-text-color: #f0e2d0;
|
|
--input-placeholder-color: #8f7a6780;
|
|
--input-hover-background: #4a3a3060;
|
|
--input-focus-outline-color: #ec8f89;
|
|
--input-focus-background: #4a3a3050;
|
|
--input-focus-color: #f0e2d0;
|
|
--input-action-button-color: #8f7a67;
|
|
--input-action-button-hover: #f0e2d0;
|
|
|
|
/* Selection */
|
|
--selection-background-color: #e0a15c;
|
|
--hover-item-text-color: #f0e2d0;
|
|
--hover-item-background-color: #2d2118;
|
|
--active-item-text-color: #f0e2d0;
|
|
--active-item-background-color: #3a2a20;
|
|
|
|
/* Left pane / launcher */
|
|
--left-pane-background-color: #160f0a;
|
|
--left-pane-text-color: #8f7a67;
|
|
--left-pane-icon-color: #8f7a67;
|
|
--left-pane-item-hover-background: #2d2118;
|
|
--left-pane-item-selected-background: #3a2a20;
|
|
--left-pane-item-selected-color: #f0e2d0;
|
|
--launcher-pane-background-color: #160f0a;
|
|
--launcher-pane-text-color: #8f7a67;
|
|
--launcher-pane-vert-background-color: #160f0a;
|
|
--launcher-pane-vert-text-color: #8f7a67;
|
|
--launcher-pane-horiz-background-color: #160f0a;
|
|
--launcher-pane-horiz-text-color: #8f7a67;
|
|
|
|
/* Tabs & breadcrumb / window backgrounds */
|
|
--window-background-color-bgfx: #160f0a;
|
|
--root-background: #160f0a;
|
|
--tab-background-color: #160f0a;
|
|
--note-split-background-color: #1d150f;
|
|
--center-pane-background-color-bgfx: #1d150f;
|
|
--launcher-pane-horiz-background-color-bgfx: #160f0a;
|
|
--center-pane-horiz-layout-background-color-bgfx: #1d150f;
|
|
--center-pane-vert-layout-background-color-bgfx: #1d150f;
|
|
|
|
/* Tabs */
|
|
--active-tab-background-color: #160f0a;
|
|
--active-tab-text-color: #f0e2d0;
|
|
--inactive-tab-background-color: #1d150f;
|
|
--inactive-tab-text-color: #8f7a67;
|
|
--tab-close-button-hover-background: #2d2118;
|
|
--tab-close-button-hover-color: #d78a6f;
|
|
|
|
/* Right pane */
|
|
--right-pane-background-color: #160f0a;
|
|
--right-pane-heading-color: #f0e2d0;
|
|
--right-pane-item-hover-background: #2d2118;
|
|
--right-pane-item-hover-color: #f0e2d0;
|
|
|
|
/* Bottom panel */
|
|
--bottom-panel-background-color: #160f0a;
|
|
--bottom-panel-title-bar-background-color: #1d150f;
|
|
|
|
/* Status bar */
|
|
--status-bar-border-color: #3a2a20;
|
|
|
|
/* Code / inline code */
|
|
--inline-code-background-color: #2d2118;
|
|
--inline-code-border-color: #3a2a20;
|
|
--code-block-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
|
|
/* Note icons */
|
|
--note-icon-background-color: #2d2118;
|
|
--note-icon-color: #f0e2d0;
|
|
|
|
/* Floating buttons */
|
|
--floating-button-background-color: #2d2118;
|
|
--floating-button-color: #f0e2d0;
|
|
--floating-button-hover-background: #3a2a20;
|
|
--floating-button-hover-color: #f0e2d0;
|
|
|
|
/* Tooltips */
|
|
--tooltip-background-color: #2d2118;
|
|
--tooltip-foreground-color: #f0e2d0;
|
|
|
|
/* Scrollbar */
|
|
--scrollbar-thumb-color: #3a2a20;
|
|
--scrollbar-thumb-hover-color: #4a3a30;
|
|
--scrollbar-background-color: #160f0a;
|
|
|
|
/* Checkboxes / tasks */
|
|
--task-checkbox-done-color: #8f7a67;
|
|
--task-checkbox-glyph-color: #f0e2d0;
|
|
--task-checkbox-without-state-background: #3a2a20;
|
|
--task-checkbox-with-state-background: #e0a15c;
|
|
|
|
/* Mermaid */
|
|
--mermaid-theme: dark;
|
|
|
|
/* Buttons */
|
|
--cmd-button-background-color: #3a2a20a0;
|
|
--cmd-button-text-color: #f0e2d0;
|
|
--cmd-button-hover-background-color: #4a3a30a0;
|
|
--cmd-button-hover-text-color: #f0e2d0;
|
|
--icon-button-hover-background: #2d2118;
|
|
--icon-button-hover-color: #f0e2d0;
|
|
|
|
/* Logs */
|
|
--log-error-color: #d78a6f;
|
|
--log-info-color: #ec8f89;
|
|
--log-slow-color: #ffda92;
|
|
--log-success-color: #8f7a67;
|
|
|
|
/* Badges */
|
|
--badge-background-color: #3a2a20;
|
|
--badge-text-color: #f0e2d0;
|
|
|
|
/* CKEditor editor dropdowns / panels (no yellow) */
|
|
--ck-color-base-foreground: #2d2118;
|
|
--ck-color-base-background: #1d150f;
|
|
--ck-color-dialog-background: #1d150f;
|
|
--ck-color-dropdown-panel-background: #2d2118;
|
|
--ck-color-dropdown-panel-border: #3a2a20;
|
|
--ck-color-list-background: #2d2118;
|
|
--ck-color-list-button-hover-background: #3a2a20;
|
|
--ck-color-list-button-on-background: #3a2a20;
|
|
--ck-color-button-default-background: #2d2118;
|
|
--ck-color-button-default-hover-background: #3a2a20;
|
|
--ck-color-button-on-background: #3a2a20;
|
|
--ck-color-button-on-hover-background: #4a3a30;
|
|
--ck-color-button-action-background: #3a2a20;
|
|
--ck-color-button-action-hover-background: #4a3a30;
|
|
--ck-color-input-background: #1d150f;
|
|
--ck-editor-toolbar-button-on-background: #3a2a20;
|
|
--ck-editor-toolbar-button-on-color: #f0e2d0;
|
|
--ck-editor-toolbar-dropdown-button-open-background: #2d2118;
|
|
}
|
|
|
|
/* Menus & dropdowns are often rendered outside #trilium-app, so also set them globally. */
|
|
:root {
|
|
--menu-text-color: #f0e2d0;
|
|
--menu-background-color: #1d150f;
|
|
--menu-background-color-no-backdrop: #1d150f;
|
|
--menu-item-icon-color: #8f7a67;
|
|
--menu-item-disabled-opacity: 0.5;
|
|
--menu-item-keyboard-shortcut-color: #8f7a6790;
|
|
--menu-item-arrow-color: #8f7a67a3;
|
|
--menu-item-delimiter-color: #2d2118;
|
|
--menu-item-group-header-color: #8f7a67;
|
|
--menu-section-background-color: #1d150f;
|
|
--menu-hover-item-background-color: #2d2118;
|
|
--menu-hover-item-text-color: #f0e2d0;
|
|
--hover-item-background-color: #2d2118;
|
|
--active-item-background-color: #3a2a20;
|
|
--dropdown-border-color: #2d2118;
|
|
--dropdown-item-icon-destructive-color: #d78a6f;
|
|
|
|
/* CKEditor editor dropdowns are rendered outside #trilium-app, so set them globally (no yellow). */
|
|
--ck-color-base-text: #f0e2d0;
|
|
--ck-color-text: #f0e2d0;
|
|
--ck-color-base-foreground: #2d2118;
|
|
--ck-color-base-background: #1d150f;
|
|
--ck-color-dialog-background: #1d150f;
|
|
--ck-color-dropdown-panel-background: #2d2118;
|
|
--ck-color-dropdown-panel-border: #3a2a20;
|
|
--ck-color-list-background: #2d2118;
|
|
--ck-color-list-button-hover-background: #3a2a20;
|
|
--ck-color-list-button-on-background: #3a2a20;
|
|
--ck-color-list-button-on-text: #f0e2d0;
|
|
--ck-color-button-default-background: #2d2118;
|
|
--ck-color-button-default-hover-background: #3a2a20;
|
|
--ck-color-button-on-background: #3a2a20;
|
|
--ck-color-button-on-hover-background: #4a3a30;
|
|
--ck-color-button-action-background: #3a2a20;
|
|
--ck-color-button-action-hover-background: #4a3a30;
|
|
--ck-color-input-background: #1d150f;
|
|
--ck-color-input-text: #f0e2d0;
|
|
--ck-color-panel-background: #2d2118;
|
|
--ck-color-toolbar-background: #2d2118;
|
|
}
|
|
|
|
/* 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: #1d150f !important;
|
|
--menu-background-color-no-backdrop: #1d150f !important;
|
|
--menu-section-background-color: #1d150f !important;
|
|
background-color: #1d150f !important;
|
|
}
|
|
body.desktop .dropdown-menu::before,
|
|
body.mobile .dropdown-menu::before {
|
|
background-color: #1d150f !important;
|
|
backdrop-filter: none !important;
|
|
}
|
|
body.desktop .dropdown-menu .dropdown-item,
|
|
body.mobile .dropdown-menu .dropdown-item {
|
|
--custom-color: #f0e2d0 !important;
|
|
color: #f0e2d0;
|
|
}
|
|
body.desktop .dropdown-menu .dropdown-item:hover,
|
|
body.desktop .dropdown-menu .dropdown-item:focus,
|
|
body.desktop .dropdown-menu .dropdown-item.active {
|
|
background-color: #2d2118 !important;
|
|
color: #f0e2d0;
|
|
}
|
|
|
|
/* ============ 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 #d78a6f80;
|
|
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 #ffda9280;
|
|
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 #8f7a6780;
|
|
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 #8f7a6780;
|
|
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 #cf90a280;
|
|
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 #cf90a280;
|
|
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 #cf90a280;
|
|
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 #ec8f8980;
|
|
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 #ec8f8980;
|
|
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 #ec8f8980;
|
|
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: #f0e2d0;
|
|
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: #f0e2d0;
|
|
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;
|
|
} |