Dark mode issue with ::-webkit-scrollbar-thumb (Tailwind v4) #16805
Unanswered
soyjuanmamoreno
asked this question in
Help
Replies: 1 comment
-
Hello mate, I was facing the same problem and solved it like this:
For now this works, though I’m not sure if there’s a better solution. |
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.
-
Hi everyone!
Since Laravel just updated to version 12 yesterday, I’ve been checking out the changes in Tailwind v4.
I’m trying to create a custom scrollbar that works both natively and with WebKit. However, I’m facing an issue: dark mode is not applying correctly to ::-webkit-scrollbar-thumb.
Here’s the code I’m using:
`
@layer base {
::-webkit-scrollbar {
width: 15px;
height: 15px;
}
}
`
Additional details:
Issue:
The ::-webkit-scrollbar-thumb color doesn’t change when dark mode is enabled.
Question:
Am I applying the dark variant correctly in this case?
Thanks in advance for any help! 😊
Beta Was this translation helpful? Give feedback.
All reactions