DEV Community

Chandra Prakash Pal
Chandra Prakash Pal

Posted on

How to Change Style of Scrollbar using Tailwind CSS ?

/* global.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* width */
::-webkit-scrollbar {
width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}

All Credit goes to Geeks for geeks. Mentioning here the post url.

https://www.geeksforgeeks.org/how-to-change-style-of-scrollbar-using-tailwind-css/

Top comments (1)

Collapse
 
valedev profile image
valeDev

basically do not use tailwind