Export to PDF in a theme other than the current theme

Use case or problem

If you want to export in a specific theme (ex. a more professional one) you currently have to change your system theme and this is especially inconvenient if you’ve made a custom CSS that you’ll need to copy and paste in after you export.

Proposed solution

Provide a prompt after clicking export to pdf that lets you pick which theme you want it to export in.

Current workaround (optional)

Changing the system theme, exporting, then changing it back.


Woah, this is a great idea - it’ll make it so much easier to make things look the way you want, especially if you use a funky theme like 80s Neon(which I think is too bright and in your face), but want the pdf to be professional


Exactly! (I love 80s Neon!)

1 Like

Nested vaults.

Set up a top vault - call it PDF export for example. Set it up with the CSS you want to export in.
Put your existing vault inside it. When you are in your top vault, your existing vault will just be a sub-folder.
You will be able to open all files in both vaults, even at the same time, so very easy to do all your editing one and just use the other for PDF export.


Interesting idea! Thanks for the workaround!

I think you’ll find it faster than having a switch to choose CSS.

It may be faster but that isn’t a feature - that is simply a clunky workaround and it is great to have but it would be much better as an included feature in Obsidian.

Though even I appreciate the workaround, since this an issue I was having!

I think multiple custom CSS in the roadmap can be good solution too.

1 Like

Woah, i didn’t see that before! Thanks, I am really curious to see how that will work

1 Like

just messing with it but i can change the pdf background color just fine

@media print { .print .markdown-preview-view { -webkit-print-color-adjust: exact; background-color:blue; }

Naturally people dont want to waste ink so chromium strips your theme CSS when you “print” but you can specifically add it back via @media print { }

Anything new on that?

1 Like