Parcourir la source

update scrollbar styling

Aykut Saraç il y a 3 ans
Parent
commit
1610a5201b
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      src/constants/globalStyle.ts

+ 11 - 0
src/constants/globalStyle.ts

@@ -12,6 +12,17 @@ const GlobalStyle = createGlobalStyle`
     font-size: 16px;
   }
 
+
+  ::-webkit-scrollbar {
+    width: 8px;
+    background: ${({ theme }) => theme.BLACK_SECONDARY};
+  }
+
+  ::-webkit-scrollbar-thumb {
+    border-radius: 5px;
+    background-color: ${({ theme }) => theme.SILVER_DARK};
+  }
+
   a {
     text-decoration: none;
     color: unset;