Add utilities for scrollbar-color
#5751
lukewarlow
started this conversation in
Ideas
Replies: 2 comments
-
In case anyone comes across this discussion looking for a solution I've made an npm package with a plugin for scrollbar color (along with gutter and width) utilities. See https://github.com/lukewarlow/tailwind-scrollbar-utilities |
Beta Was this translation helpful? Give feedback.
0 replies
-
Chromium intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/PkEsMirl2zE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Add utilities for the
scrollbar-color
CSS property.Currently only supported by Firefox but coming soon to Chromium, and not as relevant to Safari as Apple platforms use overlay scrollbars by default.
I'm imagining something like
class="thumb-red-200 track-white"
which would generate something likescrollbar-color: #FECACA white;
.I'm thinking perhaps they should have a
scrollbar-
prefix to avoid ambiguity in case of future CSS properties for styling range inputs for example.To my knowledge this would be the first utilities where two are required to be combined together to generate valid CSS?
So maybe track could default to something that makes sense.
Beta Was this translation helpful? Give feedback.
All reactions