2025-04-09 02:57:41 -06:00
# Ocean Dark Trilium Theme
2025-04-08 09:19:51 -06:00
Dark blue theme for [Trilium Notes ](https://github.com/zadam/trilium ) (OG Trilium) and [TriliumNext ](https://github.com/TriliumNext/Notes ) inspired by [Juno Ocean ](https://github.com/EliverLara/Juno ).
2025-04-08 01:12:08 -06:00

## Features
### Native Styles
* Dark theme
* High contrast
* Scrolling tables with sticky headers on both axes
2025-04-08 01:45:21 -06:00
* Vertical floating buttons for less content overlap
* Different styles for different types of links
2025-04-08 01:12:08 -06:00
* 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*
* 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
2025-04-08 17:11:34 +00:00
### Installation
2025-04-08 01:12:08 -06:00
* Download and install the latest version of Trilium or TriliumNext
* Download the latest release of Ocean Dark
* OG_Ocean if you use the original Trilium Notes
* Next_Ocean if you use TriliumNext
2025-04-08 09:19:51 -06:00
* In your Trilium instance right click a note you want to import the theme into
2025-04-08 01:12:08 -06:00
* 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 Ocean 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
```js
api.addButtonToToolbar({
title: 'Zen mode',
icon: 'spa',
action: function() {
$("body").toggleClass("zen-mode");
},
shortcut: 'alt+z'
});
```
2025-04-08 09:19:51 -06:00
* Reload (<kbd>Ctrl+R</kbd> or <kbd>F5</kbd>) Trilium to enable the script
2025-04-08 01:12:08 -06:00
##### Usage
2025-04-08 09:19:51 -06:00
Press <kbd>Alt+Z</kbd> or the zen (spa) button in the launcher (left most panel) to enable/disable zen mode.
2025-04-08 01:12:08 -06:00
There are two types of zen mode available:
1. Right panel enabled
2. Right panel disabled
2025-04-08 09:19:51 -06:00
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:
2025-04-08 01:12:08 -06:00
```css
/*hide right pane*/
.zen-mode #right -pane {
display: none !important;
}
```
2025-04-08 07:23:30 +00:00
https://github.com/user-attachments/assets/9a1724de-d5ec-4e5a-a5eb-c18a4f372a5c
2025-04-08 01:12:08 -06:00
In TriliumNext, you will need to find and 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;
}
```
2025-04-08 09:19:51 -06:00
2025-04-08 07:23:30 +00:00
https://github.com/user-attachments/assets/1ce4cc08-302d-44d7-904c-c98a5c15fdf2
2025-04-08 09:19:51 -06:00
##### Additional Features
2025-04-08 01:12:08 -06:00
* Window control buttons are still accessible in zen mode*
2025-04-08 09:19:51 -06:00
* Zen button is still accessible in zen mode for a more accessible zen mode exit*
2025-04-08 01:12:08 -06:00
* 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
2025-04-08 09:25:46 -06:00
(C) 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.
2025-04-08 01:12:08 -06:00
2025-04-08 07:23:30 +00:00
https://github.com/user-attachments/assets/e1bf9b3e-19c6-43a3-a8e3-6cc578a5c1d9
2025-04-08 01:12:08 -06:00


2025-04-08 07:23:30 +00:00
https://github.com/user-attachments/assets/4d95d671-6552-4120-b83e-83c2cd06f316
2025-04-08 01:12:08 -06:00
## Credits and Resources
### Fonts
* Jost: https://indestructibletype.com/Jost.html
* JetBrainsMono: https://www.jetbrains.com/lp/mono/
2025-04-08 01:45:21 -06:00
### Desktop Theme
Juno Ocean
* KDE: https://store.kde.org/p/1427568/
* Gnome: https://www.gnome-look.org/p/1280977
* GitHub: https://github.com/EliverLara/Juno
2025-04-08 01:12:08 -06:00
### Addons Featured in the Screenshots and Videos
* [Breadcrumbs ](https://github.com/rauenzi/Trilium-Breadcrumbs )
* [Scratchpad ](https://github.com/zadam/trilium/discussions/1613#discussioncomment-638984 )
* [Show Position in TOC ](https://github.com/SiriusXT/trilium-show-position-in-toc )
* [Syntax Highlight ](https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget )
* [Theme Switch ](https://github.com/madodig/trilium-widget-theme-switch )
* [Trilium Chat ](https://github.com/soulsands/trilium-chat )
* 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 )
2025-04-08 09:19:51 -06:00
Find more addons made by the Trilium community at [Nriver's Awesome Trilium ](https://github.com/Nriver/awesome-trilium?tab=readme-ov-file#%EF%B8%8F-widgets ), and check out my other themes [Stellar Dark ](https://github.com/Lolabird/stellar-dark-theme-trilium ) and [EverForest Ant Dark ](https://github.com/Lolabird/everforest-ant-dark-trilium-theme ) while you're at it!