I’m wondering how I can retain these same colours when exporting to PDF so the output would look exactly like the editor view, and if someone is able to help me regarding the CSS in order to use it as a CSS snippet?
I have no experience with CSS or HTML etc and so I have no idea how to do this. Your help would be greatly appreciated.
I think the general starting point would be to copy the theme’s styles into print styles (I’m guessing that’s what’s used for PDFs because they’re print-oriented).
Obsidian’s theming system recently changed in a big way. That makes it easier to use, but I don’t know if any of the resources on Obsidian’s CSS have updated to reflect the changes. Still, here they are:
A good resource on HTML and CSS in general (nothing specific to Obsidian): MDN Web Docs