Hi, thank you for posting this, but when I follow your instructions, I see no changes. I’ve tried clearing the cache, private window etc, but nada. The file is in the root directory, Obsidian prefixes the file with a CSS label and I have named the file publish.css and published that file.
@adamantski Sorry for delay. I don’t check forums enough. If helpful, see screenshot. For this “Test” vault, I copied .obsidian > themes > Comfort color dark.css to “Test”–just copied it from hidden directory to main vault. I then renamed it “publish.css” as you’ll see. Then reopened Obsidian and this vault. Pressed Publish changes, chose this “publish.css” file in New row (perhaps check Changed), clicked Publish. Then cleared browser cache and reloaded page.
I’ve duplicated this with success three times now for different published vaults. I do hope this helps. Please let me know. Kind regards,
Thanks. Great info but doesn’t work in my case, using the Typomagical theme. I did rename a copy of it ‘publish.css’ and put it in the vault’s top-level folder before re-publishing. I emptied the cache in two browsers (Edge Chromium and Safari) to be sure.
@MarkCameronHarris Sorry this didn’t work for you. Unfortunately, I don’t know if I can help beyond what I’ve already posted here. Perhaps others, experts, in the forum can help. I know nothing about CSS or themes. etc. so I just kept trying and troubleshooting until it worked. This really should be default behavior, eg. Obsidian Publish uses users’ themes.
Hi! I was having this same issue. In the theme (I used Pink Topaz) go advanced and CSS Snippets. Copy a file of the css theme and rename it publis.css and paste it there. Then go to the main folder where you have everything and make another copy of the theme and rename it as publish.css.