Skip to content

Dark theme for Trilium Notes and TriliumNext for EverForest and Ant Dark desktop themes.

Notifications You must be signed in to change notification settings

Lolabird/everforest-ant-dark-trilium-theme

Repository files navigation

EverForest Ant Dark (EFAD) Trilium Theme

Dark theme for Trilium Notes (OG Trilium) and TriliumNext inspired by Everforest and Ant Dark.

Text Showcase

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
  • Custom fonts
  • Earthy 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

Installation

  • Download and install the latest version of Trilium or TriliumNext

  • Download the latest release of EverForest Ant Dark

    • OG_EFAD if you use the original Trilium Notes
    • Next_EFAD 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 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)) to the note

    api.addButtonToToolbar({
        title: 'Zen mode',
        icon: 'spa',
        action: function() {
            $("body").toggleClass("zen-mode");
        },
        shortcut: 'alt+z'
    });
  • Reload (Ctrl+R or F5) 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.

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:

/*hide right pane*/
.zen-mode #right-pane {
    display: none !important;
}
OG_EFAD_Zen.mp4

In TriliumNext, you will need to find and comment out this code:

/*show right pane*/
body.zen div.gutter {
    display: block !important;
}
body.zen div#right-pane:not(.hidden-int) {
	display: flex !important;
}
EFAD_Zen.mp4
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.

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, are only available in TriliumNext.

EFAD_Showcase.mp4

Relation Map

Code Note

EFAD_Code_Hover.mp4

Credits and Resources

Fonts

Desktop Themes

Ant Dark

EverForest

Note: There are several EverForest Firefox themes, but the one I personally like and use is listed below.

Zafiro Icon Theme

Note: I only have GitHub and KDE listed below, but this set is also available for other desktop environments as well.

Addons Featured in the Screenshots and Videos

Find more addons made by the Trilium community at Nriver's Awesome Trilium, and check out my other themes Ocean and Stellar Dark while you're at it!