Skip to content

integrated looking scrollbars when not in overlay mode#16

Merged
RobbieTheWagner merged 5 commits into
shipshapecode:mainfrom
argyleink:more-seamless-scrollbars
Sep 4, 2025
Merged

integrated looking scrollbars when not in overlay mode#16
RobbieTheWagner merged 5 commits into
shipshapecode:mainfrom
argyleink:more-seamless-scrollbars

Conversation

@argyleink
Copy link
Copy Markdown
Collaborator

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 using scrollbar-color under 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:
Screenshot 2025-08-21 at 8 20 42 PM

After:
Screenshot 2025-08-21 at 8 20 57 PM

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 22, 2025

@argyleink is attempting to deploy a commit to the shipshapecode Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
starpod Ready Ready Preview Comment Sep 4, 2025 1:14pm

@coliff
Copy link
Copy Markdown

coliff commented Aug 27, 2025

hey - I think just need to add color-scheme: dark; to body tag.

Works for me with Edge v139 on Windows 11.

@media (prefers-color-scheme: dark) {
    .dark\:text-dark-text-body {
        color: var(--color-dark-text-body);
        color-scheme: dark;
    }
}

with fix:
image

@argyleink
Copy link
Copy Markdown
Collaborator Author

I think just need to add color-scheme: dark; to body tag.

def needed to be done anyway, and now it's in this PR

Robbie and i discussed removing the plugin

did that, in favor of these couple lines of CSS, using the light/dark vars

extras…

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? 😅

Comment thread src/styles/global.css
}

html {
color-scheme: light dark;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm completely ignorant here. What is this doing?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@RobbieTheWagner
Copy link
Copy Markdown
Member

@argyleink thanks for taking this on! I think we need a rebase here to get the pnpm lockfile up to date etc.

@RobbieTheWagner RobbieTheWagner merged commit c383609 into shipshapecode:main Sep 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants