mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-17 11:14:12 +01:00
feat(arch): added theme variables for dark and default
This commit is contained in:
@@ -85,6 +85,13 @@ class Theme {
|
|||||||
this.personBorder = this.primaryBorderColor;
|
this.personBorder = this.primaryBorderColor;
|
||||||
this.personBkg = this.mainBkg;
|
this.personBkg = this.mainBkg;
|
||||||
|
|
||||||
|
/* Architecture Diagram variables */
|
||||||
|
this.archEdgeStrokeColor = 'calculated';
|
||||||
|
this.archEdgeArrowColor = 'calculated';
|
||||||
|
this.archEdgeStrokeWidth = 'calculated';
|
||||||
|
this.archGroupBorderStrokeColor = '#FFF';
|
||||||
|
this.archGroupBorderStrokeWidth = 'calculated';
|
||||||
|
|
||||||
/* state colors */
|
/* state colors */
|
||||||
this.labelColor = 'calculated';
|
this.labelColor = 'calculated';
|
||||||
|
|
||||||
|
|||||||
@@ -112,6 +112,13 @@ class Theme {
|
|||||||
this.personBorder = this.primaryBorderColor;
|
this.personBorder = this.primaryBorderColor;
|
||||||
this.personBkg = this.mainBkg;
|
this.personBkg = this.mainBkg;
|
||||||
|
|
||||||
|
/* Architecture Diagram variables */
|
||||||
|
this.archEdgeStrokeColor = 'calculated';
|
||||||
|
this.archEdgeArrowColor = 'calculated';
|
||||||
|
this.archEdgeStrokeWidth = 'calculated';
|
||||||
|
this.archGroupBorderStrokeColor = 'calculated';
|
||||||
|
this.archGroupBorderStrokeWidth = 'calculated';
|
||||||
|
|
||||||
/* state colors */
|
/* state colors */
|
||||||
this.labelColor = 'black';
|
this.labelColor = 'black';
|
||||||
this.errorBkgColor = '#552222';
|
this.errorBkgColor = '#552222';
|
||||||
|
|||||||
Reference in New Issue
Block a user