diff --git a/dist/mermaid.dark.css b/dist/mermaid.dark.css index 116a62e46..c522857df 100644 --- a/dist/mermaid.dark.css +++ b/dist/mermaid.dark.css @@ -8,78 +8,78 @@ .node circle, .node ellipse, .node polygon { - fill: #ECECFF; - stroke: #CCCCFF; + fill: #BDD5EA; + stroke: #81B1DB; stroke-width: 1px; } .edgePath .path { - stroke: #333333; + stroke: lightgrey; } .edgeLabel { background-color: #e8e8e8; } .cluster rect { - fill: #ffffde !important; + fill: #6D6D65 !important; rx: 4 !important; - stroke: #aaaa33 !important; + stroke: rgba(255, 255, 255, 0.25) !important; stroke-width: 1px !important; } .cluster text { fill: #F9FFFE; } .actor { - stroke: #CCCCFF; - fill: #ECECFF; + stroke: #81B1DB; + fill: #BDD5EA; } text.actor { fill: black; stroke: none; } .actor-line { - stroke: grey; + stroke: lightgrey; } .messageLine0 { stroke-width: 1.5; stroke-dasharray: "2 2"; marker-end: "url(#arrowhead)"; - stroke: #333; + stroke: lightgrey; } .messageLine1 { stroke-width: 1.5; stroke-dasharray: "2 2"; - stroke: #333; + stroke: lightgrey; } #arrowhead { - fill: #333; + fill: lightgrey; } #crosshead path { - fill: #333 !important; - stroke: #333 !important; + fill: lightgrey !important; + stroke: lightgrey !important; } .messageText { - fill: #333; + fill: lightgrey; stroke: none; } .labelBox { - stroke: #CCCCFF; - fill: #ECECFF; + stroke: #81B1DB; + fill: #BDD5EA; } .labelText { - fill: black; + fill: #323D47; stroke: none; } .loopText { - fill: black; + fill: lightgrey; stroke: none; } .loopLine { stroke-width: 2; stroke-dasharray: "2 2"; marker-end: "url(#arrowhead)"; - stroke: #CCCCFF; + stroke: #81B1DB; } .note { - stroke: #aaaa33; + stroke: rgba(255, 255, 255, 0.25); fill: #fff5ad; } .noteText { @@ -128,7 +128,7 @@ text.actor { shape-rendering: crispEdges; } .grid .tick text { - fill: #ccc; + fill: lightgrey; opacity: 0.5; } .grid path { @@ -175,11 +175,11 @@ text.actor { } .taskTextOutside0, .taskTextOutside2 { - fill: #ccc; + fill: lightgrey; } .taskTextOutside1, .taskTextOutside3 { - fill: #ccc; + fill: lightgrey; } /* Active task */ .active0, @@ -239,7 +239,7 @@ text.actor { .doneCritText1, .doneCritText2, .doneCritText3 { - fill: #323D47 !important; + fill: lightgrey !important; } .activeCritText0, .activeCritText1, @@ -250,7 +250,7 @@ text.actor { .titleText { text-anchor: middle; font-size: 18px; - fill: #ccc; + fill: lightgrey; } /* @@ -267,8 +267,8 @@ div.mermaidTooltip { padding: 2px; font-family: 'trebuchet ms', verdana, arial; font-size: 12px; - background: #ffffde; - border: 1px solid #aaaa33; + background: #6D6D65; + border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 2px; pointer-events: none; z-index: 100; diff --git a/src/less/dark/gantt.less b/src/less/dark/gantt.less index 8b10f2de0..39735635d 100644 --- a/src/less/dark/gantt.less +++ b/src/less/dark/gantt.less @@ -123,7 +123,7 @@ shape-rendering: crispEdges; } .doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 { - fill:@taskTextDarkColor !important; + fill:@taskTextLightColor !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { fill:@taskTextDarkColor !important; diff --git a/src/less/dark/sequenceDiagram.less b/src/less/dark/sequenceDiagram.less index 1139df345..1e37a086f 100644 --- a/src/less/dark/sequenceDiagram.less +++ b/src/less/dark/sequenceDiagram.less @@ -45,12 +45,12 @@ text.actor { } .labelText { - fill:@labelTextColor; + fill: @darkTextColor; stroke:none; } .loopText { - fill:@labelTextColor; + fill: @labelTextColor; stroke:none; } @@ -72,4 +72,4 @@ text.actor { stroke:none; font-family: 'trebuchet ms', verdana, arial; font-size:14px; -} \ No newline at end of file +} diff --git a/src/less/dark/variables.less b/src/less/dark/variables.less index 5037df012..0206f8949 100644 --- a/src/less/dark/variables.less +++ b/src/less/dark/variables.less @@ -1,8 +1,11 @@ -@mainBkg: #ECECFF; -@secondBkg: #ffffde; -@lineColor: #333333; -@border1:#CCCCFF; -@border2:#aaaa33; +@mainBkg: #BDD5EA; +@secondBkg: #6D6D65; +@mainContrastColor: lightgrey; +@darkTextColor: #323D47; +@lineColor: @mainContrastColor; +@border1: #81B1DB; +@border2: rgba(255, 255, 255, 0.25); + /* Flowchart variables */ @nodeBkg:@mainBkg; @@ -21,14 +24,14 @@ @actorBorder: @border1; @actorBkg: @mainBkg; @actorTextColor: black; -@actorLineColor: grey; +@actorLineColor: @mainContrastColor; -@signalColor: #333; -@signalTextColor: #333; +@signalColor: @mainContrastColor; +@signalTextColor: @mainContrastColor; @labelBoxBkgColor: @actorBkg; @labelBoxBorderColor: @actorBorder; -@labelTextColor: @actorTextColor; +@labelTextColor: @mainContrastColor; @noteBorderColor: @border2; @noteBkgColor: #fff5ad; @@ -39,22 +42,22 @@ @sectionBkgColor2: #EAE8B9; @taskBorderColor: rgba(255, 255, 255, 0.5); -@taskBkgColor: #BDD5EA; -@taskTextColor: @taskTextDarkColor; +@taskBkgColor: @mainBkg; +@taskTextColor: @darkTextColor; @taskTextOutsideColor: @taskTextLightColor; @activeTaskBorderColor: rgba(255, 255, 255, 0.5); @activeTaskBkgColor: #81B1DB; -@gridColor: lightgrey; +@gridColor: @mainContrastColor; -@doneTaskBkgColor: lightgrey; +@doneTaskBkgColor: @mainContrastColor; @doneTaskBorderColor: grey; @critBorderColor: #E83737; @critBkgColor: #E83737; -@taskTextLightColor: #ccc; -@taskTextDarkColor: #323D47; +@taskTextLightColor: @mainContrastColor; +@taskTextDarkColor: @darkTextColor; @todayLineColor: #DB5757; diff --git a/test/gantt-dark-theme.html b/test/gantt-dark-theme.html deleted file mode 100644 index 829923d36..000000000 --- a/test/gantt-dark-theme.html +++ /dev/null @@ -1,162 +0,0 @@ - - -
- - - - - - - - - -