Skip to content

Commit 1158d89

Browse files
committed
style: update scrollbar colors for light mode and fix some sidebar light mode issues
1 parent ae910cc commit 1158d89

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

packages/ui-components/src/Containers/Sidebar/SidebarGroup/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
first:before:left-0
5656
first:before:h-20
5757
first:before:w-4
58-
first:before:bg-white
58+
first:before:bg-transparent
5959
first:before:content-['']
6060
last:after:absolute
6161
last:after:left-0
6262
last:after:top-[calc(50%+0.25rem)]
6363
last:after:h-20
6464
last:after:w-4
65-
last:after:bg-white
65+
last:after:bg-transparent
6666
last:after:content-['']
6767
first:dark:before:bg-transparent
6868
last:dark:after:bg-transparent;

packages/ui-components/src/Containers/Sidebar/SidebarItem/index.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
&:not(.active):hover {
1919
/* Apply hover background to the full item width */
20-
@apply bg-neutral-100
20+
@apply bg-neutral-200
2121
dark:bg-neutral-900;
2222

2323
/* Ensure text colors contrast with hover background */
@@ -33,7 +33,7 @@
3333
}
3434

3535
.progressionIcon {
36-
@apply fill-green-200
36+
@apply fill-green-400
3737
dark:fill-green-300;
3838
}
3939
}
@@ -49,8 +49,8 @@
4949

5050
.progressionIcon {
5151
@apply shrink-0
52-
fill-neutral-200
53-
stroke-white
52+
fill-neutral-600
53+
stroke-neutral-300
5454
stroke-[4]
5555
dark:fill-neutral-800
5656
dark:stroke-neutral-950;
@@ -69,7 +69,7 @@
6969

7070
/* On hover, use full-width background on the item (set above) */
7171
&:not(.active):hover {
72-
@apply bg-neutral-100
72+
@apply bg-neutral-200
7373
dark:bg-neutral-900;
7474
}
7575

packages/ui-components/src/styles/index.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,15 @@
3939
@custom-variant aria-current (&[aria-current="page"]);
4040

4141
* {
42-
scrollbar-color: var(--color-green-600, #417e38) var(--color-neutral-900, #2c3437); /* thumb color, track color */
43-
42+
scrollbar-color: var(--color-green-600, #417e38)
43+
var(--color-neutral-400, #2c3437); /* thumb color, track color */
4444
scrollbar-width: thin;
4545
}
46+
47+
@media (prefers-color-scheme: dark) {
48+
* {
49+
scrollbar-color: var(--color-green-600, #417e38)
50+
var(--color-neutral-900, #2c3437); /* thumb color, track color */
51+
scrollbar-width: thin;
52+
}
53+
}

0 commit comments

Comments
 (0)