Is it possible to give users a way to modify the default CSS file? not via the modification of the “obsidian.css” file in the vault root folder.
Update on Oct 1, 2020:
Yes, I can use “obsidian.css” file to change the default style; however, if I have many vaults, I need to add “obsidian.css” file for each vault. If I can modify the default CSS file directly, the style will be kept for all vaults.
I actually think, that opening that can of worms can actually be detrimental.
I mean I am not opposed to tweaks to the default design, but with the vast possibilities of CSS, that would be a precedent to ask for everything. What is the issue with using CSS for it?
I get you @Kornfried and I agree with the fact that it would open a can of worms and it’s not an easy thing to implement.
Personally as a non-programmer I’ve gotten very interested in stuff to the point where for the past 2 years I’ve learned html and css pretty well, so I have no problem with going to the obsidian.css at this point.
Although, I do remember when I didn’t know anything about css and how daunting things like these seemed. It’s definitely possible to copy paste code as a complete beginner from the forum, but learning to change things yourself take time to learn.
Even thought using other people’s themes is often good enough for most, having some user-friendly customization would be a great advantage, and something that can attract more people to obsidian.
These are all my personal thoughts, not sure if @hqgu asked this from a similar point of view.
It’s an interesting discussion though, I’d love to see what beginners and pros think about this
Open any text editor and create a file called obsidian.css in your vault folder.
Next, you have to find the element that you want to change. Usually, you’d use the developer tools, within the app for that. In your case, this would be what you want. You can simply just copy/paste:
into the obsidian.css
This will pretty much change the whole basic font color to a wheaty color in the dark theme. You can of course choose another color, usually in hex code. The hex code for wheat would be #f5deb3 for example.
In addition to changing the CSS, I personally highly recommend installing a color management app like Flux which makes the colors on your monitor warmer and more bearable. It has saved me a lot of eye strain over the years. It removes the harsh blues from your screen. It’s within the first 3 things I install when I have a new computer.
And if you are doing anything that is very color-sensitive, you can disable it temporarily, or per-app.
if you have lots of vaults, then you have no need for links between them.
So you can copy them all into a Top folder and open that as a vault, modifying only the CSS for that vault. You can then read all your notes with your preferred CSS without having to copy the file to other folders. This does assume no files have the same name. And you can modify the files safely as long as you don’t make links between one subvault and another.