Skip to content

Commit

Permalink
Merge pull request #191 from develad/custom-scrollbar
Browse files Browse the repository at this point in the history
Adding a custom scrollbar with light/dark mode functionality
  • Loading branch information
Darkmift authored Mar 21, 2024
2 parents c0a02db + 44f6d37 commit 3ce2185
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/[locale]/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
width: auto;
height: auto;
}

*::-webkit-scrollbar {
@apply w-2;
}

*::-webkit-scrollbar-thumb {
@apply bg-blue-400 dark:bg-slate-500 rounded-full border-4 border-blue-400 dark:border-black;
}

*::-webkit-scrollbar-track {
@apply bg-purple-100 dark:bg-black rounded-full;
}
}

@layer components {
Expand Down

0 comments on commit 3ce2185

Please sign in to comment.