From e268b55392e9932a854ddd15f110079529a94d40 Mon Sep 17 00:00:00 2001 From: "santasri.pachhal" Date: Fri, 7 Aug 2026 16:47:15 +0530 Subject: [PATCH] style(ui): add modern thin scrollbar styling --- src/app/globals.css | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/app/globals.css b/src/app/globals.css index b6b08d0..e625641 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -140,6 +140,40 @@ * { @apply outline-none border-border outline-ring/50; + scrollbar-color: color-mix( + in oklab, + var(--muted-foreground) 45%, + transparent + ) + transparent; + scrollbar-width: thin; + } + + *::-webkit-scrollbar { + width: 6px; + height: 6px; + } + + *::-webkit-scrollbar-track, + *::-webkit-scrollbar-corner { + background: transparent; + } + + *::-webkit-scrollbar-thumb { + border-radius: 9999px; + background-color: color-mix( + in oklab, + var(--muted-foreground) 45%, + transparent + ); + } + + *::-webkit-scrollbar-thumb:hover { + background-color: color-mix( + in oklab, + var(--muted-foreground) 70%, + transparent + ); } body {