Compare commits

..
15 changed files with 53 additions and 1347 deletions

View file

@ -1,49 +1,40 @@
# Stellar Dark Theme
Dark theme for [Trilium Notes](https://github.com/zadam/trilium) (OG Trilium) and [TriliumNext](https://github.com/TriliumNext/Notes).
Dark theme for [Trilium Notes](https://github.com/zadam/trilium)
![Text Showcase](/screenshots/SD_main.png)
![Text Showcase](/screenshots/SD_Main.png)
## Features
### Native Styles
* Dark theme
* High contrast
* Scrolling tables with sticky headers on both axes
* Vertical floating buttons for less content overlap
* Different styles for different types of links
* Vertical floating buttons that have much less overlap with content of notes
* Custom fonts
* Bright colors
### Enhanced Addon Styles
_See 'Usage Instructions' for information on how to enable these.*_
* Zen mode (with right panel enabled)*
* Matching code note and code block syntax highlight*
*See 'Usage Instructions' for information on how to enable these.*
* Zen Mode
* Matching syntax highlight in text notes
* Position shown in TOC
* And much more!
_*If you are using TriliumNext, zen mode and code block syntax highlight are already natively available in the application. No extra steps are required for these addons unless you want to disable the right panel in zen mode. Please see the usage instructions below if this is the case._
## Usage Instructions
### Installation
* Download and install the latest version of Trilium or TriliumNext
* Download the latest release of EverForest Ant Dark
* OG_StellarDark if you use the original Trilium Notes
* Next_StellarDark if you use TriliumNext
* In your Trilium instance right click a note you want to import the theme into
* Download the latest version of Trilium
* Download the latest release of Stellar Dark
* In your trilium instance right click a note you want to import the theme into
* Select "Import into note" in the context menu
* Uncheck "Safe import" and upload the zip file you just downloaded
* Click on the Trilium logo in the upper left corner and select Options -> Appearance
* Under "Theme", choose EverForest Ant Dark
* Under "Theme", choose Stellar Dark
* Enjoy!
### Enabling Addon Features
#### Zen Mode
* Create a 'JS frontend' code note
* Add the `#widget` attribute to 'Owned Attributes' (the button with three lines and a checkmark)
* Add the following code (created by [Nriver](https://github.com/Nriver/awesome-trilium/issues/44)) to the note:
* Add the following code (created by [Nriver](https://github.com/Nriver/awesome-trilium/issues/44)) to the note
```js
api.addButtonToToolbar({
title: 'Zen mode',
@ -54,16 +45,16 @@ _*If you are using TriliumNext, zen mode and code block syntax highlight are alr
shortcut: 'alt+z'
});
```
* Reload (<kbd>Ctrl+R</kbd> or <kbd>F5</kbd>) Trilium to enable the script
* Reload (`ctrl+r` or `F5`) Trilium to enable the script
##### Usage
Press <kbd>Alt+Z</kbd> or the zen (spa) button in the launcher (left most panel) to enable/disable zen mode.
Press `alt+z` or the zen (spa) button in the launcher (left most panel) to enable/disable zen mode.
There are two types of zen mode available:
1. Right panel enabled
2. Right panel disabled
The right panel is enabled by default in text notes. If you would like to disable this in OG Trilium, you can either add the following code in a new CSS note or uncomment it in the theme:
Right panel is enabled by default. If you would like to disable it, you can either add the following code in a new CSS note or uncomment it in the Stellar Dark theme as seen in the video below.
```css
/*hide right pane*/
@ -72,45 +63,31 @@ The right panel is enabled by default in text notes. If you would like to disabl
}
```
https://github.com/user-attachments/assets/dc398d7c-d3e9-402c-86b2-9576f402a13d
https://github.com/user-attachments/assets/e6019857-4e0f-46fb-a7e6-c83c4c6e30bb
In TriliumNext, you will need to comment out this code:
```css
/*show right pane*/
body.zen div.gutter {
display: block !important;
}
body.zen div#right-pane:not(.hidden-int) {
display: flex !important;
}
```
https://github.com/user-attachments/assets/ce651ab5-d970-49c8-bfef-94962cead03c
##### Additional Features
* Window control buttons are still accessible in zen mode*
* Zen button is still accessible in zen mode for a more accessible zen mode exit*
##### Added Features
* Window control buttons are still accessible in zen mode
* Zen button is still accessible in zen mode for easy disabling in case you don't remember the shortcut
* Bottom panel widgets are not visible in zen mode
* Optional disabling of right panel in zen mode
_*Natively available in TriliumNext_
#### Show Position in TOC and Syntax Highlight
Please go to each addon's respective page for instructions on how to enable these addons.
* [Show Position in TOC](https://github.com/SiriusXT/trilium-show-position-in-toc)
* [Syntax Highlight](https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget)
## Screenshots
The following screenshots are from TriliumNext. Most of the features shown are also available in either OG Trilium or can be included via addons. However, some features, like cards (excluding blockquotes) and <kbd>kbd</kbd>, are only available in TriliumNext.
## Screenshots and Videos
![Selection Showcase](/screenshots/SD_Hover.png)
https://github.com/user-attachments/assets/a19c6459-71c1-454f-921c-78c09088c9f4
https://github.com/user-attachments/assets/131e4f64-f1b5-411b-b849-182d1de66b17
![Relation Map](/screenshots/SD_Relation_Map.png)
![Map Showcase](/screenshots/SD_Map.png)
![Code Note](/screenshots/SD_Code.png)
![Code Showcase](/screenshots/SD_Code.png)
https://github.com/user-attachments/assets/4874d7b6-e8bf-4c07-87d1-3869bb09c68d
https://github.com/user-attachments/assets/ffb95d3e-572b-48d4-a47a-123ae6fb0e6d
![Text Note Syntax Highlight Showcase](/screenshots/SD_Highlight.png)
## Credits and Resources
### Fonts
@ -126,5 +103,4 @@ https://github.com/user-attachments/assets/4874d7b6-e8bf-4c07-87d1-3869bb09c68d
* WordCount (Featured in the [Demo Document](https://github.com/zadam/trilium/wiki/Document#demo-document))
* [Zen Mode](https://github.com/Nriver/awesome-trilium/issues/44)
Find more addons made by the Trilium community at [Nriver's "Awesome Trilium" page](https://github.com/Nriver/awesome-trilium?tab=readme-ov-file#%EF%B8%8F-widgets), and check out my other themes [EverForest Ant Dark](https://github.com/Lolabird/everforest-ant-dark-trilium-theme) and [Ocean Dark](https://github.com/Lolabird/ocean-dark-trilium-theme) while you're at it!
Find more addons made by the Trilium community at [Nriver's "Awesome Trilium" page](https://github.com/Nriver/awesome-trilium?tab=readme-ov-file#%EF%B8%8F-widgets)!

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Before After
Before After

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

BIN
screenshots/SD_Hover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

BIN
screenshots/SD_Main.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

BIN
screenshots/SD_Map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

BIN
screenshots/SD_Tables.mp4 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 KiB

View file

@ -265,6 +265,10 @@ html {
/*****TOC*****/
.toc-widget{
overflow: visible !important;
font-size: var(--tree-font-size);
}
/***Only applies if 'Show Position in TOC' widget is in use***/
.toc-widget span.toc li[style] {
@ -339,6 +343,12 @@ html {
}
/*****TEXT*****/
*{
letter-spacing: 1.2px;
}
/*****TABLE*****/
.ck-content .table>figcaption {
background-color: var(--table-header-gray);
@ -388,19 +398,11 @@ tr:nth-child(odd) {
/*****TEXT DECORATION*****/
body strong, body b {
/*bold*/
body strong {
color:var(--bold-sun);
font-weight: 700;
}
body i, body em {
color: var(--italic-orange);
}
body u {
text-decoration-style: dashed;
}
body s, body del {
text-decoration-style: double;
}
/***lists***/
li label {
@ -452,19 +454,9 @@ body blockquote{
}
/*****LINKS*****/
body a *, a.ck-widget span {
color: var(--link-color);
}
.ck-content a:hover, a.no-tooltip-preview:hover {
text-decoration-style: double !important;
}
.ck-content a[href^="#root"]:not(.ck-widget) {
text-decoration: underline dotted;
}
.ck-content a:not([href^="#"],[href^="https://"],[href^="http://"]) {
color: var(--soft-red);
text-decoration: underline wavy 1px;
/***decorated links***/
a > i, a > em, a > b, a > strong {
color: var(--link-color);
}
@ -590,12 +582,10 @@ input.form-control.note-autocomplete.note-autocomplete-input.aa-input {
/*****BUTTONS*****/
/***modal buttons***/
button.help-button {
color: var(--bright-sun);
padding: 0;
.help-button {
color: hsl(15, 100%, 56%);
}
button.help-button:hover {
.help-button:hover {
color: var(--dim-sun);
}
@ -975,8 +965,8 @@ code.hljs {
padding:3px 5px;
}
.hljs{
background: var(--main-background);
color: var(--shallow-sea-blue) !important;
background:#fff;
color: yellow !important;
}
.hljs-number {
color: var(--code-number) !important;
@ -1002,19 +992,19 @@ code.hljs {
.hljs-comment,.hljs-quote {
color: var(--code-comment) !important;
}
.hljs-name,.hljs-name>.hljs-tag,.hljs-selector-tag,.hljs-tag,.hljs-deletion,.hljs-selector-attr {
.hljs-name,.hljs-selector-tag,.hljs-tag,.hljs-deletion,.hljs-selector-attr {
color: var(--code-tag) !important;
}
.hljs-attribute {
color: var(--code-attribute) !important;
}
.hljs-addition,.hljs-literal,.hljs-section,.hljs-string,.hljs-string>.hljs-tag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-regexp {
.hljs-addition,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-type {
color: var(--code-string) !important;
}
.hljs-built_in {
color: var(--code-builtin) !important;
}
.hljs-doctag,.hljs-attr,.hljs-attr>.hljs-tag,.hljs-bullet,.hljs-link,.hljs-symbol {
.hljs-doctag,.hljs-attr,.hljs-bullet,.hljs-link,.hljs-symbol {
color: var(--soft-sea-green) !important;
}
.hljs-emphasis {
@ -1062,10 +1052,10 @@ code.hljs {
.zen-mode #center-pane > :not(.split-note-container-widget) {
display: none !important;
}
/*hide right pane*
.zen-mode #right-pane {
/*hide right pane*/
/*.zen-mode #right-pane {
display: none !important;
}
}*/
/***Theme Switcher***/
.theme-selection.component .switch {
@ -1085,29 +1075,3 @@ code.hljs {
.chat-wrapper .header_face:hover {
color: var(--bright-sun) !important;
}
/***Breadcrumbs***/
#breadcrumbs-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
border-top: 1px solid var(--main-border-color);
border-bottom: 1px solid var(--main-border-color);
contain: none;
overflow: auto;
}
#breadcrumbs span a {
white-space: pre;
overflow: hidden;
text-overflow: ellipsis;
display: inherit;
}
#breadcrumbs a {
display: inline-flex;
line-height: 1;
padding: 5px 10px;
background-color: rgba(252, 251, 179, 0.05) !important;
border-radius: 12px;
transition: transform 200ms ease, background-color 200ms ease, filter 200ms ease;
}