Skip to content

Commit 3ec2501

Browse files
author
Panos Christophides
committed
adjust scrollbar colors
1 parent fa939f0 commit 3ec2501

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Diff for: src/mixins/webkitVisibleScrollbar.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ export default css`
1010
}
1111
&::-webkit-scrollbar-track {
1212
border-radius: ${getSizeBy(0.5)};
13-
background-color: ${getRgbColor("border", 0.1)};
13+
background-color: ${getRgbColor("scrollbarTrack", 1)};
1414
}
1515
&::-webkit-scrollbar-thumb {
1616
border-radius: ${getSizeBy(1)};
17-
background-color: ${getRgbColor("border", 0.3)};
17+
background-color: ${getRgbColor("scrollbarThumb", 0.8)};
1818
}
1919
&::-webkit-scrollbar-thumb:hover {
20-
background-color: ${getRgbColor("border", 0.5)};
20+
background-color: ${getRgbColor("scrollbarThumb", 1)};
2121
}
2222
&::-webkit-scrollbar-track-piece {
23-
background-color: ${getRgbColor("border", 0.3)};
23+
background-color: ${getRgbColor("scrollbarTrack", 0.3)};
2424
}
2525
&::-webkit-scrollbar-corner {
26-
background-color: ${getRgbColor("border", 0.3)};
26+
background-color: ${getRgbColor("scrollbarTrack", 0.3)};
2727
}
2828
`

Diff for: src/theme/dark/colors.js

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const appColors = {
2020
modalInfoBackground: rawColors.neutral.grey50,
2121
menuItemSelected: rawColors.green.green30,
2222
menuItemHover: rawColors.green.green10,
23+
scrollbarThumb: rawColors.neutral.grey80,
24+
scrollbarTrack: rawColors.neutral.grey35,
2325
//links
2426
link: rawColors.green.green110,
2527
linkHover: rawColors.green.green120,

Diff for: src/theme/default/colors.js

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const appColors = {
2020
modalInfoBackground: rawColors.neutral.blackhaze,
2121
menuItemSelected: rawColors.green.green196,
2222
menuItemHover: rawColors.green.green190,
23+
scrollbarThumb: rawColors.neutral.grey160,
24+
scrollbarTrack: rawColors.neutral.grey190,
25+
2326
//links
2427
link: rawColors.green.green100,
2528
linkHover: rawColors.green.green110,

0 commit comments

Comments
 (0)