mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 12:42:28 +08:00
1.2 KiB
1.2 KiB
Custom app-wide CSS
It is possible to provide a CSS file to be used regardless of the theme set by the user.
Seeing the changes
Adding a new app CSS note or modifying an existing one does not immediately apply changes. To see the changes, press Ctrl+Shift+R to refresh the page first.
Example use-case: customizing the printing stylesheet
When printing a document or exporting as PDF, it is possible to adjust the style by creating a CSS note that uses the @media
selector.
For example, to change the font of the document from the one defined by the theme or the user to a serif one:
@media print {
body {
--main-font-family: serif !important;
--detail-font-family: var(--main-font-family) !important;
}
}