Skip to main content

02 · SYSTEM / COMPONENTS

Components

55 shadcn/ui components, fully themed for POSX. This page shows the finance-critical components and their usage constraints — always import from @/components/ui/*, never re-implement.

Button

One solid purple primary button per screen; destructive for dangerous actions; outline / ghost for low priority.

Badge

One badge style per page. Business status mapping: success → Teal · processing → Gold · failed → Rose (system semantic colors stay reserved).

DefaultSecondaryOutlineDestructiveLIVEVIPNEW

Stat Card

11px mono uppercase label + tabular-nums value + dedicated delta colors (↑ #059669 / ↓ #DC2626, independent of semantic tokens).

US final consumption expenditure (2024)

$23.83T

↑ 3.8% YoY

Stablecoin circulating supply

$274B

↑ 47% YoY

US merchant blended rate (avg)

2.91%

↓ target 1%

Source: World Bank WDI · 2024 / Visa Onchain Analytics · 2025-12 / Nilson / CMSPI · 2025 (from the single data source posx-data.json)

Form

Labels bound to inputs; help text via aria-describedby; amounts right-aligned with currency prefix; irreversible actions require OTP / confirmation.

Registered name matching the business license

Right-aligned · tabular-nums · thousands separators

input-otp · the standard confirmation channel for 2FA / fund operations

Table · Transactions

Amount columns right-aligned with tabular figures; signs use semantic colors; status uses business badges.

TimeMerchantAmountStatus
2026-06-10 14:32Blue Bottle Coffee+$12.50Success
2026-06-10 11:08Whole Foods Market+$86.20Processing
2026-06-09 19:41Shell Gas Station−$45.00Failed

Alert Dialog · Fund Confirmation

Irreversible fund operations must use alert-dialog (no overlay dismiss), paired with OTP.

Skeleton · Loading

Financial data loads behind Skeletons; never a full-page spinner.

Chart

Colors come from --chart-1..5 (Purple → Teal → Gold → Azure → Rose, strict order); hairline grid; tabular-nums.