name:uikit-payflow
version:"2.2.0"
description:Implements monochrome-first global consumer payments portals, colossal weight-800 display hero bands, warm cream orbital pill card wallets, instant peer-to-peer sends, group bill-split widgets, searchable payment receipt ledgers, merchant fee tiers, and command palettes using the Payflow — Global Payments design system (W3C DTCG tokens, CSS v4 @theme bridge, design variables JSON, Light & Dark modes, 7 CSS-variable-first TSX templates with @phosphor-icons/react, and WCAG 2.2 AA governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, CSS v4 @theme, TypeScript 5+"
metadata:
id:"payflow"
version:"2.2.0"
category:"fintech-payments"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
wcag:"2.2 AA"
preview:"/previews/payflow-hero.webp"
uikit-payflow — Master Execution Protocol (v2.2.0)
You are building commercial digital payments networks, consumer wallets, peer-to-peer bill-split apps, and merchant fee experiences with the Payflow — Global Payments UI Skill Pack (tokens/ + templates/ + empirical screen & governance specs). Pair with registry/backbone/ (uikit-backbone) when an application requires additional enterprise forms while preserving Payflow's warm cream editorial monochrome identity.
ORBITAL MONOCHROME PAYMENTS EXECUTION MANDATE: Never style this pack as a flat generic blue checkout widget. Ground default Light mode on warm editorial cream (#faf7f2), elevate wallet cards and send panels on pure white (#ffffff) framed by warm stone hairlines (#e3dcd0) and 1rem (16px) rounded orbital corners, set monumental poster-scale headlines in Plus Jakarta Sans weight 800 (-0.035em display tracking), reserve solid jet-black capsule pills (.pf-btn-pill, #111111 with #faf7f2 ink at 17.67:1 AAA) and 2px jet-ringed white twins (.pf-btn-ring) for actions, punctuate orbital arcs and live telemetry with warm vermilion-amber (#ea580c, paired with #111111 ink at 5.30:1 AA, and #c2410c for text signals at 4.85:1 AA), hard-cut between cream and obsidian-black bands (zero multi-stop neon gradients), wire all 5 registered motion primitives, and guarantee crisp espresso-black Dark mode (#121110 / #1d1b19 / #faf7f2 / #f59e0b with #121110 ink 8.78:1 AAA) parity automatically on the very first pass.
1. Task Routing Table
Always inspect DESIGN.md and tokens.css first, then load the companion specs and starter templates matching the active user request:
2. Step-0 Bootstrap Procedure
- 1.Install via CLI, Registry, or MCP:
- CLI:
npx uikits-md@latest add payflow --platform all --out . - Registry:
npx shadcn@latest add https://uikits.tech/r/payflow.json - MCP: invoke
get_ui_kit_skill and get_ui_kit_file for payflow. - Peer dependencies:
npm install @phosphor-icons/react (plus react and react-dom). - 2.Load Fonts in
src/app/layout.tsx:
Import Plus_Jakarta_Sans (weight: ["400", "500", "600", "700", "800"], variable --font-plus-jakarta-sans) and JetBrains_Mono (weight: ["400", "500", "600"], variable --font-jetbrains-mono) via next/font/google. Attach both variables to <html> and apply .pf-root to <body>.
- 3.Import
tokens.css and tokens/tailwind.css:
Import tokens.css (or uikit-payflow.tokens.css) and tokens/tailwind.css directly below your root stylesheet import. This enables Light warm-cream default (:root, [data-theme="light"], .light) and Dark espresso-black companion ([data-theme="dark"], .dark) bridges, .pf-card, .pf-band-ink, .pf-btn-pill, .pf-btn-ring, .pf-satellite-btn, all 6 compositor keyframes, offscreen pauses, and reduced-motion rules.
- 4.Install All 7 Starter Templates:
Copy PaymentsNetworkShell.tsx, OrbitalCardWallet.tsx, InstantSendWidget.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx into src/components/uikit-payflow/.
3. The 12 Mandatory First-Pass Rules
Every surface built under uikit-payflow MUST satisfy all 12 rules on the first pass:
- 1.Warm Cream Default + Espresso-Black Dark Parity: Ground Light mode on warm editorial cream (
#faf7f2, var(--background)), alternate with warm sand (#f2ede4) and full-bleed obsidian black (#111111), and elevate orbital cards on pure white (#ffffff). Switching to [data-theme="dark"] / .dark shifts cleanly to #121110 canvas, #1d1b19 cards, #faf7f2 warm ivory ink, and luminous amber #f59e0b (always paired with #121110 dark ink at 8.78:1 AAA). - 2.100% Semantic CSS Variables (Zero Hardcoded
#hex in TSX): Never write #faf7f2, #111111, #ea580c, #f59e0b, bg-slate-900, or bg-zinc-950 inside reusable template JSX. Bind every surface, border, pill fill, orbital stroke, and status badge strictly to semantic CSS variables. - 3.Colossal Weight-800 Display Typography + Tabular Numerals: Set hero and statement headlines in
Plus Jakarta Sans weight 800 with tight -0.035em letter-spacing and 1.02 line-height. Format EVERY monetary send total, split per-person share, merchant fee (2.4% + $0.30), and receipt reference in .pf-mono (JetBrains Mono + tabular-nums) with .toLocaleString("en-US"). - 4.Monochrome Capsule Action Grammar: Style primary actions as jet-black capsules (
.pf-btn-pill, 9999px radius) and secondary actions as 2px jet-ringed white twins (.pf-btn-ring). Reserve warm vermilion-amber (#ea580c / #c2410c) strictly for orbital trajectories, live status dots, eyebrow dots, and consent/alert highlights — never muddy gradients. - 5.Orbital
1rem (16px) Cards + Full Capsules (Zero Arbitrary Mixed Radii): Keep standard payment cards at 1rem (var(--radius)), inner form fields at 6px (var(--radius-xs)), showcase frames at 1.5rem (var(--radius-lg)), and primary CTAs, nav pills, and satellite arrow controls at 9999px (var(--radius-pill)). Never apply banned Tailwind classes (rounded-2xl, rounded-3xl, shadow-2xl, blur-3xl). - 6.Hard-Cut Full-Bleed Color Moments: Transition cleanly between warm cream (
#faf7f2), warm sand (#f2ede4), and obsidian black (#111111) media/footer slabs without decorative gradients or glass blurs. - 7.Interactive Orbital Card Wallet Fan (
OrbitalCardWallet.tsx): Render selectable virtual/debit/rewards payment cards with fanned deck depth, live instant freeze toggle, contactless tap status, and SVG orbital trajectory arcs connecting labeled nodes with opaque rx="4" pills. - 8.Interactive Peer-to-Peer Send & Group Bill Split (
InstantSendWidget.tsx): Allow toggling Direct Send vs Group Split, editing total amount, selecting 1–5 recipients with real-time per-person share recalculation, optional transparent instant fee preview (0.00% standard vs 1.5% instant card payout), and .pf-send-pop receipt confirmation. - 9.Global
⌘K Wallet Command Palette & Nested Escape (CommandPalette.tsx): Bind Cmd/Ctrl+K to <CommandPalette /> with instant filtering, arrow-key wrap navigation, and nested Escape (first press clears query via stopPropagation(), second press closes and restores focus). - 10.All 5 Registered Motion Profiles + Offscreen Pause + No-JS Safety: Implement
orbital-pill-slide, headline-bold-rise, wallet-card-fan, send-confirm-pop, and band-color-reveal (plus .pf-orbit-dot / .pf-skeleton) via compositor-only @keyframes. Pause repeating pulses offscreen ([data-offscreen="true"]), keep content visible without JS (@media (scripting: none)), and honor prefers-reduced-motion: reduce. - 11.Verified
@phosphor-icons/react Exclusive Iconography: Import icons exclusively from @phosphor-icons/react (PaperPlaneTilt, CreditCard, Wallet, UsersThree, ContactlessPayment, Globe, QrCode, Receipt, Lightning, ShieldCheck, CheckCircle, ArrowUpRight). Zero external stock placeholder URLs or clipart SVGs. - 12.Skip Link, Independent Scroll Panes & Zero Overflow: Render
<a href="#main-content">Skip to content</a> and <main id="main-content"> on every route, ship complete Loading/Empty/Error/Toast states, default mobile navigation closed with focus restoration, and guarantee 0px horizontal overflow at 390×844 and 1440×900.
4. Blueprint Recipes
- Global Payments Flagship Hero: Pair a colossal
Plus Jakarta Sans 800 headline (Move money at the speed of a tap) + jet capsule CTA (.pf-btn-pill) + 2px white ring CTA (.pf-btn-ring) on warm cream (#faf7f2) beside an interactive Orbital Card Wallet & Instant Send Hero Card featuring fanned selectable payment cards, live P2P amount preview, and a precision SVG global routing arc with opaque rx="4" city/rail pills. - Peer-to-Peer Send & Bill-Split Workbench: Mount
<InstantSendWidget /> with toggleable 1–5 participant chips (Maya Lin, Devon Park, Sofia Morales, Noah Patel), real-time per-person split division, optional fee breakdown line, and immediate activity ledger append. - Full-Bleed Obsidian Wallet & Footer Slab: Anchor the closing merchant fees showcase and 4-column footer on solid
#111111 ink black with warm ivory text and subtle rgba(250,247,242,0.18) hairlines.
5. Explicitly Banned Anti-Patterns
- BANNED — Hardcoded
#hex Literals in JSX/TSX: Never embed #faf7f2, #111111, #ea580c, bg-slate-900, or bg-zinc-950 directly in reusable templates; bind strictly to semantic CSS variables. - BANNED — Generic Neon Gradients or Puffy Utility Classes: Never use
from-indigo-500, from-purple-500, from-fuchsia-500, rounded-2xl, rounded-3xl, shadow-2xl, or blur-3xl — enforced by lint.json. - BANNED — Low-Contrast Orange Text on Cream: Never set body copy or small links in raw
#ea580c on #faf7f2 (< 4.5:1); use --pf-signal-text (#c2410c, 4.85:1 AA) for text signals and pair #ea580c highlight badges strictly with #111111 dark ink (5.30:1 AA). - BANNED — Shifting Unformatted Monetary Figures: Always format payment totals, split shares, and merchant fees with
.toLocaleString("en-US", { minimumFractionDigits: 2 }) inside .pf-mono. - BANNED — External Stock Placeholder URLs & Third-Party Trademarks: Never reference real card networks, payment processors, or external stock placeholder URLs anywhere. Use neutral original entities (
Payflow, Northstar, Kestrel, Vesper, Arbor, Helios, Loomis, example.com).
Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Never draw hands holding phones, physical shopping bags, storefronts, or people using flat
<svg> polygons or clipart outlines. Real-world photography MUST use verified local .webp studio assets (fetchPriority="high", locked aspect-ratio for CLS === 0, contrast-safe scrims). - High-Craft Technical Hero Cards & Precision SVGs: When rendering orbital payment routing arcs, fanned card wallets, or volume sparklines inside a Hero Card, enforce subtle specular top-edge hairlines (
inset 0 1px 0 rgba(250,247,242,0.12) on dark cards or soft atmospheric card shadow on light cards), font-variant-numeric: tabular-nums, and opaque rounded node label pills (rx="4") so SVG route labels NEVER collide with orbital arcs or adjacent badges. Never leave the right half of a Hero empty with faint rings or mock loading spinners.
Card, Diagram & Data Table Craft Standard
- DOM-First Product Visuals (Zero Slide-Style Circle Diagrams): Never depict workflows, pipelines, or architecture with numbered
01 → 02 → 03 <circle> SVGs, wavy dashed connectors, and repeated step boxes underneath. Render real miniaturized software UI in HTML/DOM: a crisp object/endpoint header, a focal tabular-nums figure with split metadata, a clickable proportional execution waterfall or timeline bar, and a flush hairline telemetry/signal matrix below with zero nested card-in-card clutter. - Unified Metric Rails Over Identical Floating Boxes: Prefer a single hairline-divided KPI rail flush to the workspace container over 4 disconnected floating rounded cards. Lead with one focal
tabular-nums value, an inline semantic delta (no redundant pill chrome), and a compact composition bar or sparkline grounded in real row data. - Dense, Interactive Data Tables: Operational lists (>6 items) must ship a toolbar (instant search, faceted filters, and a
compact/comfortable density toggle), sortable headers (aria-sort), multi-row selection with a custom color-scheme-safe checkbox and contextual bulk-action bar, multi-layer cells (primary label + mono ID + sub-meta), inline micro-meters for numeric scores, right-aligned tabular-nums values, hover-revealed quick actions, and @container-responsive column collapse with zero duplicate mobile status badges on desktop. - DOM-First Node Graphs & Topology Cards: Never render topology, ontology, DAG, module-bundle, or entity-relation graphs as
<svg><rect><text> boxes with tiny unreadable SVG text or diagonal dashed lines slicing through labels. Structure graphs as tiered HTML/DOM interactive node cards (>=12.5px titles, >=11px mono IDs, semantic status LED, inline latency/throughput/weight micro-bar, upstream/downstream highlighting) with any connector lines confined strictly to dedicated column gutters. - Visual Critique Gate: Inspect rendered cards and tables at desktop (
1440px), split-pane (700px), and mobile (390px) to verify zero clipped text, zero duplicate badges, zero dark-mode native checkbox bleed on light surfaces, and 0px horizontal overflow.