d2-obsidian icon indicating copy to clipboard operation
d2-obsidian copied to clipboard

[Question] How to set the Theme to dark

Open hofq opened this issue 1 year ago • 4 comments

Hey there,

i want to set my Themes in Obsidian to dark. Sadly i have not found any setting for this in the Plugin's Settings. Is there a way to override it or to add such an option?

Thanks!

hofq avatar Jul 12 '23 21:07 hofq

I'm interested in this aswell

ozoromo avatar Jul 25 '23 20:07 ozoromo

At the time being, the only way to set a dark theme (even through the cli) is to set a fallback theme ID as the dark one. Therefore, you can just change the Theme ID settings in the plugin config to 200 (the only dark theme available to my knowledge according to the doc). I hoped I helped and didn't make any mistakes 😅.

DarkOnion0 avatar Aug 06 '23 08:08 DarkOnion0

I am curious if @berniexie or other contributors could weigh in to describe how difficult a change, and if anything would need to occur in D2 proper, for us to be able to have seamless background colors that match our Obsidian Reading view background as per our Obsidian theme.

mfiano avatar Nov 12 '23 22:11 mfiano

I guess there is an easy work around for the theme customization problem. I wish the plugin could allows users to specify the theme IDs for light theme and dark theme differently. Then if users select the base color scheme as Adapt to system option, the D2 Diagram can change as well. I think this settings could make the D2 diagram integrate more closely to the Obsidian. 🤩

langshangyuan avatar Dec 07 '23 16:12 langshangyuan