I’ve been building my own theme based out of other community themes. However I’d like to access the original/ default obsidian.css that comes with a new default vault.
I know that when installing a community theme the obsidian.css goes into the vault and by installing a new theme that new obsidian.css would override the previous one.
However, when I create a new vault, or delete a community theme obsidian.css from my vault, there is no default obsidian.css in the vault.
I couldn’t find the original obsidian.css in .obisidian either.
More than anything I’d like to see the original obsidian.css to make sure I’m structuring my css in the best way possible.
I must be missing something here, thank you for your time to read this. I really appreciate any help
Thank you!
PS: Apologies for saying obsidian.css so many times lol
So, are you able to see or edit or preview files?
If you can there must be a CSS.
I’m assuming it’s not hidden.
iirc, the Help vault always defaults to the default CSS every time it’s opened.
Hey, thanks for looknig into it, I’m able to edit all files correctly in the vault, community themes work, obsidian.css only shows once I set up a community theme, but other wise obsidian.css is not there when I create a new vault
Regarding the Help vault, that one doesn’t show obsidian.css either
I checked in linux in ~/.config/Obsidian/ and obsidian.css is not there either.
It’s really strange, since the help vault does have the default theme (black and purple text) but I can’t find the default obsidian.css anywhere
Seems like I have tested a theme that somehow must have corrupted the generic background color scheme, since no matter what theme I try the background theme is grey. So, where in the ‘front-end assets’ do I find the original css. Also, deleting the ‘app’ and reinstalling doesn’t work, most likely because it’s an electron app.
Reviving this thread. I’ve deleted some unwanted themes from the folder, and when setting my theme to “none”, I still have a lingering Traffic Lights theme. This persists when I toggle community theme, many appearance and editor settings, and restarting the app. Any ideas out there?
Your screenshot shows “Apply custom CSS” switched on. There may still be an file “obsidian.css” somewhere between your note files in the root folder of your vault.
This is how CSS worked in Obsidian in the beginning before the vault/obsidian/… folder structure was introduced.
A few things to mention:
I had legacy mode endabled but then i disabled it to see if the toggle appears (unfortunately not…)
I also had Safe Mode turned off as i want 3rd party plugins and also turned this off as i wanted to have that toggle.
EDIT: Got it by entering developer menu (Windows: Ctrl + Shift + I), entering “Sources” tab → right click on app.css → Save As… → And just save it somewhere.
I was searching obsidian.css location and see this post, if you are like me trying to put a little piece of css code to override theme color, here is what I see and do:
see vault/.obsidian/snippets instruction? I create different css files and put them there, name can be anything you like, click refresh, then enable. Your customized style will be in effect.