Hi all !
I’ve managed to elaborate a theme for Obsidian. I hope it will be of some interest for some users. The ideas and goals were :
- First and foremost : aesthetics and legibility. Hence :
- A “pen on paper” feeling : dark blue ink, very discreet paper background in preview mode.
- Controlled line length : slightly longer in edit mode for comodity, three alphabets in preview.
- Picture size limited in height, in order to not overwhelm text nor fill the display.
- Vertical space compact enough to show as much text as possible on a laptop, yet breathing enough to be kind with semantics — headings levels, multilevel lists, etc.
- Tables with subtle alternating backgrounds and logical vertical alignment.
- Links are evident enough, but otherwise kind of “melted” in the text to allow fluid reading. They are highlighted when hovered with the mouse pointer.
- An easily distinguishable difference between “edit” and “preview” modes :
- The edit mode can be set in a different font — see the source.
- The edit mode has a flat, slightly colored background, while the preview mode has the paper pattern.
- The edit mode is distinguished by a small logo in the lower right corner.
- A more evident signaling of the active pane — a darker, colored, thicker line at the top of the pane, below the file name and the icons. Very useful when you have many panes.
- Transcludes :
- don’t display filename ;
- have a discreet dotted border along their left side — to be easily spotted.
I’m currently using different vaults — don’t ask me why — and I wanted to differentiate them visually. So, I thought of a Post-It analogy : why not use — sparingly — some Post-It colour ? So, you get three versions :
- pale yellow
- pale green
- pale blue
As a “seed” for my effort, I took “Red graphite” because it was rather complete and well commented. I haven’t (yet) touched the dark version. Maybe I’ll do it if there’s sufficient interest from the community. If someone feels like undertaking the task, s/he’s most welcome !
I have put some comments in the source in order to help the aspiring customizers. But most importantly, I’ve put most of the important settings in variables, at the top of the file. It should make further customization easier.
Finally : I’m neither a graphic designer nor a programmer. So my code might look cumbersome to professionals and I don’t even garantee that it’s 100 % correct. But it just works. I kept in mind “very often, functional is good enough”. I would be very glad if someone more adept than myself in CSS would be kind enough to “correct” or maybe improve my modest attempt.
Thank you very much for your interest.
Olivier Spinnler :-{)
PS : to install the stylesheet :
- Activate the “Custom CSS” plugin, if it’s not already done ;
- Rename your choosen CSS version
obsidian.css
(case matters) ; - Put it at the root of your vault, replacing the current
obsidian.css
, should one already be there.
Screen captures with random views of a test document
obsidian — blue.css (35.9 KB) obsidian — green.css (35.9 KB) obsidian — yellow.css (35.9 KB)