Skip to content

design(receipt-card): x402 micropayment receipt card design package - #21

Open
jdjioe5-cpu wants to merge 1 commit into
nirium-protocol:mainfrom
jdjioe5-cpu:design/x402-receipt-card
Open

design(receipt-card): x402 micropayment receipt card design package#21
jdjioe5-cpu wants to merge 1 commit into
nirium-protocol:mainfrom
jdjioe5-cpu:design/x402-receipt-card

Conversation

@jdjioe5-cpu

Copy link
Copy Markdown

Summary

Closes #13 — GrantFox UX Bounty ($50 USDC) for the Figma UI/UX redesign of the x402 Micropayment Receipt Card.

A complete, designer-ready design package plus a runnable HTML/CSS/JS interactive prototype and exportable SVG mockups.

What's delivered

Design specification

  • design/receipt-card/SPEC.md — Full design spec: tokens, typography, motion, accessibility (WCAG AA), components, responsive behavior, empty/loading/error states
  • design/receipt-card/README.md — Package overview + acceptance criteria mapping

Design tokens (Figma Variables-compatible)

  • design/receipt-card/tokens/tokens.json — Tokens Studio format, drop-in for Tokens Studio plugin
  • design/receipt-card/tokens/tokens.css — CSS custom properties for direct HTML use

Figma component tree

  • design/receipt-card/components/figma-component-map.json — Component hierarchy, variants (status: settled/pending/failed), and style definitions. Ready for direct import or for manual recreation in Figma.

SVG mockups (exportable, editable vectors)

  • design/receipt-card/mockups/settled.svg
  • design/receipt-card/mockups/pending.svg
  • design/receipt-card/mockups/failed.svg
  • design/receipt-card/mockups/rendered/*.png — rasterized previews

Interactive prototype

  • design/receipt-card/prototype/index.html — Open in any browser. Click the state pills (Settled / Pending / Failed) to see live transitions. Tab through every focusable element. Copy buttons work. Full keyboard navigation.
  • design/receipt-card/prototype/prototype.css — Styles
  • design/receipt-card/prototype/prototype.js — State controller (vanilla, no framework)

To run locally:

cd design/receipt-card && python3 -m http.server 8000
# then visit http://localhost:8000/prototype/

Acceptance criteria mapping (issue #13)

Requirement Delivered
Sleek modern dark mode + glassmorphism accents tokens.css, prototype.css, all mockups
Amount (USDC) visualization amount component, primary text 32px tabular
Transaction Hash Metadata row with copy-to-clipboard + Stellar Expert link
Stellar Expert link Primary CTA button — opens in new tab
IPFS CID Metadata row with copy + open-on-IPFS button
Status (Settled/Pending) Status pill component, 3 variants (settled/pending/failed)
Exportable Figma components & design specs figma-component-map.json + SPEC.md

Reservation

Comment left on #13 at 2026-07-23T07:42:25Z (#issuecomment-5055782193).

Payout

Stellar Foundation / GrantFox Campaign — Organization ID b6550049-a239-4dc1-b95e-2fb28ded7ea6.

For reward disbursement, please share the eligible USDC receive address (network + asset code) on the issue thread. Standard public receive addresses work; nothing sensitive needed.

Checklist

  • No secrets or PII in the diff
  • All files render in headless Chromium (verified)
  • Tokens cover every color/space/typography/motion token referenced in SPEC
  • Mockups editable as SVG vectors (no flattened raster artwork)
  • Prototype keyboard-navigable, prefers-reduced-motion respected
  • WCAG AA contrast verified for primary/secondary/tertiary text

Closes nirium-protocol#13

Deliverable for the $50 USDC GrantFox UX Bounty — Figma UI/UX
redesign for the x402 Micropayment Receipt Card.

Contents:
- SPEC.md: full design specification (tokens, typography, motion,
  accessibility, components)
- tokens/tokens.{json,css}: design tokens, Figma Variables-compatible
- components/figma-component-map.json: Figma-ready component tree
- mockups/{settled,pending,failed}.svg: exportable SVG mockups for
  all three states (editable vectors, drop-in for Figma)
- mockups/rendered/*.png: rasterized previews for quick review
- prototype/: runnable HTML/CSS/JS interactive prototype with state
  toggle, copy-to-clipboard, keyboard nav, and prefers-reduced-motion

Acceptance criteria mapping (issue nirium-protocol#13):
- Sleek modern dark mode + glassmorphism -> tokens.css + prototype.css
- Amount (USDC), Tx Hash, Stellar Expert link, IPFS CID, Status ->
  metadata panel in prototype/index.html + mockups/*.svg
- Exportable Figma components & design specs ->
  components/figma-component-map.json + tokens/tokens.json

Reservation: #issuecomment-5055782193
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.

[UX] Figma redesign for the x402 micropayment receipt card

1 participant