Heading Styles #2707
-
To my eyes it's hard to differentiate H2 from H3, H3 from H4, and so on, unless they are close to each other on the screen. So for now, I'm just using H2, H4, and H6. Is there a way I can change the they way headings are displayed (size, color, style, etc.) in Trillium, to make them easier to tell apart? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Yes, you can do this by making a custom theme. First, make a CSS code note and give it the label /* Set font family, size, and color of H2 only */
.note-detail h2 {
font-family: 'Arial';
font-size: 18px;
color: black;
}
/* Change font for multiple headers at once */
.note-detail h3,
.note-detail h4,
.note-detail h5 {
font-family: 'Times New Roman';
}
/* Make H4 bold, italic and underlined*/
.note-detail h4 {
font-weight: bold;
font-style: italic;
text-decoration: underline;
}
/* Give H2 a big underline effect */
.note-detail h2 {
border-bottom: 1px solid green;
}
/* Make H3 a big blue block, change text to white*/
.note-detail h3 {
background-color: #20296e;
color: #fff;
}
/* Add spacing above H2 to separate previous paragraph */
.note-detail h2 {
margin-top: 5px;
} Then you go to the Trilium options on the top-left and select your theme under the Appearance tab. Note that using a custom theme means you can't select the default ones (like dark mode). If you don't like this then set the CSS note's label to Tip for the colors: instead of writing the name, you can write a hex code (example: #006a00 is a dark green). |
Beta Was this translation helpful? Give feedback.
-
Hi, have you checked Options? There's a "Heading style" - Markdown option allows the easiest differentiation: which then looks like this: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Yes, you can do this by making a custom theme.
First, make a CSS code note and give it the label
#appTheme=name_your_theme_here
. Then you write rules to change how headers look. In case you aren't familiar with CSS, here's an example you can change around: