UiForge
Prompt

Checkout Clair — tunnel de paiement en 3 étapes

E-commerceMinimalStripeMicro-interactionsSlideReactTailwindFramer Motion
Prêt à l'emploi

Copie le prompt dans le presse-papier, sans quitter la page.

❯ Prompt Claude
CONTEXT & GOAL
Build a complete three-step checkout flow — cart, shipping, payment — for a fashion/lifestyle store (working brand: "Atelier Marchand"), designed to reduce abandonment for mobile-first shoppers. The signature idea: the progress bar is a tiny cardboard parcel that physically advances along a dotted route and gets visually sealed (a tape strip animates across it) each time a step is validated — turning checkout anxiety into a small, reassuring shipping story that ends with the parcel "departing" on the confirmation screen.

ART DIRECTION
Softened Swiss functionalism: the clarity of Stripe Checkout with slightly warmer ink tones and one desaturated blue accent. Zero decoration that doesn't serve comprehension. Forms are the heroes: oversized touch targets, unambiguous labels above fields (never placeholder-only), generous error copy written like a helpful human ("That card number looks one digit short").

COLOR SYSTEM
Background #FFFFFF. Step panel surface #FAFAF8. Border #E4E4DE. Primary text #191918. Secondary text #6F6F68. Accent blue #3B5BDB, hover #3450C2, active #2C44A6, for primary buttons and the active step. Success #2F9E44 for validation ticks and the sealed-parcel tape. Error #D6453D with 14px error text under fields. Warning (low stock in cart) #E8930C. Focus ring 2px #3B5BDB offset 2px, never removed.

TYPOGRAPHY
All "Inter": step titles 28px/700/1.2, section labels 14px/600 uppercase letter-spacing 0.05em in #6F6F68, field labels 14px/500, input text 16px/400 (16px minimum to prevent iOS zoom), prices 16px/600 tabular-nums, order total 24px/700 tabular-nums, helper and error text 13px/1.4. Numbers everywhere are tabular-nums so totals never jitter.

LAYOUT & GRID
Max width 1120px centered, 16px mobile / 48px desktop padding. Desktop: 7/5 split — form column left, sticky order summary right (top: 24px). Mobile: single column with a collapsible order summary accordion pinned at top ("Order total €237.80 — view details"). 8px base, 32px between form groups, 56px between major sections. Inputs 48px tall, full-width within their group; postal code and city share a 40/60 row on desktop.

SECTIONS & COMPONENTS
Step 1 — Cart: line items "Wool Overshirt, Camel, M — €145", "Canvas Tote, Natural — €38", "Merino Beanie, Charcoal — €32" with 64px thumbnails, quantity steppers (buttons disabled at 1 and at stock max, with aria-labels), remove links, low-stock warning "Only 2 left" on the beanie. Promo code field with inline apply button, success state "WELCOME10 applied — −€21.50" and error state "This code expired on June 30". Subtotal €215 − discount + shipping €4.30 = total €237.80. Step 2 — Shipping: name, email, address with autocomplete suggestions list (keyboard navigable, aria-activedescendant), then delivery slots as radio cards: "Standard — Wed July 15 — €4.30", "Express — Mon July 13 — €9.90", "Pickup point — Free", selected card gets a blue border + check. Step 3 — Payment: card number/expiry/CVC with live formatting and inline validation ticks, a mirrored visual card that fills in as the user types and flips over when the CVC field is focused; alternative payment buttons (Apple Pay, PayPal) above the form separated by "or pay by card". "Pay €237.80" button with loading spinner state and disabled-until-valid logic. Confirmation: sealed parcel departs along the route, headline "Order AM-20260712-418 confirmed", tracking promise "Tracking arrives by email within 2 hours", and a summary recap. Every step keeps a "Back" text link; the summary column shows items, totals, and reassurance icons "Free returns — 30 days · Secure payment".

MOTION
Parcel progress: parcel translates along the dotted route to the next node, 600ms cubic-bezier(0.22, 1, 0.36, 1); on step validation, a tape strip scales horizontally across the parcel 0→100% in 300ms ease-out with a subtle 1.05 squash-and-release (spring stiffness 400, damping 24). Step transitions: outgoing form slides -32px with fade (220ms ease-in), incoming slides from +32px (320ms cubic-bezier(0.22, 1, 0.36, 1)); direction reverses when navigating back. Card flip: rotateY 0→180deg, 500ms cubic-bezier(0.4, 0, 0.2, 1), perspective 1000px. Field validation tick: SVG path draws in 250ms ease-out on blur when valid. Confirmation: parcel departs with translateX 120px + fade over 800ms, followed by 12 muted-blue confetti rectangles falling for 1.2s, ease-in, no loop. Reduced motion: parcel jumps between nodes with a 150ms fade, step transitions become crossfades, card flip replaced by a caption swap, confetti disabled.

TECH & QUALITY
React 18, Tailwind CSS v4, Framer Motion (AnimatePresence with custom direction variants for steps). Structure: components/CheckoutProgress (parcel logic), components/CartStep, components/ShippingStep, components/PaymentStep, components/OrderSummary, hooks/useCheckoutState (single reducer, validates per step). Accessibility is non-negotiable for a payment flow: every input has a visible <label>, errors are linked via aria-describedby and announced in an aria-live="assertive" region, step changes move focus to the new step's <h2>, the whole flow works keyboard-only. Contrast: #191918 on #FFFFFF is 17.6:1, blue #3B5BDB on white is 6.1:1, error #D6453D on white 4.6:1. Autofill supported via correct autocomplete attributes (given-name, postal-code, cc-number…). No real payment processing — mock the submission with a 1.5s delay.
Objectif

Tunnel de checkout complet en trois étapes (panier, livraison, paiement) pensé comme un produit à part entière, pour n'importe quelle boutique mode/lifestyle. L'idée signature : une barre de progression « colis » où un petit carton avance et se scelle physiquement à chaque étape validée, transformant l'anxiété du paiement en narration rassurante.

Style

Suisse fonctionnel adouci, blanc pur et encre, un seul accent bleu, focus total sur la lisibilité

Composants
Barre de progression avec colis animé en 3 étapesRécapitulatif panier éditable avec steppers de quantitéFormulaire livraison avec autocomplétion d'adresseSélecteur de créneau de livraison en cartes radioFormulaire carte bancaire avec carte visuelle en miroirRésumé de commande sticky avec code promoÉcran de confirmation avec numéro de suivi
Animations
Avancée et scellage du colis dans la barre de progressionGlissement latéral entre les trois étapesRetournement 3D de la carte bancaire à la saisie du CVCValidation inline des champs avec coche animéeConfetti sobre à la confirmation de commande
Stack technique
React 18Tailwind CSS v4Framer Motion
Scores
9/10
Qualité
7/10
Originalité
Notes de revue

Force : le colis qui avance et se scelle physiquement à chaque étape validée transforme un tunnel de paiement générique en petite narration rassurante, avec une accessibilité de formulaire irréprochable. Faiblesse : un tunnel de checkout est par nature un composant réutilisable, donc moins « signature » qu'un concept de marque, mais c'était l'objectif assumé du brief. Prêt à l'usage.

À voir aussi

Prompts liés

E-commerce

Amara Skin — fiche produit soin visage

Minimal clinique et chaleureux, papier crème, accent sauge, typographie serif douce

Q 9/10O 8/10MinimalLuxuryScroll reveal
E-commerce

Fern & Fable — boutique de plantes d'intérieur

Organique et généreux, verts profonds sur crème, illustrations botaniques, formes arrondies

Q 9/10O 8/10MinimalOrganicMicro-interactions
E-commerce

Box mensuelle personnalisée – Curio Crate

Unboxing ludique : crème chaleureux, cobalt et jaune soleil, formes très arrondies, stickers et rubans, ombres douces façon papier découpé.

Q 8/10O 8/10PlayfulFramerMinimal