How do I make changes to app.css permanent?

What I’m trying to do

I used command+option+i to open the source view on Mac and pasted this code into app.css:

.HyperMD-list-line.HyperMD-list-line-1 {
  padding-left: 20px !important;
}

.HyperMD-list-line.HyperMD-list-line-2 {
  padding-left: 50px !important;
}

The code works as intended but when I quit Obsidian the changes disappear. I want to be able to paste the code and have the changes be permanent.

Things I have tried

I have tried using command+s to save the file, and in the editor window it appears to save, but with a warning symbol.
Screen Shot 2023-05-07 at 10.30.36 AM

Somehow saving the file doesn’t permanently.

I tried finding app.css in the contents folder for Obsidian, but it did not appear in search.

As far as I know you can’t, and even if you could, any changes made would mostly likely be replaced when Obsidian updates.

Use snippets instead. :+1:t3:

1 Like