Description
Hi,
I'm using Tailwind CSS v4 and trying to use the scrollbar-hide class via the tailwind-scrollbar-hide plugin, but unfortunately I can't get it to work. The scrollbar is still visible even after following the setup steps.
Here’s what I’ve tried:
-
Installed the plugin with npm:
npm install tailwind-scrollbar-hide -
I saw that the documentation recommends this in index.css:
@config "../../tailwind.config.js";
But Tailwind v4 throws an error and doesn't allow this kind of import — @config is not supported directly in CSS files anymore (or has limitations in v4).
- I also created a tailwind.config.js manually and added the plugin:
const scrollbarHide = require('tailwind-scrollbar-hide');
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [scrollbarHide],
}
But even after restarting the dev server (npm run dev), the class scrollbar-hide still has no effect — it doesn't appear in DevTools and no CSS is applied.
❓Question:
Is tailwind-scrollbar-hide officially compatible with Tailwind CSS v4?
If so, is there a working example or something I may be missing?
Thanks!