colineckert / obsidian-things

An Obsidian theme inspired by the beautifully-designed app, Things.
MIT License
746 stars 64 forks source link

How can I change font "JetBrains Mono" using snippets? #135

Closed qizhengyang2017 closed 1 year ago

qizhengyang2017 commented 1 year ago

Hello, I'm not used to ligatures, so I want to change "JetBrains Mono" to "JetBrains Mono NL". How can I do this using snippets?

colineckert commented 1 year ago

hey @qizhengyang2017 happy to help. you shouldn't need a snippet. obsidian supports custom font settings under Appearance > Monospace font. if you have it installed on your machine, you should be able to search and add it as i have here:

Screenshot 2023-06-04 at 5 25 16 PM

if you want to try with a snippet, you can try creating a new font.css file and move it to obsidian's snippet directory and add this line to the file to override my font variable:

  --font-monospace-theme: 'JetBrains Mono NL';

let me know if either of these works and if so, please close this issue. thanks!