Closed jboeijenga closed 1 month ago
This seems fairly reasonable, happy to review and merge a PR.
Regarding the code, I guess the return could be simplified to return Object.assign({ theme: 'dark' }, properties.darkConfig)
, which should work with darkConfig
being set and without.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
backstage-plugin-techdocs-addon-mermaid@0.11.0
for the project I'm working on.The issue is that by default the dark theme for the mermaid plugin is not picked up correctly. I think propagating the dark variant to the default mermaid dark theme is the fix.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
By this way of setting the theme it's still possible to overwrite this default with a consumer defined theme.
If needed I can create a PR for this change.