Exporting PNG or SVG in light mode #23
-
DescriptionWhen running export-diagrams.js against the structurizr/lite container, the PNG or SVG is created with a dark background due to the default style. Is it possible to export these diagrams in light mode (ie: white background)? Thank you. PriorityLow (I have no budget and there's no rush, please add this feature for free) More informationNo response |
Beta Was this translation helpful? Give feedback.
Answered by
choonchernlim
May 17, 2025
Replies: 1 comment
-
I think I got it: await page.evaluate(() => {
structurizr.ui.setRenderingMode(structurizr.ui.RENDERING_MODE_LIGHT);
structurizr.diagram.setDarkMode(structurizr.ui.isDarkMode());
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
choonchernlim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I got it: