Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
/* Import the Next theme base style */
@import url(./theme-next/base.css);
/*
* Color scheme
*/
:root {
/*
* ⚠️ NOTICE: This theme is currently in the beta stage of development.
* The names and purposes of these CSS variables are subject to frequent changes.
*/
--theme-style: light;
--native-titlebar-background: #ffffff00;
--window-background-color-bgfx: transparent; /* When background effects enabled */
--main-background-color: white;
--main-text-color: black;
--main-border-color: #dbdbdb;
--subtle-border-color: rgba(0, 0, 0, 0.1);
--dropdown-border-color: #ccc;
--dropdown-shadow-opacity: 0.2;
--dropdown-item-icon-destructive-color: #de4027;
--form-error-text-color: #b3261e;
--contextual-help-icon-color: #004382;
--accented-background-color: #f5f5f5;
--tool-dialog-background-color: white;
--tool-dialog-shadow-color: #00000070;
--button-text-color: currentColor;
--cmd-button-background-color: #0000000f;
--cmd-button-text-color: #000000ad;
--cmd-button-hover-background-color: #00000016;
--cmd-button-hover-text-color: #000;
--cmd-button-shadow-color: #00000040;
--cmd-button-icon-color: black;
--cmd-button-keyboard-shortcut-background: #00000017;
--cmd-button-keyboard-shortcut-color: black;
--cmd-button-disabled-opacity: 0.5;
--low-profile-button-active-background-color: #00000087;
--low-profile-button-active-color: white;
--button-group-background-color: var(--input-background-color);
--button-group-active-button-background-color: white;
--button-group-active-button-color: black;
--button-group-active-button-shadow-color: #00000056;
--icon-button-color: currentColor;
--icon-button-hover-background: var(--hover-item-background-color);
--icon-button-hover-color: var(--hover-item-text-color);
--opaque-icon-button-background: #e6e6e6d7;
--opaque-icon-button-color: var(--icon-button-color);
--opaque-icon-button-hover-background-color: #cbcbcbd7;
--opaque-icon-button-hover-color: var(--icon-button-hover-color);
--muted-text-color: #666;
--input-background-color: #00000012;
--input-text-color: black;
--input-placeholder-color: #06060682;
--input-selection-background: gray;
--input-selection-text-color: white;
--input-hover-background: #00000020;
--input-hover-color: black;
--input-focus-outline-color: #00000063;
--input-focus-background: #ffffff80;
--input-focus-color: #000;
--input-action-button-color: #575757;
--input-action-button-hover: black;
--select-focus-background: white;
--select-focus-text-color: var(--input-text-color);
--select-dropdown-text-color: var(--input-text-color);
--select-arrow-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='transparent' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>");
--select-group-heading-text-color: gray;
--link-color: #0076af;
--link-hover-background: #3c7fa017;
--link-hover-color: var(--link-color);
--link-selection-outline-color: #95c3d9db;
--hover-item-text-color: black;
--hover-item-background-color: #0000001a;
--hover-item-border-color: transparent;
--active-item-text-color: var(--left-pane-text-color);
--active-item-background-color: #ddd;
--active-item-border-color: transparent;
--menu-text-color: #272727;
--menu-background-color: #ffffffd9;
--menu-background-color-no-backdrop: #fdfdfd;
--menu-item-icon-color: #727272;
--menu-item-disabled-opacity: 0.6;
--menu-item-keyboard-shortcut-color: #666666a8;
--menu-item-arrow-color: #00000080;
--menu-item-delimiter-color: #00000030;
--menu-item-group-header-color: #00000061;
--menu-section-background-color: #00000006;
--glass-background: #ffffffa6;
--glass-edge-color: #0000001f;
--glass-highlight-color: #ffffffcc;
--grouped-background-color: #f2f2f7;
--grouped-card-background-color: white;
--modal-backdrop-color: #7c7c7c;
--modal-shadow-color: #00000033;
--modal-border-color: #797979;
--modal-background-color: white;
--modal-title-color: gray;
--modal-footer-background: #00000008;
--modal-footer-color: #00000085;
--toast-background: #00000099;
--toast-text-color: white;
--toast-close-button-background: #ffffff33;
--quick-search-background: #00000012;
--quick-search-color: #06060682;
--quick-search-hover-background: #00000020;
--quick-search-focus-border: #00000029;
--quick-search-focus-background: #ffffff80;
--quick-search-focus-color: #000;
--quick-search-result-content-background: #0000000f;
--quick-search-result-highlight-color: #c65050;
--quick-search-result-fuzzy-highlight-color: #e47b19;
--left-pane-collapsed-border-color: #0000000d;
--left-pane-background-color: #f2f2f2;
--left-pane-text-color: #383838;
--left-pane-icon-color: currentColor;
--left-pane-item-hover-background: rgba(0, 0, 0, 0.032);
--left-pane-item-selected-background: white;
--left-pane-item-selected-color: black;
--left-pane-item-selected-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
--left-pane-item-action-button-background: rgba(0, 0, 0, 0.11);
--left-pane-item-action-button-color: var(--left-pane-text-color);
--left-pane-item-action-button-hover-background: white;
--left-pane-item-action-button-hover-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
--left-pane-item-selected-action-button-hover-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
/* Deprecated: now local variables in #launcher, with the values dependent on the current layout. */
--launcher-pane-background-color: unset;
--launcher-pane-text-color: unset;
--launcher-pane-vert-background-color: #e8e8e8;
--launcher-pane-vert-text-color: #000000bd;
--launcher-pane-vert-button-hover-color: black;
--launcher-pane-vert-button-hover-background: white;
--launcher-pane-vert-button-hover-shadow: 4px 4px 4px rgba(0, 0, 0, 0.075);
--launcher-pane-vert-button-focus-outline-color: var(--input-focus-outline-color);
--launcher-pane-vert-background-color-bgfx: #00000009; /* When background effects enabled */
--launcher-pane-horiz-border-color: rgba(0, 0, 0, 0.1);
--launcher-pane-horiz-background-color: #fafafa;
--launcher-pane-horiz-button-hover-color: black;
--launcher-pane-horiz-button-hover-background: var(--icon-button-hover-background);
--launcher-pane-horiz-button-hover-shadow: unset;
--launcher-pane-horiz-button-focus-outline-color: var(--input-focus-outline-color);
--launcher-pane-horiz-background-color-bgfx: #ffffffb3; /* When background effects enabled */
--launcher-pane-horiz-border-color-bgfx: #00000026; /* When background effects enabled */
--global-menu-update-available-badge-background-color: #4fa450;
--global-menu-update-available-badge-color: white;
--protected-session-active-icon-color: #16b516;
--sync-status-error-pulse-color: #ff5528;
--classic-toolbar-vert-layout-background-color: #ffffffa1;
--classic-toolbar-horiz-layout-background-color: var(--main-background-color);
--center-pane-vert-layout-background-color-bgfx: #ffffff75;
--center-pane-horiz-layout-background-color-bgfx: #ffffffd6;
--right-pane-heading-color: gray;
--right-pane-peek-background: #ffffffea;
--left-pane-peek-background: #f2f2f2ea;
--peek-pane-backdrop-color: #0000000a;
--peek-pane-shadow-color: #0000003a;
--root-background: var(--left-pane-background-color);
--gutter-color: transparent;
--gutter-hover-color: #bfbfbf;
--tab-close-button-hover-background: #c95a5a;
--tab-close-button-hover-color: white;
--active-tab-background-color: white;
--active-tab-hover-background-color: var(--active-tab-background-color);
--active-tab-icon-color: gray;
--active-tab-text-color: black;
--active-tab-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -1px -1px 3px rgba(0, 0, 0, 0.05);
--active-tab-dragging-shadow: var(--active-tab-shadow), 0 0 20px rgba(0, 0, 0, 0.1);
--inactive-tab-background-color: transparent;
--inactive-tab-hover-background-color: #00000016;
--inactive-tab-text-color: #4e4e4e;
--alert-bar-background: #f9cf2b29;
--badge-background-color: #00000011;
--badge-text-color: var(--muted-text-color);
--note-icon-background-color: #4f4f4f;
--note-icon-color: white;
--note-icon-hover-background-color: #737373;
--promoted-attribute-card-background-color: #00000014;
--promoted-attribute-card-shadow: none;
--floating-button-shadow-color: #00000042;
--floating-button-background-color: #eaeaeacc;
--overlay-button-shadow-color: #00000048;
--new-tab-button-background: #d8d8d8;
--new-tab-button-color: #3a3a3a;
--new-tab-button-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
--new-tab-button-hover-background: white;
--new-tab-button-hover-color: black;
--right-pane-background-color: var(--main-background-color);
--right-pane-background-color-bgfx: #ffffff9e; /* Only for the vertical layout */
--right-pane-item-hover-background: #00000013;
--right-pane-item-hover-color: inherit;
--bottom-panel-background-color: #ffffff8c;
--bottom-panel-title-bar-background-color: #94949414;
--status-bar-border-color: #00000026;
--scrollbar-thumb-color: #0000005c;
--scrollbar-thumb-hover-color: #00000066;
--scrollbar-background-color: transparent;
--scrollbar-border-color: unset; /* Deprecated */
--selection-background-color: #3399FF70;
--mermaid-theme: default;
--code-block-box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.2);
/* Backend log (the `text/x-trilium-log` code note MIME) */
--log-timestamp-color: #00000077;
--log-slow-color: #db9345;
--log-http-line-background-color: #826cd00b;
--log-http-verb-color: #9157ab;
--log-http-url-color: #8057a0;
--log-status-success-color: #32b323;
--log-status-redirect-color: #238db3;
--log-status-client-error-color: #b7bd10;
--log-status-server-error-color: #b32323;
--log-query-line-background-color: #edbe670b;
--log-query-verb-color: #ce4f7f;
--log-sql-color: #df5815;
--log-search-verb-color: #3f9189;
--log-search-count-color: #00000077;
--log-error-color: #b32017;
--log-error-line-background-color: #ff000017;
--log-warning-color: #9a6700;
--log-warning-line-background-color: #ffb30017;
--log-info-color: inherit; /* Placeholder: give it a colour to make info lines stand out. */
/* Search query syntax (the search string of a saved search) */
--search-label-color: #1a6fc4;
--search-relation-color: #7d4bbd;
--search-negation-color: #c62828;
--search-property-color: #0f7b6c;
--search-keyword-color: #b02a5b;
--search-operator-color: #596573;
--search-string-color: #2e7d32;
--search-literal-color: #a35c00;
--search-bracket-color: #7b8794;
--card-background-color: #0000000d;
--card-background-hover-color: #0000001c;
--card-border-color: transparent;
--card-shadow-color: rgba(0, 0, 0, 0.1);
--card-box-shadow: none;
--inline-code-background-color: rgba(0, 0, 0, 0.05);
--inline-code-border-color: rgba(0, 0, 0, 0.11);
--inline-code-hover-background-color: rgba(0, 0, 0, 0.1);
--calendar-color: var(--menu-text-color);
--calendar-weekday-labels-color: var(--muted-text-color);
--calendar-day-hover-color: var(--hover-item-text-color);
--calendar-day-hover-background: var(--active-item-background-color);
--calendar-day-highlight-background: #80808024;
--calendar-day-selected-background: var(--menu-text-color);
--calendar-day-selected-color: var(--menu-background-color-no-backdrop);
--timeline-bullet-color: #a5a5a5;
--timeline-bullet-hover-color: black;
--timeline-connector-color: #f1f1f1;
--timeline-connector-active-color: #ddd;
--timeline-connector-hover-blend-mode: multiply;
--tooltip-background-color: rgba(0, 0, 0, 0.818);
--tooltip-foreground-color: #ffffffeb;
--tooltip-shadow-color: rgba(0, 0, 0, 0.2);
--tooltip-kbd-color: white;
--tooltip-kbd-background: #ffffff32;
--tooltip-kbd-border: #00000060;
/* Translucent, as the app's other tooltips are: the theme frosts every tooltip
(`--tooltip-backdrop-filter`), and an opaque colour here is a blur with nothing behind it. */
--note-tooltip-background-color: #ffffffd9;
--help-background-color: #fffc;
--help-card-background: var(--card-background-color);
--help-card-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
--help-card-heading-color: #797979;
--help-kbd-shortcut-color: #3f3f3f;
--help-kbd-shortcut-background: #f5f5f5;
--help-kbd-shortcut-border: #c9c9c9;
--help-code-color: black;
--help-code-background: #d7d5d5;
--ck-editor-popup-border-color: var(--dropdown-border-color);
--ck-editor-toolbar-button-on-background: #00000030;
--ck-editor-toolbar-button-on-color: black;
--ck-editor-toolbar-button-on-shadow: none;
--ck-editor-toolbar-dropdown-button-open-background: #0000000f;
--note-list-view-icon-color: var(--left-pane-icon-color);
--note-list-view-large-icon-background: var(--note-icon-background-color);
--note-list-view-large-icon-color: var(--note-icon-color);
--note-list-view-search-result-highlight-background: transparent;
--note-list-view-search-result-highlight-color: var(--quick-search-result-highlight-color);
--note-list-view-search-result-fuzzy-highlight-color: var(--quick-search-result-fuzzy-highlight-color);
--note-list-view-content-background: #b1b1b133;
--calendar-coll-event-background-lightness: 95%;
--calendar-coll-event-background-saturation: 80%;
--calendar-coll-event-background-color: #eaeaea;
--calendar-coll-event-text-color: black;
--calendar-coll-event-hover-filter: brightness(.95) saturate(1.25);
--callendar-coll-event-archived-sripe-color: #0000000a;
--calendar-coll-today-background-color: #00000006;
--task-checkbox-without-state-background: #00000029;
--task-checkbox-without-state-hover-background: #0000004a;
--task-checkbox-with-state-background: gray;
--task-checkbox-with-state-hover-background: #000000a2;
--task-checkbox-done-color: #339933;
--task-checkbox-done-hover-color: #207920;
--task-checkbox-unknown-state-color: #e95d5d;
--task-checkbox-glyph-color: white;
--space-usage-treemap-cell-background: var(--accented-background-color);
--space-usage-treemap-cell-icon-color: var(--muted-text-color);
--space-usage-treemap-cell-hover-color: var(--main-text-color);
--space-usage-treemap-cell-selected-color: var(--main-text-color);
--space-usage-treemap-cell-saturation: 65%;
--space-usage-treemap-cell-lightness: 80%;
--space-usage-treemap-icon-saturation: 50%;
--space-usage-treemap-icon-lightness: 40%;
--space-usage-treemap-hover-saturation: 70%;
--space-usage-treemap-hover-lightness: 35%;
--space-usage-treemap-selected-saturation: 35%;
--space-usage-treemap-selected-lightness: 50%;
--space-usage-body-color: #c5d6ef;
--space-usage-attachments-color: #f0d5b0;
--space-usage-revisions-color: #83de95;
--space-usage-revisions-stripe-color: #47be5f;
--space-usage-donut-track-color: var(--main-border-color);
--space-usage-donut-segment-color: var(--accented-background-color);
--space-usage-donut-segment-hover-color: var(--input-focus-outline-color);
--space-usage-donut-segment-selected-color: var(--main-text-color);
--space-usage-donut-segment-saturation: 63%;
--space-usage-donut-segment-lightness: 75%;
--space-usage-donut-hover-saturation: 57%;
--space-usage-donut-hover-lightness: 68%;
--space-usage-donut-selected-saturation: 35%;
--space-usage-donut-selected-lightness: 45%;
}
#left-pane .fancytree-node.tinted,
.nested-note-list-item.use-note-color,
.note-book-card .note-book-header.use-note-color {
--custom-color: var(--light-theme-custom-color);
/* The background color of the active item in the note tree.
* The --custom-color-hue variable contains the hue of the user-selected note color.
* This value is unset for gray tones. */
--custom-bg-color: hsl(var(--custom-color-hue), 37%, 89%, 1);
}
/* A calendar event and a map note shown as a sheet are the same thing the quick editor is — a
whole note over whatever raised it — so they are tinted by the same colours. */
.quick-edit-dialog-wrapper.with-hue,
.calendar-event-sheet.with-hue,
.tn-embedded-note-sheet.with-hue,
.note-tooltip.with-hue {
--modal-background-color: hsl(var(--custom-color-hue), 56%, 96%);
--modal-border-color: hsl(var(--custom-color-hue), 33%, 41%);
--promoted-attribute-card-background-color: hsl(var(--custom-color-hue), 40%, 88%);
}
.modal.tab-bar-modal .tabs .tab-card.with-hue {
background-color: hsl(var(--bg-hue), 56%, 96%);
border-color: hsl(var(--bg-hue), 33%, 41%);
}
.modal.tab-bar-modal .tabs .tab-card.active.with-hue {
background-color: hsl(var(--bg-hue), 86%, 96%);
border-color: hsl(var(--bg-hue), 33%, 41%);
}
.note-split.with-hue,
.quick-edit-dialog-wrapper.with-hue,
.tn-embedded-note-panel.with-hue,
.calendar-event-popover.with-hue,
.calendar-event-sheet.with-hue,
.tn-embedded-note-sheet.with-hue,
.nested-note-list-item.with-hue,
.note-book-card.with-hue .note-book-header,
.ck-template-icon.with-hue,
.board-column h3 {
--note-icon-custom-background-color: hsl(var(--custom-color-hue), 44.5%, 43.1%);
--note-icon-custom-color: hsl(var(--custom-color-hue), 91.3%, 91%);
--note-icon-hover-custom-background-color: hsl(var(--custom-color-hue), 55.1%, 50.2%);
}
.note-split.with-hue *::selection,
.quick-edit-dialog-wrapper.with-hue *::selection {
--selection-background-color: hsl(var(--custom-color-hue), 60%, 90%);
}
.note-book-card.with-hue {
--card-background-color: hsl(var(--custom-color-hue), 21%, 94%);
--card-background-hover-color: hsl(var(--custom-color-hue), 21%, 87%);
}
.note-tooltip.with-hue {
--tooltip-background-color: hsl(var(--custom-color-hue), 56%, 96%, 0.85);
}
/*
* The surfaces that show a note over something else and frost what they stand on: the calendar's
* event card beside its chip, the note panes over the maps. Unlike the sheets and the
* tooltip, their tint is stated with the alpha the plain surface already carries — an opaque tint
* would leave the blur nothing to show through, which is the whole of what they are dressed as.
*
* Grown to cover what they stand on, both give the frosting up and take the same tint opaque; so
* does one whose blur cannot be had at all (background effects, or a reader who turned them off),
* all of them reading the no-backdrop colour.
*/
.calendar-event-popover.with-hue,
.tn-embedded-note-panel.with-hue {
--menu-background-color: hsl(var(--custom-color-hue), 56%, 96%, 0.85);
--menu-background-color-no-backdrop: hsl(var(--custom-color-hue), 56%, 97%);
--dropdown-border-color: hsl(var(--custom-color-hue), 30%, 78%);
--promoted-attribute-card-background-color: hsl(var(--custom-color-hue), 40%, 88%);
}
/* A reader who turned backdrop effects off, which these must answer here rather than by the swap
made on the body above: that swap is resolved where it is stated, so what reaches the surface is
the plain opaque colour and not the tinted one the surface states on itself. */
body.backdrop-effects-disabled :is(.calendar-event-popover, .tn-embedded-note-panel).with-hue {
--menu-background-color: var(--menu-background-color-no-backdrop);
}
[data-trilium-task-state] {
--task-state-adjusted-color: hsl(var(--task-state-hue), 50%, 50%);
}
:where(.ck-content .todo-list li[data-trilium-task-state]), .tn-task-checkbox {
--task-state-custom-hover-background-color: hsl(var(--task-state-hue), 60%, 40%);
}