Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b189d2b1a8 |
||
|
|
1bd7dfb1cf |
||
|
|
1350a7702b |
||
|
|
e12f92b3ef |
||
|
|
99b435f926 |
||
|
|
dcd606ebf1 |
||
|
|
d2a61d235e |
||
|
|
16cd4c5dd9 |
||
|
|
fa9d71672e |
||
|
|
8b08d5839a |
||
|
|
b7bbb4f7ee |
||
|
|
cd3604a07f |
||
|
|
48aee5e611 |
||
|
|
314d26d938 |
||
|
|
381aa52159 |
||
|
|
d93f1ecd53 |
||
|
|
a158596f5f |
||
|
|
f3952249db |
||
|
|
876c6798e0 |
||
|
|
cb6662be51 |
||
|
|
83ce112d6f |
||
|
|
cff579d496 |
||
|
|
6e2abb53a2 |
||
|
|
743b944c42 |
||
|
|
ba746e20a0 |
||
|
|
d297ffac3f |
||
|
|
1754864cc9 |
||
|
|
a4304b6691 |
||
|
|
8fb4a7e08a |
||
|
|
95850c5449 |
||
|
|
71922ebb52 |
||
|
|
66add0caff |
||
|
|
4ed6a36073 |
||
|
|
4dec7c4088 |
||
|
|
b2b8e7658a |
||
|
|
3c4d169ec4 |
||
|
|
f97b404c78 |
||
|
|
5ea7c6fa86 |
||
|
|
25aaa56caa |
||
|
|
2aeae53ffd |
||
|
|
2c1316b2d5 |
||
|
|
89278f53df |
||
|
|
cdc52b0ad7 |
||
|
|
368b6894c7 |
||
|
|
b937909b24 |
||
|
|
8b57333e18 |
||
|
|
39c5da008a |
||
|
|
d708870699 |
||
|
|
6fef74c529 |
||
|
|
e50e83ca34 |
||
|
|
afb2532747 |
||
|
|
2599b52b7a |
||
|
|
b9faa57321 |
||
|
|
f3a7319d78 |
||
|
|
c33341c446 |
||
|
|
59207a0508 |
||
|
|
abf74afb41 |
||
|
|
b881e3aabf |
||
|
|
ddd5db8a1a |
||
|
|
208be14c43 |
||
|
|
f54b9a7b4e |
||
|
|
4678431052 |
||
|
|
fff3a18f26 |
||
|
|
786a70b4e8 |
||
|
|
c3d517f220 |
||
|
|
af2fffb808 |
||
|
|
d8c718f93c |
||
|
|
142df0b4ae |
||
|
|
e87453e5a9 |
||
|
|
c30466bb37 |
||
|
|
2e65b8bb30 |
||
|
|
b957a6f075 |
||
|
|
18c1dafdcd |
||
|
|
3f8ab14129 |
78
README.md
|
|
@ -1,40 +1,49 @@
|
|||
# Stellar Dark Theme
|
||||
Dark theme for [Trilium Notes](https://github.com/zadam/trilium)
|
||||
Dark theme for [Trilium Notes](https://github.com/zadam/trilium) (OG Trilium) and [TriliumNext](https://github.com/TriliumNext/Notes).
|
||||
|
||||

|
||||

|
||||
|
||||
## Features
|
||||
### Native Styles
|
||||
* Dark theme
|
||||
* High contrast
|
||||
* Scrolling tables with sticky headers on both axes
|
||||
* Vertical floating buttons that have much less overlap with content of notes
|
||||
* Vertical floating buttons for less content overlap
|
||||
* Different styles for different types of links
|
||||
* Custom fonts
|
||||
* Bright colors
|
||||
|
||||
### Enhanced Addon Styles
|
||||
*See 'Usage Instructions' for information on how to enable these.*
|
||||
* Zen Mode
|
||||
* Matching syntax highlight in text notes
|
||||
_See 'Usage Instructions' for information on how to enable these.*_
|
||||
|
||||
* Zen mode (with right panel enabled)*
|
||||
* Matching code note and code block syntax highlight*
|
||||
* 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 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
|
||||
* 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
|
||||
* 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 Stellar Dark
|
||||
* Under "Theme", choose EverForest Ant 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',
|
||||
|
|
@ -45,16 +54,16 @@ Dark theme for [Trilium Notes](https://github.com/zadam/trilium)
|
|||
shortcut: 'alt+z'
|
||||
});
|
||||
```
|
||||
* Reload (`ctrl+r` or `F5`) Trilium to enable the script
|
||||
* Reload (<kbd>Ctrl+R</kbd> or <kbd>F5</kbd>) Trilium to enable the script
|
||||
|
||||
##### Usage
|
||||
Press `alt+z` or the zen (spa) button in the launcher (left most panel) to enable/disable zen mode.
|
||||
Press <kbd>Alt+Z</kbd> 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
|
||||
|
||||
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.
|
||||
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:
|
||||
|
||||
```css
|
||||
/*hide right pane*/
|
||||
|
|
@ -63,31 +72,45 @@ Right panel is enabled by default. If you would like to disable it, you can eith
|
|||
}
|
||||
```
|
||||
|
||||
https://github.com/user-attachments/assets/e6019857-4e0f-46fb-a7e6-c83c4c6e30bb
|
||||
https://github.com/user-attachments/assets/dc398d7c-d3e9-402c-86b2-9576f402a13d
|
||||
|
||||
##### 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
|
||||
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*
|
||||
* 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 and Videos
|
||||

|
||||
## 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.
|
||||
|
||||
https://github.com/user-attachments/assets/131e4f64-f1b5-411b-b849-182d1de66b17
|
||||
https://github.com/user-attachments/assets/a19c6459-71c1-454f-921c-78c09088c9f4
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
https://github.com/user-attachments/assets/ffb95d3e-572b-48d4-a47a-123ae6fb0e6d
|
||||
|
||||

|
||||
https://github.com/user-attachments/assets/4874d7b6-e8bf-4c07-87d1-3869bb09c68d
|
||||
|
||||
## Credits and Resources
|
||||
### Fonts
|
||||
|
|
@ -103,4 +126,5 @@ https://github.com/user-attachments/assets/ffb95d3e-572b-48d4-a47a-123ae6fb0e6d
|
|||
* 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)!
|
||||
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!
|
||||
|
||||
1234
next_stellar-dark.css
Normal file
|
|
@ -265,10 +265,6 @@ 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] {
|
||||
|
|
@ -343,12 +339,6 @@ html {
|
|||
}
|
||||
|
||||
|
||||
/*****TEXT*****/
|
||||
*{
|
||||
letter-spacing: 1.2px;
|
||||
}
|
||||
|
||||
|
||||
/*****TABLE*****/
|
||||
.ck-content .table>figcaption {
|
||||
background-color: var(--table-header-gray);
|
||||
|
|
@ -398,11 +388,19 @@ tr:nth-child(odd) {
|
|||
|
||||
|
||||
/*****TEXT DECORATION*****/
|
||||
/*bold*/
|
||||
body strong {
|
||||
body strong, body b {
|
||||
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 {
|
||||
|
|
@ -454,9 +452,19 @@ body blockquote{
|
|||
}
|
||||
|
||||
|
||||
/***decorated links***/
|
||||
a > i, a > em, a > b, a > strong {
|
||||
color: var(--link-color);
|
||||
/*****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;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -582,10 +590,12 @@ input.form-control.note-autocomplete.note-autocomplete-input.aa-input {
|
|||
|
||||
|
||||
/*****BUTTONS*****/
|
||||
.help-button {
|
||||
color: hsl(15, 100%, 56%);
|
||||
/***modal buttons***/
|
||||
button.help-button {
|
||||
color: var(--bright-sun);
|
||||
padding: 0;
|
||||
}
|
||||
.help-button:hover {
|
||||
button.help-button:hover {
|
||||
color: var(--dim-sun);
|
||||
}
|
||||
|
||||
|
|
@ -965,8 +975,8 @@ code.hljs {
|
|||
padding:3px 5px;
|
||||
}
|
||||
.hljs{
|
||||
background:#fff;
|
||||
color: yellow !important;
|
||||
background: var(--main-background);
|
||||
color: var(--shallow-sea-blue) !important;
|
||||
}
|
||||
.hljs-number {
|
||||
color: var(--code-number) !important;
|
||||
|
|
@ -992,19 +1002,19 @@ code.hljs {
|
|||
.hljs-comment,.hljs-quote {
|
||||
color: var(--code-comment) !important;
|
||||
}
|
||||
.hljs-name,.hljs-selector-tag,.hljs-tag,.hljs-deletion,.hljs-selector-attr {
|
||||
.hljs-name,.hljs-name>.hljs-tag,.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-template-tag,.hljs-template-variable,.hljs-type {
|
||||
.hljs-addition,.hljs-literal,.hljs-section,.hljs-string,.hljs-string>.hljs-tag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-regexp {
|
||||
color: var(--code-string) !important;
|
||||
}
|
||||
.hljs-built_in {
|
||||
color: var(--code-builtin) !important;
|
||||
}
|
||||
.hljs-doctag,.hljs-attr,.hljs-bullet,.hljs-link,.hljs-symbol {
|
||||
.hljs-doctag,.hljs-attr,.hljs-attr>.hljs-tag,.hljs-bullet,.hljs-link,.hljs-symbol {
|
||||
color: var(--soft-sea-green) !important;
|
||||
}
|
||||
.hljs-emphasis {
|
||||
|
|
@ -1052,10 +1062,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 {
|
||||
|
|
@ -1075,3 +1085,29 @@ 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;
|
||||
}
|
||||
BIN
screenshots/OG_SD_Zen.mp4
Normal file
|
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 198 KiB |
|
Before Width: | Height: | Size: 234 KiB |
|
Before Width: | Height: | Size: 339 KiB |
|
Before Width: | Height: | Size: 289 KiB |
|
Before Width: | Height: | Size: 125 KiB |
BIN
screenshots/SD_Relation_Map.png
Normal file
|
After Width: | Height: | Size: 221 KiB |
BIN
screenshots/SD_Showcase.mp4
Normal file
BIN
screenshots/SD_main.png
Normal file
|
After Width: | Height: | Size: 288 KiB |