diff --git a/client/app/common.css b/client/app/common.css index dad80bb..808a8d0 100644 --- a/client/app/common.css +++ b/client/app/common.css @@ -19,4 +19,52 @@ svg { @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } -} \ No newline at end of file +} + +body.elk-dark-mode { + background-color: #333; + color: #ddd; +} + +.elk-dark-mode a { + color: #60adff; +} + +.elk-dark-mode .btn-success { + color: #fff; +} + +#darkModeToggle { + margin-left: 16px; +} + +#darkModeToggle.front-page { + position: absolute; + top: 16px; + right: 16px; +} + +.elk-dark-mode #example-description pre { + color: #ddd; +} + +.elk-dark-mode .autocomplete-suggestions { + color: #111; +} + +.elk-dark-mode .card-body { + background-color: #333; +} + +.elk-dark-mode #monaco-editor, +.elk-dark-mode #monaco-editor-input, +.elk-dark-mode #monaco-editor-output, +.elk-dark-mode #format-select-row, +.elk-dark-mode #example-graph, +.elk-dark-mode div.sidebar, +.elk-dark-mode #autocomplete, +.elk-dark-mode .autocomplete-suggestions, +.elk-dark-mode #page-theme, +.elk-dark-mode #elk-version { + filter: invert(0.8) hue-rotate(180deg); +} diff --git a/client/app/diagram.css b/client/app/diagram.css index dbf7b9e..8389943 100644 --- a/client/app/diagram.css +++ b/client/app/diagram.css @@ -41,3 +41,26 @@ .mouseover { stroke: #88f; } + +.elk-dark-mode .elknode { + stroke: #ddd; + fill: #55a; +} + +.elk-dark-mode .elkport { + stroke: #ddd; + fill: #88b; +} + +.elk-dark-mode .elkedge { + stroke: #ddd; +} + +.elk-dark-mode .elkedge.arrow { + fill: #ddd; +} + +.elk-dark-mode .elklabel { + stroke: #ddd; + fill: #ddd; +} diff --git a/client/app/index.html b/client/app/index.html index b5a95ee..102c240 100644 --- a/client/app/index.html +++ b/client/app/index.html @@ -6,6 +6,7 @@