Customizing formatting of paragraph styles

What I’m trying to do

I am trying to customize the formatting of the default paragraph styles. I would like to set a default style for h1, h2, and so forth, and the same for body text. For example, I would like the body text to be 12px, h1 to be 18px and bold, h2 to be 16 and underlined, etc.

I am fairly new to Obsidian, so I hope there is some way of achieving this.

Things I have tried

I have attempted creating a css snippet and load that into Obsidian, but I cannot identify the correct class to use for body, or the individual headings. Through the inspect tool, the line for a line of body text looks like this: <div class="cm-active cm-line" dir="ltr">Body text</div>.

I can obviously not use the .cm-line class. There is no

tag in the inspect tool, and so that explains why using the tag for my css rules does not work.

Hi. You can use Obsidian dev docs as a resource to find all relevant CSS variables.

1 Like

have a look at the minimal theme settins and style settings plugins- they do this for you and easy to choose options in the plugin menu :slight_smile: