I was trying to change the left side and right side background colours for the Ukiyo theme.
In doing so (and even if it was intended to be used for the “minimal theme”) I copied a line of code that someone implied could do the trick, and pasted it into the Ukiyo theme .css
The results were unexpected.
Here is the code I used, except I removed the part about the center column, and changed the words “black” for an HTML colour code.
I applied it at the end of Ukyio’s light theme section in the .css and saved it.
The theme went black and white. So I simply deleted the lines to go back to the original, thinking it would restore the colors that were there before.
But the Ukiyo theme stayed black and white.
Now I want to uninstall and re-install Ukiyo to have everything reset, but the uninstall button does not work anymore. Just for this theme. I can install/uninstall all the others.
And for next time, it’s best to use a CSS snippet to alter the look of Obsidian instead of changing the theme’s CSS file directly.
In addition to the above link, here’s what the Discord bot says:
Custom CSS lets your completely customize how your Obsidian looks.
To use a custom theme created by our community, go to Settings > Appearance. From there, you can choose among a list of community themes.
You can further customize the look of Obsidian by using CSS snippets. To create a snippet, go to Settings > Appearance > CSS snippets and click the folder icon. After saving a CSS file to that folder enable the snippet in the settings.
We recommend editing the CSS file using something like Visual Studio Code or Sublime Text to properly highlight and format it, as invalid CSS will not work.