Skip to content

feat(crates.io): rewrite - #2300

Open
nuexq wants to merge 7 commits into
catppuccin:mainfrom
nuexq:fix-crates.io
Open

feat(crates.io): rewrite#2300
nuexq wants to merge 7 commits into
catppuccin:mainfrom
nuexq:fix-crates.io

Conversation

@nuexq

@nuexq nuexq commented Jul 27, 2026

Copy link
Copy Markdown
Member

馃棐 Checklist 馃棐

  • I used AI (or AI-assistance) for this change.

馃敡 What does this fix? 馃敡

rewriting crates.io userstyle following the new site refactor.

馃攳 Reproduction Steps 馃攳

image image

@nuexq
nuexq requested a review from uncenter as a code owner July 27, 2026 15:54
@github-actions github-actions Bot added the crates.io crates.io label Jul 27, 2026
@uncenter

Copy link
Copy Markdown
Member

It looks like there are some unthemed areas on the Code Viewer component (https://crates.io/crates/serde/1.0.229/code/src/lib.rs), on the Security tab (https://crates.io/crates/serde/security), and on some tooltips like those on the Versions tab (https://crates.io/crates/serde/versions, see image):

CleanShot 2026-07-29 at 17 00 24@2x

Also in the API Tokens page (https://crates.io/settings/tokens), there are some hover states of the sidebar menu links that are unthemed and the background of live API token cards are unthemed.

CleanShot 2026-07-29 at 17 03 42@2x

The header in light mode also looks a little strange.

@nuexq

nuexq commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

I fixed all the problems you mentioned and found more along the way, and about light mode header, I'm not sure which color to choose as their original color was green color that plays a role as secondary accent for them, and I picked the closest color to the dark mode version, also @base and @mantle for backgrounds doesn't seem to work well in light mode

Comment thread styles/crates.io/catppuccin.user.less Outdated
Comment thread styles/crates.io/catppuccin.user.less Outdated
@uncenter

uncenter commented Aug 7, 2026

Copy link
Copy Markdown
Member
CleanShot 2026-08-07 at 14 31 53@2x

These text elements are unthemed on the home page header. Looks like they are .header .index-link, .header .hero-title.

@uncenter

uncenter commented Aug 7, 2026

Copy link
Copy Markdown
Member

It looks like security advisories are unthemed, like that on https://crates.io/crates/hashbrown/security.

@uncenter

uncenter commented Aug 7, 2026

Copy link
Copy Markdown
Member

The no pending invitations text/card under https://crates.io/me/pending-invites is unthemed.

@uncenter uncenter added the 2.status: changes-requested Changes requested by reviewers must be attended to by author before further review label Aug 7, 2026
@nuexq

nuexq commented Aug 7, 2026

Copy link
Copy Markdown
Member Author
CleanShot 2026-08-07 at 14 31 53@2x These text elements are unthemed on the home page header. Looks like they are `.header .index-link, .header .hero-title`.

I can't reproduce this state on my end, is there a specific way to trigger it (the 2 badges)?

@nuexq

nuexq commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

and the background color of the code preview in https://crates.io/crates/catppuccin/2.8.0/code is @surface0, won't it be better to have @base as its background color?

background-color: @base background-color: @surface0

@uncenter

uncenter commented Aug 8, 2026

Copy link
Copy Markdown
Member

I can't reproduce this state on my end, is there a specific way to trigger it (the 2 badges)?

The red numbered badges are annotations I added with my screen capture tool, highlighting the two instances of unstyled text that should be @text ("crates.io" and "The Rust community's crate registry").

@uncenter

uncenter commented Aug 8, 2026

Copy link
Copy Markdown
Member

and the background color of the code preview in crates.io/crates/catppuccin/2.8.0/code is @surface0, won't it be better to have @base as its background color?

Go for it! Looks good to me as well.

Comment thread styles/crates.io/catppuccin.user.less
@nuexq nuexq linked an issue Aug 8, 2026 that may be closed by this pull request
2 tasks
@uncenter uncenter added 5.needs: staff-review A review by a staff member is required/needed and removed 2.status: changes-requested Changes requested by reviewers must be attended to by author before further review labels Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.needs: staff-review A review by a staff member is required/needed crates.io crates.io

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crates.io: unthemed elements

2 participants