Skip to content

Commit

Permalink
adjust scrollbar colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Panos Christophides committed Apr 22, 2024
1 parent fa939f0 commit 3ec2501
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mixins/webkitVisibleScrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ export default css`
}
&::-webkit-scrollbar-track {
border-radius: ${getSizeBy(0.5)};
background-color: ${getRgbColor("border", 0.1)};
background-color: ${getRgbColor("scrollbarTrack", 1)};
}
&::-webkit-scrollbar-thumb {
border-radius: ${getSizeBy(1)};
background-color: ${getRgbColor("border", 0.3)};
background-color: ${getRgbColor("scrollbarThumb", 0.8)};
}
&::-webkit-scrollbar-thumb:hover {
background-color: ${getRgbColor("border", 0.5)};
background-color: ${getRgbColor("scrollbarThumb", 1)};
}
&::-webkit-scrollbar-track-piece {
background-color: ${getRgbColor("border", 0.3)};
background-color: ${getRgbColor("scrollbarTrack", 0.3)};
}
&::-webkit-scrollbar-corner {
background-color: ${getRgbColor("border", 0.3)};
background-color: ${getRgbColor("scrollbarTrack", 0.3)};
}
`
2 changes: 2 additions & 0 deletions src/theme/dark/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const appColors = {
modalInfoBackground: rawColors.neutral.grey50,
menuItemSelected: rawColors.green.green30,
menuItemHover: rawColors.green.green10,
scrollbarThumb: rawColors.neutral.grey80,
scrollbarTrack: rawColors.neutral.grey35,
//links
link: rawColors.green.green110,
linkHover: rawColors.green.green120,
Expand Down
3 changes: 3 additions & 0 deletions src/theme/default/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const appColors = {
modalInfoBackground: rawColors.neutral.blackhaze,
menuItemSelected: rawColors.green.green196,
menuItemHover: rawColors.green.green190,
scrollbarThumb: rawColors.neutral.grey160,
scrollbarTrack: rawColors.neutral.grey190,

//links
link: rawColors.green.green100,
linkHover: rawColors.green.green110,
Expand Down

0 comments on commit 3ec2501

Please sign in to comment.