Skip to content

Commit 927e085

Browse files
authored
DFA Dynamic Theme (#65)
1 parent 965ebfe commit 927e085

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

client/src/webview/styles.ts

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,5 +440,44 @@ export function getStyles(): string {
440440
.mermaid .statediagramTitleText {
441441
font-size: 30px!important;
442442
}
443+
.diagram-container .mermaid svg,
444+
.diagram-container .mermaid svg * {
445+
color: var(--vscode-foreground) !important;
446+
}
447+
.diagram-container .mermaid svg text,
448+
.diagram-container .mermaid svg tspan,
449+
.diagram-container .mermaid svg .label,
450+
.diagram-container .mermaid svg .label text,
451+
.diagram-container .mermaid svg .edgeLabel text {
452+
fill: var(--vscode-foreground) !important;
453+
}
454+
.diagram-container .mermaid svg .edgeLabel rect,
455+
.diagram-container .mermaid svg .labelBkg {
456+
fill: var(--vscode-editor-background) !important;
457+
stroke: var(--vscode-panel-border) !important;
458+
}
459+
.diagram-container .mermaid .edgeLabel,
460+
.diagram-container .mermaid .edgeLabel *,
461+
.diagram-container .mermaid .edgeLabel p,
462+
.diagram-container .mermaid .edgeLabel span,
463+
.diagram-container .mermaid .edgeLabel div {
464+
color: var(--vscode-foreground) !important;
465+
background: var(--vscode-editor-background) !important;
466+
}
467+
.diagram-container .mermaid svg rect,
468+
.diagram-container .mermaid svg circle,
469+
.diagram-container .mermaid svg ellipse,
470+
.diagram-container .mermaid svg polygon {
471+
fill: var(--vscode-editor-background) !important;
472+
stroke: var(--vscode-foreground) !important;
473+
}
474+
.diagram-container .mermaid svg path,
475+
.diagram-container .mermaid svg line {
476+
stroke: var(--vscode-foreground) !important;
477+
}
478+
.diagram-container .mermaid svg marker path {
479+
fill: var(--vscode-foreground) !important;
480+
stroke: var(--vscode-foreground) !important;
481+
}
443482
`;
444-
}
483+
}

0 commit comments

Comments
 (0)