A beautiful, opinionated, material design inspired dark mode theme for Trilium with extra features and OCD level attention to detail and style coverage.
- Material Design Based
- Comfortable Contrast
- Maximum Readability
- Dark Mode Friendly Font
- Consistent Design
- Including fixes to alignment and layout issues
- Custom Code View Styling
- Dark Mode Native
- Ligature Font
- Complete Style Coverage
- More than even built in default themes and dark mode!
- New Features
- Zen Mode - focus solely on the note at hand
Supported Trilium version: 0.50.2. Please report any bugs or missing style coverage.
Unsupported: Everything else. However, Midnight was initially developed against 0.49.5, versions greater then that will probably work but only latest supported. Early versions than 0.49.5 not tested.
Technically none, Midnight will try and fetch the fonts it uses from the web. For offline use, or if any problems encountered, please manually install the following fonts:
- Inter - A beautiful font designed specifically for screen use and works well in dark mode compared to default Trilium fonts.
- FiraCode - The best programming font, great dark mode look and programming ligatures.
- See prerequisites to guarantee font use even when offline.
- Create a new note in Trilium, store it anywhere you would like.
- Change note type to CSS.
- Paste in the raw contents of midnight.css.
- Add an owned attribute of
#appTheme=Midnight
to the note. - Click the Trilium icon in the top left, select Options, and under theme select Midnight.
Enable the optional Zen Mode. Remember the ALT + Z
key combo to exit Zen Mode!
- Create a new note in Trilium, store it anywhere you would like.
- Change note type to JS Frontend.
- Paste in the raw contents of zenmode.js.
- Add an owned attribute of
#run=frontendStartup
to the note. - Click the Trilium icon in the top left, select Reload frontend, or press
F5
to reload the front end.
The code is laid out and commented for your easy customization. Change what you want, delete what you want. Let me know anything interesting you think is valuable for the core. Pull requests welcome!
As described, this is my daily theme and is highly opinionated to my desires. I created a "highly opiniated" section of the code for those changes I've made that I expect may be controversial. This will allow easy removal if you do not like. Here they are so far:
- By default, in Trilium notes have a max-width of 1200px. Midnight will override this to 100% with a slight margin for gutter comfort. If you don't like your notes too wide, feel free to remove.
By default, "Extreme Zen Mode" is active, meaning Zen Mode removes everything but the note contents. If you would prefer that more of the note UI, such as attributes, tabs, splitter, etc, remain visible, comment out or remove the Extreme Zen Mode section and uncomment the Zen Mode section.
If for some reason you want to donate for this, I'm flattered but instead please consider donating to or sponsoring zadam, the developer of Trilium.