Skip to content

ux(brands): soften the active brand card outline - #175

Merged
gkhngyk merged 1 commit into
mainfrom
ux/active-brand-card-border
Jun 4, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
ux/active-brand-card-border

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

web/src/components/dashboard/brand-card.tsx:38 was using ring-2 ring-primary border-primary/60 on the active card, which stacks a full-saturation 2px ring on top of an opaque primary border — visually ~3px and noticeably heavier than the rest of the grid.

Swap to ring-1 ring-primary/40 border-primary/40:

  • Ring thickness halved (ring-2 → ring-1).
  • Both the ring and the border now share the same 40% primary tint so the highlight reads as a soft outline rather than a hard halo.

The hover affordance (hover:border-primary/40 hover:shadow-sm) is unchanged.

Test plan

  • On /dashboard/brands, the active card's outline is clearly identifiable but feels in line with the inactive cards' weight.
  • Hover state on the inactive cards still works.
  • Switching brands via clicking another card moves the highlight as expected.

The active brand card on /dashboard/brands used `ring-2 ring-primary
border-primary/60`, stacking a full-saturation 2px ring on top of an
opaque primary border for an effective ~3px outline. Drop the ring to
1px and route both ring and border through `primary/40` so the active
state still reads as selected but no longer dominates the grid.
@gkhngyk
gkhngyk merged commit 6989868 into main Jun 4, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3265b095 Deployed Jun 4, 2026 by vercel[bot]
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.

1 participant