Add Solarized and Tokyo Night themes (dark + light) and update README

This commit is contained in:
Richard Zink
2026-09-07 21:34:21 +02:00
parent c854672bc4
commit 3562b61656
5 changed files with 1644 additions and 2 deletions
+409
View File
@@ -0,0 +1,409 @@
/*
* Solarized Theme for TriliumNext
*
* Fixed dark variant (no automatic light/dark switching).
* Palette: Solarized (Ethan Schoonover, MIT)
*/
#trilium-app {
--theme-style: dark;
/* Main surfaces */
--main-background-color: #002b36;
--main-text-color: #839496;
--main-border-color: #073642;
--subtle-border-color: #073642;
--dropdown-border-color: #073642;
--dropdown-shadow-opacity: 0.6;
/* Accented / highlight */
--accented-background-color: #073642;
--more-accented-background-color: #073642;
/* Cards & dialogs */
--card-background-color: #073642;
--card-background-hover-color: #073642;
--card-border-color: #073642;
--tool-dialog-background-color: #002b36;
--modal-background-color: #002b36;
--modal-border-color: #073642;
/* Text & muted */
--muted-text-color: #859900;
--menu-text-color: #839496;
--menu-background-color: #073642e6;
--menu-background-color-no-backdrop: #002b36;
/* Links */
--link-color: #268bd2;
--link-hover-color: #b58900;
--link-hover-background: #b5890024;
/* Inputs */
--input-background-color: #07364260;
--input-text-color: #839496;
--input-placeholder-color: #85990080;
--input-hover-background: #07364260;
--input-focus-outline-color: #268bd2;
--input-focus-background: #07364250;
--input-focus-color: #839496;
--input-action-button-color: #859900;
--input-action-button-hover: #839496;
/* Selection */
--selection-background-color: #268bd2;
--hover-item-text-color: #839496;
--hover-item-background-color: #073642;
--active-item-text-color: #839496;
--active-item-background-color: #073642;
/* Left pane / launcher */
--left-pane-background-color: #002b36;
--left-pane-text-color: #859900;
--left-pane-icon-color: #586e75;
--left-pane-item-hover-background: #073642;
--left-pane-item-selected-background: #073642;
--left-pane-item-selected-color: #839496;
--launcher-pane-background-color: #002b36;
--launcher-pane-text-color: #859900;
--launcher-pane-vert-background-color: #002b36;
--launcher-pane-vert-text-color: #859900;
--launcher-pane-horiz-background-color: #002b36;
--launcher-pane-horiz-text-color: #859900;
/* Tabs & breadcrumb / window backgrounds */
--window-background-color-bgfx: #002b36;
--root-background: #002b36;
--tab-background-color: #002b36;
--note-split-background-color: #002b36;
--center-pane-background-color-bgfx: #002b36;
--launcher-pane-horiz-background-color-bgfx: #002b36;
--center-pane-horiz-layout-background-color-bgfx: #002b36;
--center-pane-vert-layout-background-color-bgfx: #002b36;
/* Tabs */
--active-tab-background-color: #002b36;
--active-tab-text-color: #839496;
--inactive-tab-background-color: #002b36;
--inactive-tab-text-color: #859900;
--tab-close-button-hover-background: #073642;
--tab-close-button-hover-color: #dc322f;
/* Right pane */
--right-pane-background-color: #002b36;
--right-pane-heading-color: #839496;
--right-pane-item-hover-background: #073642;
--right-pane-item-hover-color: #839496;
/* Bottom panel */
--bottom-panel-background-color: #002b36;
--bottom-panel-title-bar-background-color: #002b36;
/* Status bar */
--status-bar-border-color: #073642;
/* Code / inline code */
--inline-code-background-color: #073642;
--inline-code-border-color: #073642;
--code-block-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
/* Note icons */
--note-icon-background-color: #073642;
--note-icon-color: #839496;
/* Floating buttons */
--floating-button-background-color: #073642;
--floating-button-color: #839496;
--floating-button-hover-background: #073642;
--floating-button-hover-color: #839496;
/* Tooltips */
--tooltip-background-color: #073642;
--tooltip-foreground-color: #839496;
/* Scrollbar */
--scrollbar-thumb-color: #073642;
--scrollbar-thumb-hover-color: #073642;
--scrollbar-background-color: #002b36;
/* Checkboxes / tasks */
--task-checkbox-done-color: #859900;
--task-checkbox-glyph-color: #839496;
--task-checkbox-without-state-background: #073642;
--task-checkbox-with-state-background: #268bd2;
/* Mermaid */
--mermaid-theme: dark;
/* Buttons */
--cmd-button-background-color: #073642a0;
--cmd-button-text-color: #839496;
--cmd-button-hover-background-color: #073642a0;
--cmd-button-hover-text-color: #839496;
--icon-button-hover-background: #073642;
--icon-button-hover-color: #839496;
/* Logs */
--log-error-color: #dc322f;
--log-info-color: #268bd2;
--log-slow-color: #b58900;
--log-success-color: #859900;
/* Badges */
--badge-background-color: #073642;
--badge-text-color: #839496;
/* CKEditor editor dropdowns / panels (no yellow) */
--ck-color-base-foreground: #073642;
--ck-color-base-background: #002b36;
--ck-color-dialog-background: #002b36;
--ck-color-dropdown-panel-background: #073642;
--ck-color-dropdown-panel-border: #073642;
--ck-color-list-background: #073642;
--ck-color-list-button-hover-background: #073642;
--ck-color-list-button-on-background: #073642;
--ck-color-button-default-background: #073642;
--ck-color-button-default-hover-background: #073642;
--ck-color-button-on-background: #073642;
--ck-color-button-on-hover-background: #073642;
--ck-color-button-action-background: #073642;
--ck-color-button-action-hover-background: #073642;
--ck-color-input-background: #002b36;
--ck-editor-toolbar-button-on-background: #073642;
--ck-editor-toolbar-button-on-color: #839496;
--ck-editor-toolbar-dropdown-button-open-background: #073642;
}
/* Menus & dropdowns are often rendered outside #trilium-app, so also set them globally. */
:root {
--menu-text-color: #839496;
--menu-background-color: #002b36;
--menu-background-color-no-backdrop: #002b36;
--menu-item-icon-color: #859900;
--menu-item-disabled-opacity: 0.5;
--menu-item-keyboard-shortcut-color: #85990090;
--menu-item-arrow-color: #859900a3;
--menu-item-delimiter-color: #073642;
--menu-item-group-header-color: #859900;
--menu-section-background-color: #002b36;
--menu-hover-item-background-color: #073642;
--menu-hover-item-text-color: #839496;
--hover-item-background-color: #073642;
--active-item-background-color: #073642;
--dropdown-border-color: #073642;
--dropdown-item-icon-destructive-color: #dc322f;
/* CKEditor editor dropdowns are rendered outside #trilium-app, so set them globally (no yellow). */
--ck-color-base-text: #839496;
--ck-color-text: #839496;
--ck-color-base-foreground: #073642;
--ck-color-base-background: #002b36;
--ck-color-dialog-background: #002b36;
--ck-color-dropdown-panel-background: #073642;
--ck-color-dropdown-panel-border: #073642;
--ck-color-list-background: #073642;
--ck-color-list-button-hover-background: #073642;
--ck-color-list-button-on-background: #073642;
--ck-color-list-button-on-text: #839496;
--ck-color-button-default-background: #073642;
--ck-color-button-default-hover-background: #073642;
--ck-color-button-on-background: #073642;
--ck-color-button-on-hover-background: #073642;
--ck-color-button-action-background: #073642;
--ck-color-button-action-hover-background: #073642;
--ck-color-input-background: #002b36;
--ck-color-input-text: #839496;
--ck-color-panel-background: #073642;
--ck-color-toolbar-background: #073642;
}
/* 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: #002b36 !important;
--menu-background-color-no-backdrop: #002b36 !important;
--menu-section-background-color: #002b36 !important;
background-color: #002b36 !important;
}
body.desktop .dropdown-menu::before,
body.mobile .dropdown-menu::before {
background-color: #002b36 !important;
backdrop-filter: none !important;
}
body.desktop .dropdown-menu .dropdown-item,
body.mobile .dropdown-menu .dropdown-item {
--custom-color: #839496 !important;
color: #839496;
}
body.desktop .dropdown-menu .dropdown-item:hover,
body.desktop .dropdown-menu .dropdown-item:focus,
body.desktop .dropdown-menu .dropdown-item.active {
background-color: #073642 !important;
color: #839496;
}
/* ============ 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(133, 153, 0, 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(133, 153, 0, 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 #dc322f80;
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 #b5890080;
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 #85990080;
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 #85990080;
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 #83949680;
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 #83949680;
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 #83949680;
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 #268bd280;
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 #268bd280;
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 #268bd280;
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(38, 107, 210, 0.30);
border-bottom: 2px solid rgba(38, 107, 210, 0.6);
border-radius: 4px;
padding: 0.25em 0.4em;
}
.ck-content h3 {
background-color: rgba(133, 153, 0, 0.25);
border-bottom: 2px solid rgba(133, 153, 0, 0.6);
border-radius: 4px;
padding: 0.2em 0.35em;
}
.ck-content h4 {
background-color: rgba(181, 137, 0, 0.22);
border-bottom: 2px solid rgba(181, 137, 0, 0.55);
border-radius: 4px;
padding: 0.2em 0.35em;
}
.ck-content h5 {
background-color: rgba(131, 148, 150, 0.25);
border-bottom: 2px solid rgba(131, 148, 150, 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(38, 107, 210, 0.20) !important;
color: #839496;
font-weight: 700;
border-bottom: 2px solid rgba(38, 107, 210, 0.45);
}
.ck-content table tbody td:first-child {
background-color: rgba(255, 255, 255, 0.05) !important;
color: #839496;
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(38, 107, 210, 0.10) !important;
}
.ck-content table .col-hover {
background-color: rgba(38, 107, 210, 0.10) !important;
}
.ck-content table tbody tr:hover td.col-hover,
.ck-content table thead th.col-hover {
background-color: rgba(38, 107, 210, 0.18) !important;
}