414 lines
14 KiB
CSS
414 lines
14 KiB
CSS
/*
|
|
* Gruvbox Light Theme for TriliumNext
|
|
*
|
|
* Derived from the current default (next) theme via #appThemeBase=next-light.
|
|
* Fixed light variant (no automatic light/dark switching for user themes).
|
|
*
|
|
* Gruvbox light palette:
|
|
* bg #fbf1c7 / #ebdbb2 / #d5c4a1 / #f9f5d7 fg #3c3836 / #282828
|
|
* accents: red #9d0006 green #79740e yellow #b57614
|
|
* blue #076678 purple #8f3f71 aqua #427b58 orange #af3a03
|
|
*/
|
|
|
|
#trilium-app {
|
|
--theme-style: light;
|
|
|
|
/* Main surfaces */
|
|
--main-background-color: #fbf1c7;
|
|
--main-text-color: #3c3836;
|
|
--main-border-color: #d5c4a1;
|
|
--subtle-border-color: #ebdbb2;
|
|
--dropdown-border-color: #d5c4a1;
|
|
--dropdown-shadow-opacity: 0.5;
|
|
|
|
/* Accented / highlight */
|
|
--accented-background-color: #ebdbb2;
|
|
--more-accented-background-color: #d5c4a1;
|
|
|
|
/* Cards & dialogs */
|
|
--card-background-color: #ebdbb2;
|
|
--card-background-hover-color: #d5c4a1;
|
|
--card-border-color: #d5c4a1;
|
|
--tool-dialog-background-color: #f9f5d7;
|
|
--modal-background-color: #f9f5d7;
|
|
--modal-border-color: #d5c4a1;
|
|
|
|
/* Text & muted */
|
|
--muted-text-color: #7c6f64;
|
|
--menu-text-color: #3c3836;
|
|
--menu-background-color: #ebdbb2;
|
|
--menu-background-color-no-backdrop: #ebdbb2;
|
|
|
|
/* Links */
|
|
--link-color: #076678;
|
|
--link-hover-color: #427b58;
|
|
--link-hover-background: #427b5824;
|
|
|
|
/* Inputs */
|
|
--input-background-color: #d5c4a160;
|
|
--input-text-color: #3c3836;
|
|
--input-placeholder-color: #7c6f6480;
|
|
--input-hover-background: #bdae9360;
|
|
--input-focus-outline-color: #076678;
|
|
--input-focus-background: #d5c4a150;
|
|
--input-focus-color: #282828;
|
|
--input-action-button-color: #7c6f64;
|
|
--input-action-button-hover: #282828;
|
|
|
|
/* Selection */
|
|
--selection-background-color: #83a598;
|
|
--hover-item-text-color: #282828;
|
|
--hover-item-background-color: #ebdbb2;
|
|
--active-item-text-color: #282828;
|
|
--active-item-background-color: #d5c4a1;
|
|
|
|
/* Left pane / launcher */
|
|
--left-pane-background-color: #ebdbb2;
|
|
--left-pane-text-color: #7c6f64;
|
|
--left-pane-icon-color: #665c54;
|
|
--left-pane-item-hover-background: #d5c4a1;
|
|
--left-pane-item-selected-background: #d5c4a1;
|
|
--left-pane-item-selected-color: #282828;
|
|
--launcher-pane-background-color: #ebdbb2;
|
|
--launcher-pane-text-color: #7c6f64;
|
|
--launcher-pane-vert-background-color: #ebdbb2;
|
|
--launcher-pane-vert-text-color: #7c6f64;
|
|
--launcher-pane-horiz-background-color: #ebdbb2;
|
|
--launcher-pane-horiz-text-color: #7c6f64;
|
|
|
|
/* Tabs & breadcrumb / window backgrounds */
|
|
--window-background-color-bgfx: #ebdbb2;
|
|
--root-background: #ebdbb2;
|
|
--tab-background-color: #ebdbb2;
|
|
--note-split-background-color: #fbf1c7;
|
|
--center-pane-background-color-bgfx: #fbf1c7;
|
|
--launcher-pane-horiz-background-color-bgfx: #ebdbb2;
|
|
--center-pane-horiz-layout-background-color-bgfx: #fbf1c7;
|
|
--center-pane-vert-layout-background-color-bgfx: #fbf1c7;
|
|
|
|
/* Tabs */
|
|
--active-tab-background-color: #f9f5d7;
|
|
--active-tab-text-color: #282828;
|
|
--inactive-tab-background-color: #fbf1c7;
|
|
--inactive-tab-text-color: #7c6f64;
|
|
--tab-close-button-hover-background: #d5c4a1;
|
|
--tab-close-button-hover-color: #9d0006;
|
|
|
|
/* Right pane */
|
|
--right-pane-background-color: #ebdbb2;
|
|
--right-pane-heading-color: #3c3836;
|
|
--right-pane-item-hover-background: #d5c4a1;
|
|
--right-pane-item-hover-color: #282828;
|
|
|
|
/* Bottom panel */
|
|
--bottom-panel-background-color: #ebdbb2;
|
|
--bottom-panel-title-bar-background-color: #fbf1c7;
|
|
|
|
/* Status bar */
|
|
--status-bar-border-color: #d5c4a1;
|
|
|
|
/* Code / inline code */
|
|
--inline-code-background-color: #ebdbb2;
|
|
--inline-code-border-color: #d5c4a1;
|
|
--code-block-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
|
|
|
/* Note icons */
|
|
--note-icon-background-color: #ebdbb2;
|
|
--note-icon-color: #3c3836;
|
|
|
|
/* Floating buttons */
|
|
--floating-button-background-color: #ebdbb2;
|
|
--floating-button-color: #3c3836;
|
|
--floating-button-hover-background: #d5c4a1;
|
|
--floating-button-hover-color: #282828;
|
|
|
|
/* Tooltips */
|
|
--tooltip-background-color: #ebdbb2;
|
|
--tooltip-foreground-color: #3c3836;
|
|
|
|
/* Scrollbar */
|
|
--scrollbar-thumb-color: #d5c4a1;
|
|
--scrollbar-thumb-hover-color: #bdae93;
|
|
--scrollbar-background-color: #ebdbb2;
|
|
|
|
/* Checkboxes / tasks */
|
|
--task-checkbox-done-color: #79740e;
|
|
--task-checkbox-glyph-color: #282828;
|
|
--task-checkbox-without-state-background: #d5c4a1;
|
|
--task-checkbox-with-state-background: #83a598;
|
|
|
|
/* Mermaid */
|
|
--mermaid-theme: light;
|
|
|
|
/* Buttons */
|
|
--cmd-button-background-color: #d5c4a1a0;
|
|
--cmd-button-text-color: #3c3836;
|
|
--cmd-button-hover-background-color: #bdae93a0;
|
|
--cmd-button-hover-text-color: #282828;
|
|
--icon-button-hover-background: #d5c4a1;
|
|
--icon-button-hover-color: #282828;
|
|
|
|
/* Logs */
|
|
--log-error-color: #9d0006;
|
|
--log-info-color: #076678;
|
|
--log-slow-color: #b57614;
|
|
--log-success-color: #79740e;
|
|
|
|
/* Badges */
|
|
--badge-background-color: #d5c4a1;
|
|
--badge-text-color: #3c3836;
|
|
|
|
/* CKEditor editor dropdowns / panels (no yellow) */
|
|
--ck-color-base-foreground: #d5c4a1;
|
|
--ck-color-base-background: #fbf1c7;
|
|
--ck-color-dialog-background: #fbf1c7;
|
|
--ck-color-dropdown-panel-background: #fbf1c7;
|
|
--ck-color-dropdown-panel-border: #d5c4a1;
|
|
--ck-color-list-background: #fbf1c7;
|
|
--ck-color-list-button-hover-background: #d5c4a1;
|
|
--ck-color-list-button-on-background: #d5c4a1;
|
|
--ck-color-button-default-background: #ebdbb2;
|
|
--ck-color-button-default-hover-background: #d5c4a1;
|
|
--ck-color-button-on-background: #d5c4a1;
|
|
--ck-color-button-on-hover-background: #bdae93;
|
|
--ck-color-button-action-background: #d5c4a1;
|
|
--ck-color-button-action-hover-background: #bdae93;
|
|
--ck-color-input-background: #fbf1c7;
|
|
--ck-editor-toolbar-button-on-background: #d5c4a1;
|
|
--ck-editor-toolbar-button-on-color: #282828;
|
|
--ck-editor-toolbar-dropdown-button-open-background: #ebdbb2;
|
|
}
|
|
|
|
/* Menus & dropdowns are often rendered outside #trilium-app, so also set them globally. */
|
|
:root {
|
|
--menu-text-color: #3c3836;
|
|
--menu-background-color: #fbf1c7;
|
|
--menu-background-color-no-backdrop: #fbf1c7;
|
|
--menu-item-icon-color: #7c6f64;
|
|
--menu-item-disabled-opacity: 0.5;
|
|
--menu-item-keyboard-shortcut-color: #7c6f6490;
|
|
--menu-item-arrow-color: #7c6f64a3;
|
|
--menu-item-delimiter-color: #d5c4a1;
|
|
--menu-item-group-header-color: #665c54;
|
|
--menu-section-background-color: #fbf1c7;
|
|
--menu-hover-item-background-color: #d5c4a1;
|
|
--menu-hover-item-text-color: #282828;
|
|
--hover-item-background-color: #d5c4a1;
|
|
--active-item-background-color: #d5c4a1;
|
|
--dropdown-border-color: #d5c4a1;
|
|
--dropdown-item-icon-destructive-color: #9d0006;
|
|
|
|
/* CKEditor editor dropdowns are rendered outside #trilium-app, so set them globally (no yellow). */
|
|
--ck-color-base-text: #3c3836;
|
|
--ck-color-text: #3c3836;
|
|
--ck-color-base-foreground: #d5c4a1;
|
|
--ck-color-base-background: #fbf1c7;
|
|
--ck-color-dialog-background: #fbf1c7;
|
|
--ck-color-dropdown-panel-background: #fbf1c7;
|
|
--ck-color-dropdown-panel-border: #d5c4a1;
|
|
--ck-color-list-background: #fbf1c7;
|
|
--ck-color-list-button-hover-background: #d5c4a1;
|
|
--ck-color-list-button-on-background: #d5c4a1;
|
|
--ck-color-list-button-on-text: #282828;
|
|
--ck-color-button-default-background: #ebdbb2;
|
|
--ck-color-button-default-hover-background: #d5c4a1;
|
|
--ck-color-button-on-background: #d5c4a1;
|
|
--ck-color-button-on-hover-background: #bdae93;
|
|
--ck-color-button-action-background: #d5c4a1;
|
|
--ck-color-button-action-hover-background: #bdae93;
|
|
--ck-color-input-background: #fbf1c7;
|
|
--ck-color-input-text: #3c3836;
|
|
--ck-color-panel-background: #fbf1c7;
|
|
--ck-color-toolbar-background: #ebdbb2;
|
|
}
|
|
|
|
/* Force the note-tree context menu / dropdowns to a neutral, non-yellow 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: #fbf1c7 !important;
|
|
--menu-background-color-no-backdrop: #fbf1c7 !important;
|
|
--menu-section-background-color: #fbf1c7 !important;
|
|
background-color: #fbf1c7 !important;
|
|
}
|
|
body.desktop .dropdown-menu::before,
|
|
body.mobile .dropdown-menu::before {
|
|
background-color: #fbf1c7 !important;
|
|
backdrop-filter: none !important;
|
|
}
|
|
body.desktop .dropdown-menu .dropdown-item,
|
|
body.mobile .dropdown-menu .dropdown-item {
|
|
--custom-color: #3c3836 !important;
|
|
color: #3c3836;
|
|
}
|
|
body.desktop .dropdown-menu .dropdown-item:hover,
|
|
body.desktop .dropdown-menu .dropdown-item:focus,
|
|
body.desktop .dropdown-menu .dropdown-item.active {
|
|
background-color: #d5c4a1 !important;
|
|
color: #282828;
|
|
}
|
|
|
|
/* ============ TREELINES (Vertical tree lines) ============ */
|
|
/* Base connector lines — Gruvbox neutral */
|
|
div.tree li.fancytree-lastsib ul li[aria-expanded="true"]:nth-of-type(2n) {
|
|
border-left: 2.5px solid rgba(168, 153, 132, 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(168, 153, 132, 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 #e64d4d80;
|
|
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 #e6994d80;
|
|
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 #e5e64d80;
|
|
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 #99e64d80;
|
|
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 #4de64d80;
|
|
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 #4de69980;
|
|
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 #4de5e680;
|
|
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 #4d99e680;
|
|
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 #4d4de680;
|
|
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 #994de680;
|
|
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 #e64db380;
|
|
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(7, 102, 120, 0.18);
|
|
border-bottom: 2px solid rgba(7, 102, 120, 0.45);
|
|
border-radius: 4px;
|
|
padding: 0.25em 0.4em;
|
|
}
|
|
.ck-content h3 {
|
|
background-color: rgba(121, 116, 14, 0.10);
|
|
border-bottom: 2px solid rgba(121, 116, 14, 0.35);
|
|
border-radius: 4px;
|
|
padding: 0.2em 0.35em;
|
|
}
|
|
.ck-content h4 {
|
|
background-color: rgba(181, 118, 20, 0.10);
|
|
border-bottom: 2px solid rgba(181, 118, 20, 0.35);
|
|
border-radius: 4px;
|
|
padding: 0.2em 0.35em;
|
|
}
|
|
.ck-content h5 {
|
|
background-color: rgba(143, 63, 113, 0.10);
|
|
border-bottom: 2px solid rgba(143, 63, 113, 0.35);
|
|
border-radius: 4px;
|
|
padding: 0.2em 0.35em;
|
|
}
|
|
.ck-content h6 {
|
|
background-color: rgba(175, 58, 3, 0.10);
|
|
border-bottom: 2px solid rgba(175, 58, 3, 0.35);
|
|
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(7, 102, 120, 0.20) !important;
|
|
color: #282828;
|
|
font-weight: 700;
|
|
border-bottom: 2px solid rgba(7, 102, 120, 0.45);
|
|
}
|
|
.ck-content table tbody td:first-child {
|
|
background-color: rgba(0, 0, 0, 0.05) !important;
|
|
color: #3c3836;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.ck-content table tbody tr:nth-child(even) td:not(:first-child) {
|
|
background-color: rgba(0, 0, 0, 0.04) !important;
|
|
}
|
|
.ck-content table tbody tr:hover td {
|
|
background-color: rgba(254, 128, 25, 0.08) !important;
|
|
}
|
|
.ck-content table .col-hover {
|
|
background-color: rgba(254, 128, 25, 0.08) !important;
|
|
}
|
|
.ck-content table tbody tr:hover td.col-hover,
|
|
.ck-content table thead th.col-hover {
|
|
background-color: rgba(254, 128, 25, 0.15) !important;
|
|
}
|