UiForge
Prompt

Vague fantôme – skeletons synchronisés de Ledgerly

Composants UIMinimalVercelAppleMicro-interactionsFadeStaggerReactTailwindFramer Motion
Prêt à l'emploi

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

❯ Prompt Claude
1. CONTEXT & GOAL
Build the skeleton-loading system for Ledgerly, a financial dashboard where small businesses track cash flow, invoices and expenses. Users open it every morning; the loading experience is seen thousands of times, so it must feel composed, not busy. Deliverables: skeleton variants for KPI cards, a transactions table, a profile card and text blocks, plus a demo page with a state toggle (loading / loaded / error) and a simulated 2.5s load. Signature idea: instead of independent shimmering rectangles, one single diagonal light wave sweeps the entire page in sync — every placeholder glints as the same wavefront passes, like a lighthouse beam crossing the interface — and content then resolves zone by zone in the wave's travel order, top-left to bottom-right.

2. ART DIRECTION
Accounting-grade calm: cool slate grays on a near-white ground, crisp 8px-radius surfaces, no decorative color while loading — the interface holds its breath in monochrome, and the brand's blue only returns with the data. The synchronized wave gives the page one coordinated pulse instead of a nervous field of independent shimmers; that restraint is the signature. Skeleton shapes must match final content geometry exactly to guarantee zero layout shift.

3. COLOR SYSTEM
Page background #F6F8FB. Card surface #FFFFFF, border #E3E8F0. Skeleton base #E8ECF2, skeleton dark variant (for avatar and chart shapes) #DCE2EB. Wave highlight: linear-gradient 105deg, transparent, #FFFFFF at 70% opacity, transparent — 30% width of the viewport diagonal. Text primary (loaded) #1E2633, secondary #5C6B82, muted #93A1B5. Brand blue (loaded accents) #2563EB, hover #1D4ED8, positive #16A34A, negative #DC2626. Error state: icon and border #DC2626 at 30%, surface #FEF2F2, text #7F1D1D, retry button #1E2633 with white text, hover #2563EB. Focus ring 2px #2563EB offset 2px. Patience note text #93A1B5. Prolonged-wait pulse: skeleton base to #EFF2F7 and back.

4. TYPOGRAPHY
UI in 'Figtree' (Google Fonts): dashboard title 24px/30px weight 700, KPI values 28px/34px weight 700 with 'Roboto Mono' for figures, KPI labels 13px/18px weight 500 color #5C6B82, table headers 12px/16px weight 600 uppercase letter-spacing 0.06em, table cells 14px/20px (amounts in 'Roboto Mono' tabular right-aligned), profile name 17px/22px weight 600, body text blocks 15px/24px. Patience note 13px/18px italic. Skeleton bars mimic these exact heights: 34px value bars, 18px label bars, 20px cell bars, 24px text lines with the last line at 60% width.

5. LAYOUT & GRID
Demo reproduces a dashboard shell: container max 1240px, 24px padding, header row (title + profile card 280px right), then 4 KPI cards in a row (grid 4 columns, 16px gaps; 2x2 under 1024px; stacked under 640px), then the transactions table full-width (8 rows, 5 columns: date, counterparty, category chip, amount, status), then two text blocks side by side (notes and insights). Profile card: 48px avatar circle + two lines. Table columns keep fixed proportions so skeleton and content align: 96px / flex / 140px / 120px / 100px. Toggle bar pinned top of demo with three segmented options and a replay button. Spacing rhythm 24px between zones.

6. SECTIONS & COMPONENTS
Loaded content is real: KPIs — 'Cash on hand 84,320 €' (+2.4% vs June, green), 'Outstanding invoices 23,180 €' (9 invoices), 'Monthly burn 31,450 €' (-1.1%, green), 'Runway 8.2 months'. Table rows like '11 Jul — Figma BV — Software — -45,00 € — Cleared', '10 Jul — Atelier Roux — Client payment — +6,800,00 € — Cleared', '09 Jul — URSSAF — Taxes — -3,240,00 € — Pending'. Profile: 'Claire Fontan — Ledgerly Pro'. Text blocks: a two-paragraph cash-flow insight ('July collections are tracking 12% ahead of June...'). Skeleton components: SkeletonBar (height, width, radius props), SkeletonCircle, SkeletonTableRow, all reading the wave position from a shared context so their glint fires in page-coordinate sync. States: loading (wave sweeping every 1800ms), resolving (per-zone crossfade), loaded, prolonged wait (after 8s, skeletons switch to a slow pulse and a patience note appears: 'Still fetching from your bank — up to 30 seconds on Mondays.'), error (zones collapse into an error card: 'We could not reach your bank connection.' with Retry button carrying hover/focus/active/loading states), and empty (table resolves to 'No transactions this week — enjoy the quiet.' row). Toggle and replay have full interactive states.

7. MOTION
The wave: a single fixed-position gradient overlay spanning the viewport diagonal, translating from top-left (-40% offset) to bottom-right (140%) over 1400ms cubic-bezier(0.4,0,0.2,1), repeating every 1800ms; skeletons reveal the glint via background-position sync or a shared CSS custom property --wave-x updated by one rAF loop — one clock, zero drift. Resolution: when data arrives, zones resolve in wave order — each zone waits until the next wavefront passes it, then crossfades skeleton to content over 320ms cubic-bezier(0.16,1,0.3,1) with a 4px translateY settle; KPI numbers count up from 0 over 500ms after resolve. Prolonged pulse: opacity 1 to 0.75, 2000ms ease-in-out alternate. Error collapse: skeleton zones scale 0.98 + fade 200ms, error card fades in 240ms. prefers-reduced-motion: wave hidden entirely (static #E8ECF2 skeletons), resolution is simultaneous 150ms opacity crossfade, no count-up (values appear final), pulse disabled, patience note still appears.

8. TECH & QUALITY
React 19, Tailwind CSS v4 tokens, Framer Motion for crossfades only (the wave is one CSS transform on a shared overlay, GPU-composited, no per-element JS). Files: components/skeleton/WaveProvider.tsx, SkeletonBar.tsx, SkeletonCircle.tsx, SkeletonTable.tsx, skeletons/DashboardSkeleton.tsx, demo app/demo/skeleton/page.tsx with mocked fetch (2.5s, seeded data, error and slow scenarios). Accessibility: loading zones use aria-busy=true and one page-level status region announcing 'Loading your dashboard' then 'Dashboard loaded' (aria-live=polite) — never per-skeleton announcements; skeleton shapes aria-hidden; zero cumulative layout shift verified by matching geometry; contrast on loaded content (#1E2633 on #FFFFFF = 14.7:1, #5C6B82 = 5.6:1); error card focuses its heading on appearance for keyboard users; toggle is a radiogroup; reduced-motion path removes the wave without removing the loading affordance.
Objectif

Ledgerly est un dashboard de gestion financière pour PME. Ce système de skeleton loading couvre cartes KPI, table de transactions, profil et blocs de texte. Idée signature : au lieu de shimmers indépendants, une unique vague de lumière diagonale traverse toute la page de façon synchronisée — tous les placeholders scintillent au passage du même front lumineux, comme un phare balayant l'interface — puis chaque zone se résout en contenu dans l'ordre de la vague.

Style

Light froid et professionnel, gris ardoise bleutés, surfaces nettes, précision comptable.

Composants
Skeleton de rangée de 4 cartes KPISkeleton de table de transactions 8 lignesSkeleton de carte profil avec avatarSkeleton de paragraphes de texteVague de shimmer synchronisée pleine pageRésolution progressive vers le vrai contenuToggle de démo chargement/contenu/erreurÉtat d'échec avec retry après skeleton prolongé
Animations
Balayage diagonal synchronisé de la vague lumineuseRésolution en fondu croisé skeleton vers contenuStagger de résolution dans l'ordre de la vaguePulsation lente des blocs en attente prolongéeApparition du message de patience après 8 secondes
Stack technique
React 19Tailwind CSS v4Framer Motion
Scores
8/10
Qualité
9/10
Originalité
Notes de revue

Force : la vague de lumière diagonale unique et synchronisée qui traverse toute la page, plutôt que des shimmers indépendants, est une idée de loading signature rare et élégante. Faiblesse : le prompt dépasse la fourchette de mots (941). Conservé tel quel, la précision technique (aria-busy, zero layout shift) reste exemplaire.

À voir aussi

Prompts liés

Composants UI

Facettes qui atterrissent – la recherche de Curio

Light neutre dense façon Vercel, blanc cassé, noir doux, vert émeraude en accent, précision d'outil pro.

Q 8/10O 8/10VercelMinimalApple
Composants UI

Centre de notifications Harbor — dropdown et page complete

Warm neutrals facon carnet papier, encre douce, chaleureux et feutre

Q 9/10O 8/10MinimalFramerMicro-interactions
Composants UI

Formulaires d'authentification Solstice — login et signup

Pastel doux et lumineux, degrade d'aube, arrondis genereux, ambiance apaisante

Q 9/10O 9/10MinimalFramerApple