integrated looking scrollbars when not in overlay mode#16
Conversation
|
@argyleink is attempting to deploy a commit to the shipshapecode Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
while i'm makin scroll better
def needed to be done anyway, and now it's in this PR
did that, in favor of these couple lines of CSS, using the light/dark vars
which i agree, normally arent cool to do in a PR, i should make a separate PR… however! this PR seeks scroll polish suggestions, and a scroll list animation falls into that category right? cool, so i added a subtle but nice CSS only scroll enhancement to the episodes. thoughts? 😅 |
| } | ||
|
|
||
| html { | ||
| color-scheme: light dark; |
There was a problem hiding this comment.
I'm completely ignorant here. What is this doing?
There was a problem hiding this comment.
this signals to the browser that your page is light/dark ready and in response the browser will apply a light or dark browser stylesheet. the most notable visual changes are in inputs and scrollbars.
a good example here
|
@argyleink thanks for taking this on! I think we need a rebase here to get the pnpm lockfile up to date etc. |

I couldn't figure out a tailwind way in this scenario 😅 I read the docs on the plugin being used, and I could tell in the output how it was applying colors the prefix way (which is the more customizable / not fully cross browser way). I'm def not against using that.
I also tried
scrollbar-track-transparent, but I don't think that's usingscrollbar-colorunder the hood.The solution I ended up doing was targeting the elements wanting a thin scrollbar, and made the tracks transparent and the thumb color a nice color from the props.
Before:

After:

Show me the better Tailwind way?! All i wanted to contribute quickly was a transparent track using scrollbar-color.