Skip to content

Commit ee5dff7

Browse files
TatoniMatteoilgrosso
authored andcommitted
[SYNCOPE-1989] fix dark-theme for Console (#1492)
1 parent 3adc9bc commit ee5dff7

18 files changed

Lines changed: 1120 additions & 605 deletions

File tree

‎client/idm/console/pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ under the License.
6969
<inherited>true</inherited>
7070
<configuration>
7171
<args>
72+
<arg>--load-path=${rootpom.basedir}/client/idrepo/common-ui/src/main/resources/META-INF/resources/ui-commons/css</arg>
7273
<arg>${basedir}/src/main/resources/META-INF/resources/css:${project.build.outputDirectory}/META-INF/resources/css</arg>
7374
</args>
7475
</configuration>
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
:root {
21+
/*
22+
* Topology
23+
*/
24+
--topology-node-border: rgba(15, 23, 42, 0.14);
25+
--topology-node-shadow: 0 10px 28px rgba(2, 6, 23, 0.10);
26+
--topology-node-shadow-hover: 0 14px 34px rgba(2, 6, 23, 0.14);
27+
28+
--topology-root-bg: rgba(22, 163, 74, 0.18);
29+
--topology-cs-bg: rgba(14, 165, 233, 0.12);
30+
--topology-conn-bg: rgba(139, 92, 246, 0.10);
31+
--topology-conn-errored-bg: rgba(244, 63, 94, 0.18);
32+
--topology-res-bg: rgba(245, 158, 11, 0.14);
33+
34+
/*
35+
* Topology toolbar
36+
*/
37+
--topology-toolbar-bg: rgba(255, 255, 255, 0.92);
38+
--topology-toolbar-bg-hover: rgba(255, 255, 255, 0.98);
39+
--topology-toolbar-border: rgba(15, 23, 42, 0.10);
40+
--topology-toolbar-fg: rgba(15, 23, 42, 0.78);
41+
--topology-toolbar-fg-hover: rgba(15, 23, 42, 0.92);
42+
--topology-toolbar-shadow: 0 8px 18px rgba(2, 6, 23, 0.10);
43+
--topology-toolbar-shadow-hover: 0 10px 22px rgba(2, 6, 23, 0.14);
44+
--topology-focus-ring: rgba(14, 165, 233, 0.25);
45+
46+
/*
47+
* Topology labels
48+
*/
49+
--topology-label-bg: #fff;
50+
--topology-label-color: #444;
51+
--topology-label-border: #808080;
52+
--topology-label-hover-bg: #5c96bc;
53+
--topology-label-hover-color: #fff;
54+
--topology-label-hover-border: #fff;
55+
56+
/*
57+
* Topology tooltip
58+
*/
59+
--topology-tooltip-bg: #eee;
60+
--topology-tooltip-color: #000;
61+
--topology-tooltip-border: #bbb;
62+
}
63+
64+
[data-bs-theme="dark"] {
65+
/*
66+
* Application background: #2B3035
67+
*
68+
* Surfaces are deliberately lighter to maintain contrast.
69+
*/
70+
--topology-node-border: rgba(255, 255, 255, 0.22);
71+
--topology-node-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
72+
--topology-node-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.52);
73+
74+
--topology-root-bg: rgba(55, 210, 115, 0.30);
75+
--topology-cs-bg: rgba(70, 185, 235, 0.27);
76+
--topology-conn-bg: rgba(160, 120, 245, 0.25);
77+
--topology-conn-errored-bg: rgba(245, 90, 105, 0.36);
78+
--topology-res-bg: rgba(255, 195, 65, 0.30);
79+
80+
--topology-toolbar-bg: rgba(65, 71, 77, 0.96);
81+
--topology-toolbar-bg-hover: rgba(78, 85, 92, 0.98);
82+
--topology-toolbar-border: rgba(255, 255, 255, 0.18);
83+
--topology-toolbar-fg: rgba(245, 247, 249, 0.90);
84+
--topology-toolbar-fg-hover: #fff;
85+
--topology-toolbar-shadow: 0 8px 18px rgba(0, 0, 0, 0.40);
86+
--topology-toolbar-shadow-hover: 0 10px 22px rgba(0, 0, 0, 0.52);
87+
--topology-focus-ring: rgba(80, 190, 240, 0.45);
88+
89+
--topology-label-bg: #414950;
90+
--topology-label-color: #f5f5f5;
91+
--topology-label-border: #9aa3ab;
92+
--topology-label-hover-bg: #5c9bc3;
93+
--topology-label-hover-color: #fff;
94+
--topology-label-hover-border: #d9e2e8;
95+
96+
--topology-tooltip-bg: #4a525a;
97+
--topology-tooltip-color: #fff;
98+
--topology-tooltip-border: #aeb7bf;
99+
}

‎client/idm/console/src/main/resources/META-INF/resources/css/idmTopology.scss‎

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)