Skip to content

adoxography/tailwind-scrollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

920d032 · Apr 7, 2025
Feb 1, 2025
Sep 5, 2022
Feb 23, 2025
Feb 23, 2025
Apr 7, 2025
May 14, 2023
Sep 1, 2020
Mar 20, 2023
Sep 1, 2020
Feb 1, 2025
Mar 29, 2025
Mar 29, 2025
Sep 4, 2022

Repository files navigation

Scrollbar Plugin for Tailwind CSS

Tests Codacy Badge npm

tailwind-scrollbar is a plugin for Tailwind CSS that adds styling utilities for scrollbars with cross-browser support.

Motivation

There are currently two competing standards for styling scrollbars amongst browsers: the scrollbar-width and scrollbar-color properties used by Firefox and newer Chromium-based browsers, and the ::-webkit-scrollbar family of pseudoelements used by everything else. This plugin defines a single API for configuring both standards at once from within Tailwind.

Installation

  1. Add the package to your project
# npm
npm install --save-dev tailwind-scrollbar
# yarn
yarn add -D tailwind-scrollbar
# pnpm
pnpm add -D tailwind-scrollbar
  1. Add the plugin to your Tailwind config
@import 'tailwindcss';

/* ... */

@plugin 'tailwind-scrollbar';

Usage

See the documentation.

License

This project is licensed under the MIT License.