Add scrollbar utility
See original GitHub issueI’d suggest adding scrollbar utilities.
Firefox supports scrollbar-color and scrollbar-width properties since v64.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scrollbars
Webkit offers even more customization. https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar
.scrollbar-thin {
scrollbar-width: thin;
scrollbar-color: #c1c1c1 #f5f5f5;
scroll-behavior: smooth;
}
.scrollbar-thin::-webkit-scrollbar{
width: 6px;
height: 6px;
background-color: #f5f5f5;
}
.scrollbar-thin::-webkit-scrollbar-thumb{
border-radius: 10px;
background-color: #c1c1c1;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
background-color: #9d9d9d;
}
I hope this utility would make a scrollable sidebar and modal a little concise.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
[Feature Proposal]: Add custom scrollbar utilities #1640 - GitHub
I just wanted to suggest unified scrollbar style classes. I noticed the docs use webkit CSS selectors for their scrollbars that appear in...
Read more >tailwind-scrollbar - npm
This plugin is capable of adding utilties for creating rounded scrollbars by referencing your configured border radius settings. However, as they are only ......
Read more >Python - Tkinter Scrollbar - Tutorialspoint
This widget provides a slide controller that is used to implement vertical scrolled widgets, such as Listbox, Text and Canvas. Note that you...
Read more >Scroll bar map mode and bar mode - Visual Studio (Windows)
Open the Scroll Bars options page by choosing Tools > Options > Text Editor > All Languages > Scroll Bars. Select Show Annotations...
Read more >How to Create a Scroll Bar in Excel - Step by Step Tutorial
This will insert a Scroll Bar in the excel worksheet. Right-click on the Scroll Bar and click on 'Format Control'. This will open...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

There’s almost no browser support in our targetted browsers in v5:
Those properties clearly don’t meet our requirement to be added as utilities in v5, as of now. I’ll keep this open for further discussions–and keep an eye on this for v6?
Closing for now given this is maybe something we’d do in v6.