# How to change the monospace font

**URL:** <https://forum.obsidian.md/t/how-to-change-the-monospace-font/5438>\
**Category:** Basement\
**Tags:** custom-css\
**Created:** [September 9, 2020, 2:47am UTC](https://forum.obsidian.md/t/how-to-change-the-monospace-font/5438 "2020-09-09T02:47:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GreenFlux](https://forum.obsidian.md/user_avatar/forum.obsidian.md/greenflux/32/3787_2.png) [@GreenFlux](https://forum.obsidian.md/u/GreenFlux)\
**Post date:** [September 9, 2020, 12:04pm UTC](https://forum.obsidian.md/t/how-to-change-the-monospace-font/5438/2 "2020-09-09T12:04:19Z")

</div>

Hi @mano,

### You can edit the `obsidian.css` file in the root of your Vault.

Each Vault has a different css file, and every time you select a new theme, this file is replaced.

I use Sublime Text with a few add-ons for previewing color codes, and picking new colors.

 ![Screen Shot 2020-09-09 at 7.59.26 AM](https://forum.obsidian.md/uploads/default/original/2X/5/526999b1f3ab246157c26e7aebf554abb6d36c42.jpeg)

I _think_ this is the section that needs changed to replace the monospace font:

```auto
.markdown-source-view { 
    font-family: 'roboto mono', monospace; 
    color: white;
}

```

If you screw up the template, just change the theme back to Red Graphite to get the original file back. And once you have the edited version the way you want, be sure to make a backup so you don’t lose it next time the theme is changed! 😉

---

_[View the full topic](https://forum.obsidian.md/t/how-to-change-the-monospace-font/5438)._
