Add Solarized and Tokyo Night themes (dark + light) and update README
This commit is contained in:
@@ -0,0 +1,409 @@
|
||||
/*
|
||||
* Tokyo Night Theme for TriliumNext
|
||||
*
|
||||
* Fixed dark variant (no automatic light/dark switching).
|
||||
* Palette: tokyonight.nvim (folke, Apache-2.0)
|
||||
*/
|
||||
|
||||
|
||||
#trilium-app {
|
||||
--theme-style: dark;
|
||||
|
||||
/* Main surfaces */
|
||||
--main-background-color: #24283b;
|
||||
--main-text-color: #c0caf5;
|
||||
--main-border-color: #292e42;
|
||||
--subtle-border-color: #1a1b26;
|
||||
--dropdown-border-color: #292e42;
|
||||
--dropdown-shadow-opacity: 0.6;
|
||||
|
||||
/* Accented / highlight */
|
||||
--accented-background-color: #1a1b26;
|
||||
--more-accented-background-color: #292e42;
|
||||
|
||||
/* Cards & dialogs */
|
||||
--card-background-color: #1a1b26;
|
||||
--card-background-hover-color: #292e42;
|
||||
--card-border-color: #292e42;
|
||||
--tool-dialog-background-color: #16161e;
|
||||
--modal-background-color: #16161e;
|
||||
--modal-border-color: #292e42;
|
||||
|
||||
/* Text & muted */
|
||||
--muted-text-color: #9ece6a;
|
||||
--menu-text-color: #c0caf5;
|
||||
--menu-background-color: #1a1b26e6;
|
||||
--menu-background-color-no-backdrop: #16161e;
|
||||
|
||||
/* Links */
|
||||
--link-color: #7aa2f7;
|
||||
--link-hover-color: #e0af68;
|
||||
--link-hover-background: #e0af6824;
|
||||
|
||||
/* Inputs */
|
||||
--input-background-color: #292e4260;
|
||||
--input-text-color: #c0caf5;
|
||||
--input-placeholder-color: #9ece6a80;
|
||||
--input-hover-background: #292e4260;
|
||||
--input-focus-outline-color: #7aa2f7;
|
||||
--input-focus-background: #292e4250;
|
||||
--input-focus-color: #c0caf5;
|
||||
--input-action-button-color: #9ece6a;
|
||||
--input-action-button-hover: #c0caf5;
|
||||
|
||||
/* Selection */
|
||||
--selection-background-color: #7aa2f7;
|
||||
--hover-item-text-color: #c0caf5;
|
||||
--hover-item-background-color: #1a1b26;
|
||||
--active-item-text-color: #c0caf5;
|
||||
--active-item-background-color: #292e42;
|
||||
|
||||
/* Left pane / launcher */
|
||||
--left-pane-background-color: #16161e;
|
||||
--left-pane-text-color: #9ece6a;
|
||||
--left-pane-icon-color: #565f89;
|
||||
--left-pane-item-hover-background: #1a1b26;
|
||||
--left-pane-item-selected-background: #292e42;
|
||||
--left-pane-item-selected-color: #c0caf5;
|
||||
--launcher-pane-background-color: #16161e;
|
||||
--launcher-pane-text-color: #9ece6a;
|
||||
--launcher-pane-vert-background-color: #16161e;
|
||||
--launcher-pane-vert-text-color: #9ece6a;
|
||||
--launcher-pane-horiz-background-color: #16161e;
|
||||
--launcher-pane-horiz-text-color: #9ece6a;
|
||||
|
||||
/* Tabs & breadcrumb / window backgrounds */
|
||||
--window-background-color-bgfx: #16161e;
|
||||
--root-background: #16161e;
|
||||
--tab-background-color: #16161e;
|
||||
--note-split-background-color: #24283b;
|
||||
--center-pane-background-color-bgfx: #24283b;
|
||||
--launcher-pane-horiz-background-color-bgfx: #16161e;
|
||||
--center-pane-horiz-layout-background-color-bgfx: #24283b;
|
||||
--center-pane-vert-layout-background-color-bgfx: #24283b;
|
||||
|
||||
/* Tabs */
|
||||
--active-tab-background-color: #16161e;
|
||||
--active-tab-text-color: #c0caf5;
|
||||
--inactive-tab-background-color: #24283b;
|
||||
--inactive-tab-text-color: #9ece6a;
|
||||
--tab-close-button-hover-background: #1a1b26;
|
||||
--tab-close-button-hover-color: #f7768e;
|
||||
|
||||
/* Right pane */
|
||||
--right-pane-background-color: #16161e;
|
||||
--right-pane-heading-color: #c0caf5;
|
||||
--right-pane-item-hover-background: #1a1b26;
|
||||
--right-pane-item-hover-color: #c0caf5;
|
||||
|
||||
/* Bottom panel */
|
||||
--bottom-panel-background-color: #16161e;
|
||||
--bottom-panel-title-bar-background-color: #24283b;
|
||||
|
||||
/* Status bar */
|
||||
--status-bar-border-color: #292e42;
|
||||
|
||||
/* Code / inline code */
|
||||
--inline-code-background-color: #1a1b26;
|
||||
--inline-code-border-color: #292e42;
|
||||
--code-block-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
|
||||
|
||||
/* Note icons */
|
||||
--note-icon-background-color: #1a1b26;
|
||||
--note-icon-color: #c0caf5;
|
||||
|
||||
/* Floating buttons */
|
||||
--floating-button-background-color: #1a1b26;
|
||||
--floating-button-color: #c0caf5;
|
||||
--floating-button-hover-background: #292e42;
|
||||
--floating-button-hover-color: #c0caf5;
|
||||
|
||||
/* Tooltips */
|
||||
--tooltip-background-color: #1a1b26;
|
||||
--tooltip-foreground-color: #c0caf5;
|
||||
|
||||
/* Scrollbar */
|
||||
--scrollbar-thumb-color: #292e42;
|
||||
--scrollbar-thumb-hover-color: #292e42;
|
||||
--scrollbar-background-color: #16161e;
|
||||
|
||||
/* Checkboxes / tasks */
|
||||
--task-checkbox-done-color: #9ece6a;
|
||||
--task-checkbox-glyph-color: #c0caf5;
|
||||
--task-checkbox-without-state-background: #292e42;
|
||||
--task-checkbox-with-state-background: #7aa2f7;
|
||||
|
||||
/* Mermaid */
|
||||
--mermaid-theme: dark;
|
||||
|
||||
/* Buttons */
|
||||
--cmd-button-background-color: #292e42a0;
|
||||
--cmd-button-text-color: #c0caf5;
|
||||
--cmd-button-hover-background-color: #292e42a0;
|
||||
--cmd-button-hover-text-color: #c0caf5;
|
||||
--icon-button-hover-background: #1a1b26;
|
||||
--icon-button-hover-color: #c0caf5;
|
||||
|
||||
/* Logs */
|
||||
--log-error-color: #f7768e;
|
||||
--log-info-color: #7aa2f7;
|
||||
--log-slow-color: #e0af68;
|
||||
--log-success-color: #9ece6a;
|
||||
|
||||
/* Badges */
|
||||
--badge-background-color: #292e42;
|
||||
--badge-text-color: #c0caf5;
|
||||
|
||||
/* CKEditor editor dropdowns / panels (no yellow) */
|
||||
--ck-color-base-foreground: #1a1b26;
|
||||
--ck-color-base-background: #24283b;
|
||||
--ck-color-dialog-background: #24283b;
|
||||
--ck-color-dropdown-panel-background: #1a1b26;
|
||||
--ck-color-dropdown-panel-border: #292e42;
|
||||
--ck-color-list-background: #1a1b26;
|
||||
--ck-color-list-button-hover-background: #292e42;
|
||||
--ck-color-list-button-on-background: #292e42;
|
||||
--ck-color-button-default-background: #1a1b26;
|
||||
--ck-color-button-default-hover-background: #292e42;
|
||||
--ck-color-button-on-background: #292e42;
|
||||
--ck-color-button-on-hover-background: #292e42;
|
||||
--ck-color-button-action-background: #292e42;
|
||||
--ck-color-button-action-hover-background: #292e42;
|
||||
--ck-color-input-background: #24283b;
|
||||
--ck-editor-toolbar-button-on-background: #292e42;
|
||||
--ck-editor-toolbar-button-on-color: #c0caf5;
|
||||
--ck-editor-toolbar-dropdown-button-open-background: #1a1b26;
|
||||
}
|
||||
|
||||
/* Menus & dropdowns are often rendered outside #trilium-app, so also set them globally. */
|
||||
:root {
|
||||
--menu-text-color: #c0caf5;
|
||||
--menu-background-color: #24283b;
|
||||
--menu-background-color-no-backdrop: #24283b;
|
||||
--menu-item-icon-color: #9ece6a;
|
||||
--menu-item-disabled-opacity: 0.5;
|
||||
--menu-item-keyboard-shortcut-color: #9ece6a90;
|
||||
--menu-item-arrow-color: #9ece6aa3;
|
||||
--menu-item-delimiter-color: #1a1b26;
|
||||
--menu-item-group-header-color: #9ece6a;
|
||||
--menu-section-background-color: #24283b;
|
||||
--menu-hover-item-background-color: #1a1b26;
|
||||
--menu-hover-item-text-color: #c0caf5;
|
||||
--hover-item-background-color: #1a1b26;
|
||||
--active-item-background-color: #292e42;
|
||||
--dropdown-border-color: #1a1b26;
|
||||
--dropdown-item-icon-destructive-color: #f7768e;
|
||||
|
||||
/* CKEditor editor dropdowns are rendered outside #trilium-app, so set them globally (no yellow). */
|
||||
--ck-color-base-text: #c0caf5;
|
||||
--ck-color-text: #c0caf5;
|
||||
--ck-color-base-foreground: #1a1b26;
|
||||
--ck-color-base-background: #24283b;
|
||||
--ck-color-dialog-background: #24283b;
|
||||
--ck-color-dropdown-panel-background: #1a1b26;
|
||||
--ck-color-dropdown-panel-border: #292e42;
|
||||
--ck-color-list-background: #1a1b26;
|
||||
--ck-color-list-button-hover-background: #292e42;
|
||||
--ck-color-list-button-on-background: #292e42;
|
||||
--ck-color-list-button-on-text: #c0caf5;
|
||||
--ck-color-button-default-background: #1a1b26;
|
||||
--ck-color-button-default-hover-background: #292e42;
|
||||
--ck-color-button-on-background: #292e42;
|
||||
--ck-color-button-on-hover-background: #292e42;
|
||||
--ck-color-button-action-background: #292e42;
|
||||
--ck-color-button-action-hover-background: #292e42;
|
||||
--ck-color-input-background: #24283b;
|
||||
--ck-color-input-text: #c0caf5;
|
||||
--ck-color-panel-background: #1a1b26;
|
||||
--ck-color-toolbar-background: #1a1b26;
|
||||
}
|
||||
|
||||
/* 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: #24283b !important;
|
||||
--menu-background-color-no-backdrop: #24283b !important;
|
||||
--menu-section-background-color: #24283b !important;
|
||||
background-color: #24283b !important;
|
||||
}
|
||||
body.desktop .dropdown-menu::before,
|
||||
body.mobile .dropdown-menu::before {
|
||||
background-color: #24283b !important;
|
||||
backdrop-filter: none !important;
|
||||
}
|
||||
body.desktop .dropdown-menu .dropdown-item,
|
||||
body.mobile .dropdown-menu .dropdown-item {
|
||||
--custom-color: #c0caf5 !important;
|
||||
color: #c0caf5;
|
||||
}
|
||||
body.desktop .dropdown-menu .dropdown-item:hover,
|
||||
body.desktop .dropdown-menu .dropdown-item:focus,
|
||||
body.desktop .dropdown-menu .dropdown-item.active {
|
||||
background-color: #1a1b26 !important;
|
||||
color: #c0caf5;
|
||||
}
|
||||
|
||||
/* ============ 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(158, 206, 106, 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(158, 206, 106, 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 #f7768e80;
|
||||
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 #e0af6880;
|
||||
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 #9ece6a80;
|
||||
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 #9ece6a80;
|
||||
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 #a9b1d680;
|
||||
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 #a9b1d680;
|
||||
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 #a9b1d680;
|
||||
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 #7aa2f780;
|
||||
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 #7aa2f780;
|
||||
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 #7aa2f780;
|
||||
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(122, 162, 247, 0.30);
|
||||
border-bottom: 2px solid rgba(122, 162, 247, 0.6);
|
||||
border-radius: 4px;
|
||||
padding: 0.25em 0.4em;
|
||||
}
|
||||
.ck-content h3 {
|
||||
background-color: rgba(158, 206, 106, 0.25);
|
||||
border-bottom: 2px solid rgba(158, 206, 106, 0.6);
|
||||
border-radius: 4px;
|
||||
padding: 0.2em 0.35em;
|
||||
}
|
||||
.ck-content h4 {
|
||||
background-color: rgba(224, 175, 104, 0.22);
|
||||
border-bottom: 2px solid rgba(224, 175, 104, 0.55);
|
||||
border-radius: 4px;
|
||||
padding: 0.2em 0.35em;
|
||||
}
|
||||
.ck-content h5 {
|
||||
background-color: rgba(169, 177, 214, 0.25);
|
||||
border-bottom: 2px solid rgba(169, 177, 214, 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(122, 162, 247, 0.20) !important;
|
||||
color: #c0caf5;
|
||||
font-weight: 700;
|
||||
border-bottom: 2px solid rgba(122, 162, 247, 0.45);
|
||||
}
|
||||
.ck-content table tbody td:first-child {
|
||||
background-color: rgba(255, 255, 255, 0.05) !important;
|
||||
color: #c0caf5;
|
||||
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(122, 162, 247, 0.10) !important;
|
||||
}
|
||||
.ck-content table .col-hover {
|
||||
background-color: rgba(122, 162, 247, 0.10) !important;
|
||||
}
|
||||
.ck-content table tbody tr:hover td.col-hover,
|
||||
.ck-content table thead th.col-hover {
|
||||
background-color: rgba(122, 162, 247, 0.18) !important;
|
||||
}
|
||||
Reference in New Issue
Block a user