Skip to content

Conversation

@jellydeck
Copy link
Contributor

@jellydeck jellydeck commented Feb 1, 2026

closes #611 resolves #633

  • use accent colors for focus rings in navbar
  • AppLogo component which changes color as per accent color
  • fixes in spacing for visual alignment
  • compare page searchbar icon aligned
  • copy package name button updates itself rather than calling popover for better UX

Major visual change

docs bar is moved below description to accommodate for long package names
image

@vercel
Copy link

vercel bot commented Feb 1, 2026

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

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 3, 2026 8:30am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 3, 2026 8:30am
npmx-lunaria Ignored Ignored Feb 3, 2026 8:30am

Request Review

@jellydeck jellydeck marked this pull request as ready for review February 1, 2026 12:11
@jellydeck jellydeck marked this pull request as draft February 1, 2026 12:12
@jellydeck jellydeck marked this pull request as ready for review February 1, 2026 12:18
@jellydeck jellydeck changed the title feat: better contrast for accent colors feat: better contrast for accent colors & visual changes Feb 1, 2026
@whitep4nth3r
Copy link
Collaborator

These are starting to look better in terms of consistency but I checked out the deployment and the colours chosen for focus outlines do still fail colour contrast. Before I saw this PR I actually opened this issue for reference.

#647

@whitep4nth3r
Copy link
Collaborator

This is looking specifically at the provenance icon in dark mode.

image

default accent-color
otherwise half opacity
@jellydeck
Copy link
Contributor Author

@whitep4nth3r I think accent would work great here, what do you think?

@whitep4nth3r
Copy link
Collaborator

There's actually another PR going on over here for the same thing 😅

#650

@whitep4nth3r
Copy link
Collaborator

Accent colour could work but I'm not sure if all the colours available in the settings have been tested against the background colours.

@danielroe
Copy link
Member

would you add an a11y test for the new AppLogo component? 🙏

jellydeck and others added 2 commits February 2, 2026 15:32
as per dicussion from npmx-dev#650 by @JarvisInvestInsight

Co-Authored-By: J.A.R.V.I.S. <258503261+JarvisInvestInsight@users.noreply.github.com>
@jellydeck
Copy link
Contributor Author

few visual fixes:

  • compare page searchbar icon aligned
  • copy package name updates itself rather than calling popover for better UX

@jellydeck
Copy link
Contributor Author

@danielroe have a look on test

Comment on lines 75 to 84
const accentColors = computed(() => {
const mode = (colorMode.value || 'dark') as 'light' | 'dark'
const colors = ACCENT_COLORS[mode]

return Object.entries(colors).map(([id, value]) => ({
id: id as AccentColorId,
name: id,
value,
}))
})
Copy link
Member

Choose a reason for hiding this comment

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

this is why ci is failing - colors can be undefined

Copy link
Contributor Author

@jellydeck jellydeck Feb 2, 2026

Choose a reason for hiding this comment

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

@danielroe

const colors = ACCENT_COLORS[mode] ?? ACCENT_COLORS.dark

this also doesn't seem to work 2502007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Download chart tooltip is not visible in light mode Missing focus indicators in banner connect menu [Safari/a11y]

4 participants