johanneswuerbach / backstage-plugin-techdocs-addon-mermaid

Backstage TechDocs Mermaid Addon
MIT License
43 stars 18 forks source link

Dark / light mode configurability #13

Closed x3ro closed 1 year ago

x3ro commented 1 year ago

Hey folks! Thanks for building this plugin. I wanted to show a draft that we're using for what dark / light mode configurability might look like. Usage does not differ much from before:

<TechDocsAddons>
    <Mermaid darkConfig={{ theme: 'dark' }} lightConfig={{ theme: 'default' }} />
<TechDocsAddons>

Let me know what you think :)

Fixes: #10

johanneswuerbach commented 1 year ago

Released as backstage-plugin-techdocs-addon-mermaid@0.4.0, thanks again 😍

x3ro commented 1 year ago

So I've gotten around to trying out the release today, and something seems to be amiss, if I'm not mistaken. As you can see in the screenshot, it doesn't seem like the props update made it into the index.d.ts file, at least that is what it looks like. Any idea what might've gone wrong, or what I'm missing? 😅

image
johanneswuerbach commented 1 year ago

Fixed in v0.4.2, sorry about that :-)