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
/* The app's own font files, matching the faces in the client's `theme-next/base.css` and `style.css`. */
@font-face {
font-family: "Inter";
src: url("../../../apps/client/src/fonts/Inter/Inter-VariableFont_opsz,wght.woff2") format("woff2-variations");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: JetBrainsLight;
src: url("../../../apps/client/src/fonts/JetBrainsMono-Light.woff2") format("woff2");
font-display: swap;
}
* {
box-sizing: border-box;
}
html.theme-light {
--background-primary: #FFFFFF;
--background-secondary: #F3F3F3;
--background-highlight: #DDDDDD;
--background-active: #777777;
--text-primary: #000000;
--text-heading: #000000;
--text-menu: #333333;
/* The link colors of `theme-next-light.css`. */
--text-link: #0076af;
--link-hover-background: #3c7fa017;
--link-focus-outline-color: #00000063;
--text-menu-active: var(--background-secondary);
/* The code colors of `theme-next-light.css`. */
--code-block-box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.2);
--inline-code-background-color: rgba(0, 0, 0, 0.05);
/* The task checkbox colors of `theme-next-light.css`. */
--task-checkbox-without-state-background: #00000029;
--task-checkbox-with-state-background: gray;
--task-checkbox-done-color: #339933;
/* The tree pane colors of `theme-next-light.css`. */
--tree-background: #f2f2f2;
--tree-item-color: #383838;
--tree-item-icon-color: currentColor;
--tree-item-hover-background: rgba(0, 0, 0, 0.032);
--tree-item-active-background: #FFFFFF;
--tree-item-active-color: #000000;
--tree-item-active-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
/* The quick search colors of `theme-next-light.css`. */
--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: #000000;
--quick-search-button-active-background: rgba(0, 0, 0, 0.11);
--quick-search-button-active-color: #383838;
/* The right pane colors of `theme-next-light.css`. */
--main-border-color: #dbdbdb;
--tooltip-background-color: rgba(0, 0, 0, 0.818);
--tooltip-foreground-color: #ffffffeb;
--tooltip-shadow-color: rgba(0, 0, 0, 0.2);
--dropdown-item-icon-destructive-color: #de4027;
--dropdown-shadow-opacity: 0.2;
--hover-item-background-color: #0000001a;
--hover-item-border-color: transparent;
--active-item-border-color: transparent;
--menu-background-color-no-backdrop: #fdfdfd;
--menu-item-arrow-color: #00000080;
--menu-item-delimiter-color: #00000030;
--menu-item-disabled-opacity: 0.6;
--menu-item-group-header-color: #00000061;
--menu-item-icon-color: #727272;
--menu-item-keyboard-shortcut-color: #666666a8;
--contextual-help-icon-color: #004382;
--badge-background-color: #00000011;
--badge-text-color: var(--muted-text-color);
--input-focus-outline-color: #00000063;
--modal-backdrop-color: #7c7c7c;
--muted-text-color: #666;
--card-background-color: #0000000d;
--card-background-hover-color: #0000001c;
--note-icon-background-color: #4f4f4f;
--note-icon-color: white;
/* The content colors of `theme-next-light.css`. */
--accented-background-color: #f5f5f5;
--selection-background-color: #3399FF70;
--kbd-color: #3f3f3f;
--kbd-background: #f5f5f5;
--kbd-border: #c9c9c9;
--right-pane-heading-color: gray;
--right-pane-item-hover-background: #00000013;
/* The menu colors of `theme-next-light.css`, which panels over content are drawn in. */
--menu-text-color: #272727;
--menu-background-color: #ffffffd9;
--dropdown-border-color: #ccc;
--more-accented-background-color: var(--card-background-hover-color);
--hover-item-text-color: black;
--icon-button-hover-background: #0000001a;
/* The buttons of `theme-next-light.css`, which the app views' toolbars draw from. */
--input-background-color: #00000012;
--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;
--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;
--tab-close-button-hover-background: #c95a5a;
--active-item-text-color: #383838;
--active-item-background-color: #ddd;
/* The overlay buttons of `theme-next-light.css`. */
--overlay-button-background: #e6e6e6d7;
--opaque-icon-button-hover-background-color: #cbcbcbd7;
--overlay-button-shadow-color: #00000048;
--mermaid-theme: default;
color-scheme: light;
}
html.theme-dark {
--background-primary: #242424;
--background-secondary: #1F1F1F;
--background-highlight: #484848;
--background-active: #777777;
--text-primary: #cccccc;
--text-heading: #cccccc;
--text-menu: #AAAAAA;
/* The link colors of `theme-next-dark.css`. */
--text-link: #95c3d9;
--link-hover-background: #75c2e324;
--link-focus-outline-color: #ffffff57;
--text-menu-active: var(--background-secondary);
/* The code colors of `theme-next-dark.css`. */
--code-block-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
--inline-code-background-color: rgba(255, 255, 255, 0.08);
/* The task checkbox colors of `theme-next-dark.css`. */
--task-checkbox-without-state-background: #ffffff26;
--task-checkbox-with-state-background: #ffffff3b;
--task-checkbox-done-color: #408b40;
/* The tree pane colors of `theme-next-dark.css`. */
--tree-background: #1f1f1f;
--tree-item-color: #aaaaaa;
--tree-item-icon-color: #c5c5c5;
--tree-item-hover-background: #ffffff0d;
--tree-item-active-background: #ffffff25;
--tree-item-active-color: #dfdfdf;
--tree-item-active-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
/* The quick search colors of `theme-next-dark.css`. */
--quick-search-background: #ffffff12;
--quick-search-color: #ffffff52;
--quick-search-hover-background: #ffffff1f;
--quick-search-focus-border: #80808095;
--quick-search-focus-background: #ffffff1f;
--quick-search-focus-color: #ffffff;
--quick-search-button-active-background: #ffffff73;
--quick-search-button-active-color: #000000;
/* The right pane colors of `theme-next-dark.css`. */
--main-border-color: #454545;
--tooltip-background-color: rgba(67, 67, 67, 0.86);
--tooltip-foreground-color: #ffffffeb;
--tooltip-shadow-color: rgba(0, 0, 0, 0.4);
--dropdown-item-icon-destructive-color: #d58477;
--dropdown-shadow-opacity: 0.6;
--hover-item-background-color: #ffffff16;
--hover-item-border-color: transparent;
--active-item-border-color: transparent;
--menu-background-color-no-backdrop: #1b1b1b;
--menu-item-arrow-color: #ffffffa3;
--menu-item-delimiter-color: #ffffff1c;
--menu-item-disabled-opacity: 0.5;
--menu-item-group-header-color: #ffffff91;
--menu-item-icon-color: #8c8c8c;
--menu-item-keyboard-shortcut-color: #ffffff8f;
--contextual-help-icon-color: #7fd2ef;
--badge-background-color: #ffffff1a;
--badge-text-color: var(--muted-text-color);
--input-focus-outline-color: #ffffff57;
--modal-backdrop-color: #000;
--muted-text-color: #bbb;
--card-background-color: #ffffff12;
--card-background-hover-color: #ffffff20;
--note-icon-background-color: #444444;
--note-icon-color: #d4d4d4;
/* The content colors of `theme-next-dark.css`. */
--accented-background-color: #555;
--selection-background-color: #3399FF70;
--kbd-color: #e0e0e0;
--kbd-background: #4a4a4a;
--kbd-border: #3a3a3a;
--right-pane-heading-color: gray;
--right-pane-item-hover-background: #ffffff26;
/* The menu colors of `theme-next-dark.css`, which panels over content are drawn in. */
--menu-text-color: #e3e3e3;
--menu-background-color: #222222d9;
--dropdown-border-color: #404040;
--more-accented-background-color: var(--card-background-hover-color);
--hover-item-text-color: #efefef;
--icon-button-hover-background: #ffffff16;
/* The buttons of `theme-next-dark.css`. */
--input-background-color: #ffffff12;
--cmd-button-background-color: #ffffff28;
--cmd-button-text-color: #ffffffc2;
--cmd-button-hover-background-color: #ffffff37;
--cmd-button-hover-text-color: white;
--cmd-button-shadow-color: #00000080;
--cmd-button-icon-color: white;
--cmd-button-keyboard-shortcut-background: #0000004d;
--cmd-button-keyboard-shortcut-color: white;
--button-group-background-color: #00000051;
--button-group-active-button-background-color: #4f4f4f;
--button-group-active-button-color: white;
--button-group-active-button-shadow-color: #000000;
--tab-close-button-hover-background: #a45353;
--active-item-text-color: #aaaaaa;
--active-item-background-color: #777;
/* The overlay buttons of `theme-next-dark.css`. */
--overlay-button-background: #646464d7;
--opaque-icon-button-hover-background-color: #868686b2;
--overlay-button-shadow-color: #00000048;
--mermaid-theme: dark;
color-scheme: dark;
}
/* The page's colors under the names the styles shared with the app read them by. */
:root {
--main-background-color: var(--background-primary);
--main-text-color: var(--text-primary);
/* The frosting of `theme-next/shell.css` behind the translucent menus. */
--dropdown-backdrop-filter: blur(20px) saturate(6);
/* The tooltips of `theme-next/base.css`, which the app's `tooltip.css` draws from. */
--tooltip-border-radius: 6px;
--tooltip-padding: 2px 8px 4px 8px;
--tooltip-box-shadow: -1px -1px 2px var(--tooltip-shadow-color), 2px 2px 8px var(--tooltip-shadow-color);
--tooltip-backdrop-filter: blur(5px);
--tooltip-font-size: 0.9rem;
--tooltip-border: none;
--tooltip-arrow-display: none;
/* The menus of `theme-next/menus.css` and `style.css`, which the app's context menus draw from. */
--dropdown-border-radius: 10px;
--menu-padding-size: 8px;
--menu-item-icon-vert-offset: -2px;
--submenu-opening-delay: 150ms;
/* The frosting of `theme-next/base.css` behind the translucent overlay buttons. */
--overlay-button-backdrop-filter: blur(32px) saturate(1000%);
--opaque-icon-button-hover-color: var(--hover-item-text-color);
/* The buttons shared by both modes, from `theme-next-light.css` and `theme-next/base.css`. */
--button-text-color: currentColor;
--cmd-button-disabled-opacity: 0.5;
--icon-button-color: currentColor;
--icon-button-hover-color: var(--hover-item-text-color);
--icon-button-size: 32px;
--icon-button-icon-ratio: 0.65;
--tab-close-button-hover-color: white;
}
/* The context menu's own offset in `theme-next/shell.css`, for its smaller icons. */
#context-menu-container {
--menu-item-icon-vert-offset: -1px;
}
body {
background: var(--background-primary);
font-family: "Inter", system-ui, sans-serif;
line-height: 1.5;
color: var(--text-primary);
margin: 0;
}
a {
color: var(--text-link);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* An inline-block glyph does not take the underline of its link. */
.tn-icon::before {
display: inline-block;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
pre, code, kbd, samp {
font-family: JetBrainsLight, ui-monospace, monospace;
}
img {
max-width: 100%;
}
pre {
white-space: pre-wrap;
word-wrap: anywhere;
}