How to change font size of the File Explorer?

What I’m trying to do

Be able to change the font size of the file explorer

Things I have tried

I have tried what mention in other 2 posts, which give both a .CSS solution. I used both but non worked (obsidian recognized the files and I activated them but not effect appears)

.nav-file-title, .nav-folder-title {
font-size: 11px;
font-family: consolas;
}

.workspace-leaf-content[data-type=“file-explorer”] * {
font-size: 20px;
}

You basically have to change the --nav-item-size Obsidian property. I, for example, have the following in my custom CSS snippet:

:root, body, .view-content {
  --nav-item-size: 0.8em; 
  --line-height-tight: 1em; /* adjust line-height */
}

And it changes the font size & line height of the entire file tree’s contents. You can find more of such properties here:

1 Like

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