From b21fc9fe22ca312a53c0fe23b540d5becbbc60e9 Mon Sep 17 00:00:00 2001 From: NicolasNewman Date: Mon, 22 Apr 2024 10:49:36 -0500 Subject: [PATCH] feat(arch): added theme variables for dark and default --- packages/mermaid/src/themes/theme-dark.js | 7 +++++++ packages/mermaid/src/themes/theme-default.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/packages/mermaid/src/themes/theme-dark.js b/packages/mermaid/src/themes/theme-dark.js index 02104a0ea..d956a7d55 100644 --- a/packages/mermaid/src/themes/theme-dark.js +++ b/packages/mermaid/src/themes/theme-dark.js @@ -85,6 +85,13 @@ class Theme { this.personBorder = this.primaryBorderColor; this.personBkg = this.mainBkg; + /* Architecture Diagram variables */ + this.archEdgeStrokeColor = 'calculated'; + this.archEdgeArrowColor = 'calculated'; + this.archEdgeStrokeWidth = 'calculated'; + this.archGroupBorderStrokeColor = '#FFF'; + this.archGroupBorderStrokeWidth = 'calculated'; + /* state colors */ this.labelColor = 'calculated'; diff --git a/packages/mermaid/src/themes/theme-default.js b/packages/mermaid/src/themes/theme-default.js index d95ccf59e..35fa3d094 100644 --- a/packages/mermaid/src/themes/theme-default.js +++ b/packages/mermaid/src/themes/theme-default.js @@ -112,6 +112,13 @@ class Theme { this.personBorder = this.primaryBorderColor; this.personBkg = this.mainBkg; + /* Architecture Diagram variables */ + this.archEdgeStrokeColor = 'calculated'; + this.archEdgeArrowColor = 'calculated'; + this.archEdgeStrokeWidth = 'calculated'; + this.archGroupBorderStrokeColor = 'calculated'; + this.archGroupBorderStrokeWidth = 'calculated'; + /* state colors */ this.labelColor = 'black'; this.errorBkgColor = '#552222';