How to add custom fonts to TriliumNext Docker Server #5902
Answered
by
SiriusXT
UnixTheWanderer
asked this question in
Ideas
-
So I want to simply(or I hope simply) add the opendyslexic font and was wondering how to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
SiriusXT
May 26, 2025
Replies: 0 comments 1 reply
-
Here’s a method for reference: Step 2: Create a CSS note, add the following code, and include the attribute body {
--detail-font-family: 'opendyslexic', sans-serif !important;
--tree-font-family: 'opendyslexic', sans-serif !important;
--bs-body-font-family: 'opendyslexic', sans-serif !important;
--main-font-family: 'opendyslexic', sans-serif !important;
/* --monospace-font-family: 'opendyslexic', sans-serif !important; */
}
@font-face {
font-family: 'opendyslexic';
font-style: normal;
font-weight: 500;
src: url('../../../custom/fonts/opendyslexic.woff2') format('woff2');
} Step 3: Restart Trilium |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
eliandoran
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here’s a method for reference:
Step 1: Add
opendyslexic.woff2
as a file note in Trilium (you can drag it directly into the tree on the left sidebar), then add the following attributes:#originalFileName=opendyslexic.woff2 #customResourceProvider="fonts/opendyslexic.woff2"
Step 2: Create a CSS note, add the following code, and include the attribute
#appCss
: