Skip to content

Commit

Permalink
fix: decrease default scrollbar color contrast using color-mix
Browse files Browse the repository at this point in the history
scrollbar-color: color-mix(in oklch, currentColor 35%, transparent) transparent
  • Loading branch information
saadeghi committed Jun 24, 2024
1 parent 1c2fbe2 commit 92d98ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/base/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
html {
-webkit-tap-highlight-color: transparent;
}
/* scrollbar color */
* {
scrollbar-color: currentColor transparent;
scrollbar-color: color-mix(in oklch, currentColor 35%, transparent) transparent;
&:hover {
scrollbar-color: color-mix(in oklch, currentColor 60%, transparent) transparent;
}
}

0 comments on commit 92d98ed

Please sign in to comment.