holroy
April 17, 2023, 6:48pm
2
You should be able to change stuff like the background of a card using cssClass
in the frontmatter, in combination with some CSS magic. See links below for some starter information on how to do CSS magic in general, and more specific related to the canvas.
Obsidian CSS Quick Guide
Hi friends! CSS in Obsidian can be confusing to get into, so this is a guide to get you started with information on the tools, methods, and some background knowledge!
Let’s get started by looking at how you can look behind the curtain of Obsidian’s visuals.
The Developer Console
Obsidian is technically like a website. As such, you can view the source like any other browser.
While you are inside the Obsidian window, you can press ctrl+shift+i to bring up the develope…
[image]
While canvas is already a very useful tool and an excellent addition to Obsidian, it’s still missing some basic customization options. Until these features are added, this guide will provide some basic CSS to extend these options. Simply add any of these code examples into a new CSS Snippet .
Targeting specific canvas elements
To ensure our modifications don’t apply to every single element on our canvas, we need to add a custom CSS class to the YAML header of the note we have included …