I am working on my own theme for what I want, and custom folder colors is fine enough, but I have an issue with the folders. When they are fully expanded, folders too far off screen aren’t rendered in the DOM, which is fine enough, but as I scroll down, the earlier folders are removed from the DOM and that causes all the current folders to suddenly change colors.
Is there a way for tell Obsidian (or the browser) to just keep everything off screen and not erase it from the DOM? This would solve all my problems rn. For reference, the AnuPpuccin theme does the same thing.
I agree, this is important for performance. I was hoping for a method to specify it on a specific element (i.e just the folder tree).
No doubt it has been brought up and I tried searching beforehand, but I only really found people showing how to achieve rainbow colors with nth-child, nothing DOM related. I considered ways information may be extracted on folder loading and have the color cached on root folder name, but all of this is beyond the scope of css and I have no experience with building extensions.
P.S it would be nice if the note header that shows the file path includes a data-path variable hint
For now, and for anyone else looking to do it in a different way, I have hard coded it based on the data-path value. i.e