terrastruct / d2-obsidian

The official D2 plugin for Obsidian. D2 is a modern diagram scripting language thats turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
204 stars 12 forks source link

[Question] How to set the Theme to dark #36

Open hofq opened 1 year ago

hofq commented 1 year ago

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!

ozoromo commented 1 year ago

I'm interested in this aswell

DarkOnion0 commented 1 year ago

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 😅.

mfiano commented 10 months ago

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.

langshangyuan commented 9 months ago

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. 🤩