Free, open-source plugin for Tailwind CSS
Adds utilities for styling scrollbars across browsers
Supports scrollbar-width, scrollbar-color, and ::-webkit-scrollbar
Features nocompatible mode for advanced customization
tailwind-scrollbar is a free, open-source plugin developed by adoxography, designed to enhance Tailwind CSS by adding utilities for styling scrollbars with cross-browser support. Its primary goal is to provide a unified API for developers to style scrollbars consistently, targeting those building web applications with Tailwind CSS who need customizable scrollbar aesthetics.
The plugin supports two competing scrollbar standards: scrollbar-width and scrollbar-color for Firefox and Chromium-based browsers, and ::-webkit-scrollbar pseudo-elements for others. It allows styling of scrollbar thumb, track, and corner, with options for rounded edges and custom sizes in nocompatible mode, ensuring flexibility while maintaining performance.
Cross-Browser Support: Unifies scrollbar-width, scrollbar-color, and ::-webkit-scrollbar standards.
Customizable Styling: Utilities like scrollbar-thumb-* and scrollbar-track-* for colors.
Non-Compliant Mode: Enables rounded corners and custom sizes with scrollbar-w-* and scrollbar-h-*.
Inherited Utilities: Color styles can be applied at a high level and inherited by child elements.
Hover/Active Variants: scrollbar-hover: and scrollbar-active: for dynamic styling.
Lightweight: Adds minimal overhead, focusing on CSS utilities.
Cross-Browser Consistency: Simplifies scrollbar styling across different browsers.
Free and Open-Source: MIT license allows unrestricted use and modification.
Flexible Customization: Nocompatible mode offers advanced styling options like rounded corners.
Community Support: 1.1k GitHub stars and active contributions from developers.
Developer-Friendly: Integrates seamlessly with Tailwind CSS workflows.
Tailwind Dependency: Requires Tailwind CSS (v4 for the latest version), limiting use in non-Tailwind projects.
Browser Limitations: Some features like hover variants don’t work in Firefox due to standards-track constraints.
Setup Complexity: Nocompatible mode and pseudoelement strategies require configuration adjustments.
Limited Functionality: Doesn’t force scrollbars to appear; relies on existing overflow behavior.
tailwind-scrollbar focuses on utilities rather than traditional components or templates:
Scrollbar Utilities: scrollbar and scrollbar-thin for initializing styling.
Color Utilities: scrollbar-thumb-* and scrollbar-track-* for custom colors.
Rounded Utilities: scrollbar-thumb-rounded-* for rounded edges in nocompatible mode.
Size Utilities: scrollbar-w-* and scrollbar-h-* for custom scrollbar dimensions.
tailwind-scrollbar operates on a Free model:
Free Access: Fully open-source under the MIT license, with no cost to use or modify.
tailwind-scrollbar integrates with:
Tailwind CSS: Core dependency, compatible with v4 (or v3 for older versions).
Frameworks: Works with any framework using Tailwind CSS, like React or Next.js.
npm/Yarn/pnpm: Install via npm install --save-dev tailwind-scrollbar.
Build Tools: Configured via tailwind.config.js for seamless integration.
tailwind-scrollbar is a free plugin that adds scrollbar styling utilities to Tailwind CSS, unifying cross-browser standards for easy customization.
Yes, it’s fully free and open-source under the MIT license.
Yes, it works with any framework that supports Tailwind CSS, including React and Vue.
Yes, it includes scrollbar-hover: and scrollbar-active: variants, but they don’t work in Firefox.
Open source srollbar Styling Plugin for Tailwind CSS
Next.js Starter Kit with TypeScript, Shadcn, Tailwind & Supabase.
Submit your Tailwind CSS product to All UtilityCSS, get featured, and drive genuine traffic while showcasing your work to the world. Turn your creativity into revenue and begin selling today! 🚀