diff --git a/js/react/lib/styles.css b/js/react/lib/styles.css index 0461c8e..928201e 100644 --- a/js/react/lib/styles.css +++ b/js/react/lib/styles.css @@ -83,7 +83,7 @@ --color-light: #fafafa; --color-dark: #2e2e2e; - --color-gray: #D9D9D9; + --color-gray: #d9d9d9; /* Fonts */ --text-xxs: 10px; @@ -303,3 +303,30 @@ @apply desktop:text-[40px]; } } + +@layer utilities { + @supports not selector(::-webkit-scrollbar) { + .scrollbar { + scrollbar-color: var(--color-neutral-300) var(--color-neutral-100); + + @variant dark { + scrollbar-color: var(--color-neutral-900) var(--color-neutral-600); + } + } + } + + .scrollbar::-webkit-scrollbar { + @apply w-4; + } + + .scrollbar::-webkit-scrollbar-track { + @apply rounded-full bg-neutral-100 dark:bg-neutral-900; + } + + .scrollbar::-webkit-scrollbar-thumb { + @apply rounded-full bg-neutral-300 transition dark:bg-neutral-600; + } + .scrollbar::-webkit-scrollbar-thumb:hover { + @apply opacity-90; + } +} diff --git a/js/react/showcase/App.tsx b/js/react/showcase/App.tsx index d26dff1..e578fe3 100644 --- a/js/react/showcase/App.tsx +++ b/js/react/showcase/App.tsx @@ -258,6 +258,11 @@ export function App() { }, }} /> + +
+
Container
+
+
); }