rob
October 30, 2022, 5:56pm
1
Is it possible to use a locally installed font in a custom theme? It doesn’t look like CSS itself supports local fonts that aren’t “served”, but maybe LogSeq has a way?
zicklg
August 7, 2025, 2:11am
2
I know this is an old issue but I just ran into the same problem was able to figure it out. See this comment:
Aha! I found it. The only true documentation is the source code LOL.
Check out this function :
(defn expand-relative-assets-path
"Resolve all relative links in custom.css to assets:// URL"
;; ../assets/xxx -> {assets|file}://{current-graph-root-path}/xxx
Apparently if you have a ../assets/[something] path in your CSS file it will automatically replace that with the path to the assets dir.
So I was able to do something like this in my custom css:
@font-face {
font-family: 'Yozai';
…