Open AdamCoulterOz opened 1 year ago
@hediet - It's just been added as an option to the native drawio SVG Export Dialog. Is there anything the vscode extension needs to change to integrate it?
https://github.com/jgraph/drawio/issues/3147#issuecomment-1727113034
@hediet can we make it so that .drawio.svg
files can have the dynamic svg theme automatically included? In the desktop app you enable Extras > Appearance > Improve Constrast
, then in export svg you set Appearance = Automatic
. It will save the SVG with the code to auto switch between light and dark based on the browser theme (and system theme).
Due to GitHub dark/white mode usage being that ubiquitous, I support this request with all hands
Can we have the auto export/save for
drawio.svg
files automatically embed the dynamiccss
given by jgraph? This will allow thesvg
file to automatically switch between light and dark theme.https://github.com/jgraph/drawio-github/blob/master/DARK-MODE.md?#L5-L31
To support dark mode in SVG, add the following CSS to the SVG defs section:
An example of how the SVG will then show automatically the light or dark theme based on the OS theme/ vscode theme.
Light
Dark