docs/solutions/developer-experience/2026-03-28-tailwind-scrollbar-hide-v4-plugin-vs-import.md
An old issue reported that Plate's Tailwind v4 integration for tailwind-scrollbar-hide was wrong because it still used the plugin form instead of the package's documented /v4 CSS import. That sounded plausible, but the real question was not what the README preferred. The real question was whether the current integration was actually broken.
@plugin "tailwind-scrollbar-hide" in Tailwind v4 CSS.@import "tailwind-scrollbar-hide/v4" for Tailwind v4.@plugin "tailwind-scrollbar-hide" in the repo showed drift from the docs, not a live bug.Compile both forms against the current stack before deciding whether the issue is still valid.
Use a tiny Tailwind v4 repro that forces the utilities to emit:
@import "tailwindcss";
@source inline("scrollbar-hide scrollbar-default");
@plugin "tailwind-scrollbar-hide";
@import "tailwindcss";
@source inline("scrollbar-hide scrollbar-default");
@import "tailwind-scrollbar-hide/v4";
Then diff the generated CSS, not just the input syntax.
In this case, both paths compiled successfully on the current stack. The emitted .scrollbar-hide and .scrollbar-default utilities matched for current browsers. The only observed delta was that the plugin form kept the legacy -ms-overflow-style declarations while the /v4 import dropped them.
That changed the conclusion completely: the issue was no longer a live bug. It had become a cleanup or docs-alignment request.
[email protected] still exports a JS plugin at the package root and a CSS-only Tailwind v4 entry at ./v4. The README prefers the CSS import for Tailwind v4, but the root plugin path still compiles under the current Tailwind 4 toolchain.
The important detail is that the /v4 path is not the only working path anymore. It is the documented path. Those are not the same claim.