Skip to content

refactor(OrderCard): use design system components and CSS variables#65

Merged
garrity-miepub merged 1 commit into
mainfrom
feature/order-csrd-updates
Feb 3, 2026
Merged

refactor(OrderCard): use design system components and CSS variables#65
garrity-miepub merged 1 commit into
mainfrom
feature/order-csrd-updates

Conversation

@garrity-miepub

Copy link
Copy Markdown
Collaborator

Component Integration:

  • Replace custom avatar div with Avatar component (name prop for initials)
  • Badge component already in use for status display
  • Card component already wrapping the content

Theme Support (CSS Variables):

  • ring-primary for selected state (was ring-blue-500/400)
  • text-foreground for primary text (was text-gray-900/white)
  • text-muted-foreground for secondary text (was text-gray-500/400)
  • bg-muted for service tags (was bg-gray-100/800)
  • border-border for dividers (was border-gray-100/800)
  • bg-destructive/10 + text-destructive for rejection (was bg-red-50/900)
  • text-primary for links (was text-blue-600/400)
  • bg-primary for accept button (was bg-blue-600)

Also adds --color-primary to @theme block in base.css to fix Tailwind v4 utility generation for text-primary, bg-primary, etc.

order-card.mov

Component Integration:
- Replace custom avatar div with Avatar component (name prop for initials)
- Badge component already in use for status display
- Card component already wrapping the content

Theme Support (CSS Variables):
- ring-primary for selected state (was ring-blue-500/400)
- text-foreground for primary text (was text-gray-900/white)
- text-muted-foreground for secondary text (was text-gray-500/400)
- bg-muted for service tags (was bg-gray-100/800)
- border-border for dividers (was border-gray-100/800)
- bg-destructive/10 + text-destructive for rejection (was bg-red-50/900)
- text-primary for links (was text-blue-600/400)
- bg-primary for accept button (was bg-blue-600)

Also adds --color-primary to @theme block in base.css to fix
Tailwind v4 utility generation for text-primary, bg-primary, etc.
Copilot AI review requested due to automatic review settings February 3, 2026 22:42
@garrity-miepub garrity-miepub marked this pull request as ready for review February 3, 2026 22:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the OrderCard component to use design system components and CSS variables for improved theming support. The changes replace hard-coded Tailwind color utilities with semantic CSS variables and integrate the Avatar component from the design system.

Changes:

  • Added --color-primary variable to base.css to enable Tailwind v4 utilities like text-primary, bg-primary, and ring-primary
  • Replaced custom avatar div with the Avatar component using the name prop for automatic initial generation
  • Converted all hard-coded color classes to semantic CSS variables (e.g., text-gray-900/whitetext-foreground, bg-blue-600bg-primary)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/styles/base.css Adds --color-primary variable to enable base text-primary, bg-primary, and ring-primary Tailwind utilities
src/components/OrderCard/OrderCard.tsx Replaces custom avatar with Avatar component and converts all hard-coded color classes to semantic design system variables for theme support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@garrity-miepub garrity-miepub merged commit ec1f7f4 into main Feb 3, 2026
16 checks passed
@garrity-miepub garrity-miepub deleted the feature/order-csrd-updates branch February 3, 2026 22:48
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.

2 participants