How to change the YAML default font?

Hello everyone!
Could it be possible to change the YAML font in the default template?
I’d like to:

  1. reduce the size of the font
  2. change the font.

Thanks for your help.

You can go to Settings -> Apperarance -> CSS-Snippets, open the CSS Snippet folder and create a new file, say CustomFrontmatter.css and then define your own custom style.

Example:

.cm-hmd-frontmatter {
    font-size: 10px;
    font-family: 'Fira Code' !important;
}

Save it and activate the snippet and the frontmatter style should change accordingly.

1 Like

Thank you for your answer @Fenrix. I’ve just found that I could change the YAML font, but not the size, in the font section.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.