Skip to content

Commit d2eea7a

Browse files
committed
Address harcoded color values
1 parent 9a3a44b commit d2eea7a

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

ai/ai-react-app/src/components/Layout/LeftSidebar.module.css

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.sidebar {
2-
background-color: #f8f9fa;
2+
background-color: var(--color-surface-secondary);
33
padding: 1rem;
44
height: 100%;
5-
border-right: 1px solid #dee2e6;
5+
border-right: 1px solid var(--color-border-primary);
66
display: flex;
77
flex-direction: column;
88
gap: 1.5rem;
@@ -16,39 +16,39 @@
1616

1717
.navButton {
1818
background-color: transparent;
19-
border: 1px solid #dee2e6;
19+
border: 1px solid var(--color-border-primary);
2020
border-radius: 0.375rem;
2121
padding: 0.75rem 1rem;
2222
width: 100%;
2323
text-align: left;
2424
cursor: pointer;
2525
font-size: 1rem;
26-
color: #212529;
26+
color: var(--color-text-primary);
2727
transition:
2828
background-color 0.15s ease-in-out,
2929
border-color 0.15s ease-in-out;
3030
}
3131

3232
.navButton:hover {
33-
background-color: #e9ecef;
33+
background-color: var(--color-surface-tertiary);
3434
}
3535

3636
.navButton.active {
37-
background-color: #0d6efd;
38-
color: white;
39-
border-color: #0d6efd;
37+
background-color: var(--color-surface-interactive);
38+
color: var(--color-text-on-interactive);
39+
border-color: var(--color-surface-interactive);
4040
}
4141

4242
.backendSelector,
4343
.personaSelector {
44-
border-top: 1px solid #dee2e6;
44+
border-top: 1px solid var(--color-border-primary);
4545
padding-top: 1rem;
4646
}
4747

4848
.selectorTitle {
4949
font-size: 0.875rem;
5050
font-weight: 600;
51-
color: #6c757d;
51+
color: var(--color-text-secondary);
5252
text-transform: uppercase;
5353
margin-bottom: 0.75rem;
5454
}
@@ -69,17 +69,19 @@
6969
width: 100%;
7070
padding: 0.5rem;
7171
border-radius: 0.25rem;
72-
border: 1px solid #ced4da;
72+
border: 1px solid var(--color-border-secondary);
7373
font-size: 0.9rem;
74-
background-color: #fff;
74+
background-color: var(--color-surface-primary);
7575
}
7676

7777
.customPersonaTextarea {
7878
width: 100%;
7979
margin-top: 0.5rem;
8080
padding: 0.5rem;
8181
border-radius: 0.25rem;
82-
border: 1px solid #ced4da;
82+
border: 1px solid var(--color-border-secondary);
8383
font-size: 0.9rem;
8484
resize: vertical;
85+
background-color: var(--color-surface-primary);
86+
color: var(--color-text-primary);
8587
}

0 commit comments

Comments
 (0)