When d2 source contains d2-config section, the style and layout mentioned in d2 file are not working when d2 preview option or d2 compile to SVG is selected from vscode menu. It works only when the compilation is done outside vs code editor.
vars: {
d2-config: {
theme-id: 4
dark-theme-id: 300
layout-engine: elk
}
}
1
2
3
4
5
When d2 source contains d2-config section, the style and layout mentioned in d2 file are not working when d2 preview option or d2 compile to SVG is selected from vscode menu. It works only when the compilation is done outside vs code editor.
vars: {
d2-config: {
theme-id: 4
dark-theme-id: 300
layout-engine: elk
}
}
1
2
3
4
5