Skip to content

Commit 0dc7993

Browse files
guguclaude
andcommitted
Update color scheme to match rocketadmin.com (#1537)
Replace hardcoded dark-mode hex values with centralized --ra-* CSS custom properties and update the Material palette to blue/teal branding. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b217614 commit 0dc7993

30 files changed

Lines changed: 3248 additions & 3266 deletions

frontend/src/app/app.component.css

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
@media (prefers-color-scheme: dark) {
1414
.main-menu-container {
15-
--mat-sidenav-content-background-color: #191919;
16-
--mat-sidenav-container-background-color: #191919;
17-
--mat-sidenav-container-divider-color: #303030;
15+
--mat-sidenav-content-background-color: var(--ra-bg);
16+
--mat-sidenav-container-background-color: var(--ra-bg);
17+
--mat-sidenav-container-divider-color: var(--ra-border);
1818
}
1919
}
2020

@@ -26,13 +26,13 @@
2626
position: sticky;
2727
top: 0;
2828
flex-shrink: 0;
29-
background-color: #212121;
29+
background-color: var(--ra-nav-bg);
3030
z-index: 3;
3131
}
3232

3333
@media (prefers-color-scheme: dark) {
3434
.nav-bar {
35-
border-bottom: 1px solid #303030;
35+
border-bottom: 1px solid var(--ra-nav-border);
3636
}
3737
}
3838

@@ -311,22 +311,16 @@
311311

312312
@media (prefers-color-scheme: dark) {
313313
.footer {
314-
background: #212121;
315-
border-top: 1px solid #303030;
314+
background: var(--ra-nav-bg);
315+
border-top: 1px solid var(--ra-border);
316316
}
317317
}
318318

319319
.footer__text {
320-
color: rgba(0, 0, 0, 0.5);
320+
color: var(--ra-text-muted);
321321
font-size: 0.875em;
322322
}
323323

324-
@media (prefers-color-scheme: dark) {
325-
.footer__text {
326-
color: #fff;
327-
}
328-
}
329-
330324
::ng-deep .visually-hidden {
331325
position: absolute !important;
332326
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
@@ -351,12 +345,6 @@
351345
}
352346

353347
.user-email {
354-
color: rgba(0, 0, 0, 0.54);
348+
color: var(--ra-text-muted);
355349
font-size: 12px;
356350
}
357-
358-
@media (prefers-color-scheme: dark) {
359-
.user-email {
360-
color: rgba(255, 255, 255, 0.7);
361-
}
362-
}
Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,45 @@
11
.connection-error-message {
2-
display: block;
3-
color: var(--mat-sidenav-content-text-color);
4-
margin-bottom: 20px;
2+
display: block;
3+
color: var(--mat-sidenav-content-text-color);
4+
margin-bottom: 20px;
55
}
66

77
.docs-notification {
8-
display: block;
9-
background-color: var(--bg-color);
10-
color: var(--mat-sidenav-content-text-color);
11-
margin-bottom: 20px;
12-
padding: 8px 12px;
8+
display: block;
9+
background-color: var(--bg-color);
10+
color: var(--mat-sidenav-content-text-color);
11+
margin-bottom: 20px;
12+
padding: 8px 12px;
1313
}
1414

15-
@media (prefers-color-scheme: dark) {
16-
.docs-notification {
17-
--bg-color: #292929;
18-
}
19-
}
20-
21-
@media (prefers-color-scheme: light) {
22-
.docs-notification {
23-
--bg-color: #F4F4F4;
24-
}
15+
.docs-notification {
16+
--bg-color: var(--ra-surface);
2517
}
2618

2719
.docs-link {
28-
color: #EF6C00;
29-
font-weight: 500;
30-
text-decoration: none;
20+
color: #ef6c00;
21+
font-weight: 500;
22+
text-decoration: none;
3123
}
3224

3325
.connection-error__actions {
34-
display: flex;
35-
justify-content: space-between;
26+
display: flex;
27+
justify-content: space-between;
3628
}
3729

3830
.main-actions {
39-
display: flex;
40-
gap: 12px;
31+
display: flex;
32+
gap: 12px;
4133
}
4234

4335
.link {
44-
display: inline-block;
45-
color: var(--color-primaryPalette-500);
46-
margin-top: 15px;
36+
display: inline-block;
37+
color: var(--color-primaryPalette-500);
38+
margin-top: 15px;
4739
}
4840

4941
@media (prefers-color-scheme: dark) {
50-
.link {
51-
color: var(--color-whitePalette-500);
52-
}
53-
}
42+
.link {
43+
color: var(--color-whitePalette-500);
44+
}
45+
}
Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,50 @@
11
.encription-setting {
2-
display: flex;
3-
justify-content: space-between;
4-
align-items: center;
5-
flex-wrap: wrap;
6-
margin-bottom: 20px;
2+
display: flex;
3+
justify-content: space-between;
4+
align-items: center;
5+
flex-wrap: wrap;
6+
margin-bottom: 20px;
77
}
88

99
.encription-password {
10-
display: flex;
11-
flex-direction: column;
12-
margin-top: 32px;
13-
width: 100%;
10+
display: flex;
11+
flex-direction: column;
12+
margin-top: 32px;
13+
width: 100%;
1414
}
1515

1616
.encription-password__field {
17-
display: flex;
18-
align-items: center;
19-
width: 100%;
17+
display: flex;
18+
align-items: center;
19+
width: 100%;
2020
}
2121

2222
.encription-password__copy-button {
23-
margin-top: -20px;
24-
margin-left: -40px;
23+
margin-top: -20px;
24+
margin-left: -40px;
2525
}
2626

2727
.docs-notification {
28-
display: flex;
29-
gap: 8px;
30-
background-color: var(--bg-color);
31-
border-left: 12px solid #FF6F00;
32-
color: var(--mat-sidenav-content-text-color);
33-
margin-top: -8px;
34-
padding: 16px 12px;
28+
display: flex;
29+
gap: 8px;
30+
background-color: var(--bg-color);
31+
border-left: 12px solid #ff6f00;
32+
color: var(--mat-sidenav-content-text-color);
33+
margin-top: -8px;
34+
padding: 16px 12px;
3535
}
3636

37-
@media (prefers-color-scheme: dark) {
38-
.docs-notification {
39-
--bg-color: #292929;
40-
}
41-
}
42-
43-
@media (prefers-color-scheme: light) {
44-
.docs-notification {
45-
--bg-color: #F4F4F4;
46-
}
37+
.docs-notification {
38+
--bg-color: var(--ra-surface);
4739
}
4840

4941
.docs-notification__warning {
50-
line-height: 1.55em;
51-
margin-bottom: 8px;
42+
line-height: 1.55em;
43+
margin-bottom: 8px;
5244
}
5345

5446
.docs-link {
55-
color: #EF6C00;
56-
font-weight: 500;
57-
text-decoration: none;
58-
}
47+
color: #ef6c00;
48+
font-weight: 500;
49+
text-decoration: none;
50+
}

0 commit comments

Comments
 (0)