Skip to content

Commit

Permalink
feat: using custom scrollbar css for dark mdoe
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus committed Jun 16, 2024
1 parent db9733c commit 9d67e0a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createRoot } from 'react-dom/client';

import 'nprogress/nprogress.css';
import 'tailwindcss/tailwind.css';
import './styles/scrollbar.css';

import { App } from './app';

Expand Down
21 changes: 21 additions & 0 deletions src/styles/scrollbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
html.dark::-webkit-scrollbar,
html.dark div.flex-grow::-webkit-scrollbar {
width: 10px;
}

html.dark::-webkit-scrollbar-track,
html.dark div.flex-grow::-webkit-scrollbar-track {
background-color: #090E15;
}

html.dark::-webkit-scrollbar-thumb,
html.dark div.flex-grow::-webkit-scrollbar-thumb {
background-color: #24292e;
border-radius: 10px;
}

html.dark::-webkit-scrollbar-thumb:hover,
html.dark div.flex-grow::-webkit-scrollbar-thumb:hover {
background-color: #3a3f44;
border-radius: 10px;
}

0 comments on commit 9d67e0a

Please sign in to comment.