UiForge
Prompt

Data table Ledger — tri, selection et colonnes fixes

Composants UIBrutalistMinimalMicro-interactionsHover effectReactTailwindTanStack Table
Prêt à l'emploi

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

❯ Prompt Claude
CONTEXT & GOAL
Build the transactions data table for Ledger, a financial reconciliation back office used by operations teams to match bank feeds against invoices. Audience: finance ops analysts staring at this table for hours a day, so density and scannability matter more than decoration. The signature idea: the table is styled like a paper accounting ledger — thick black rule lines, a warning-yellow flat color for flagged rows — and the density switcher physically resizes row height like adjusting a receipt printer, with a satisfying mechanical snap.

ART DIRECTION
Brutalist, unapologetically structural: no rounded corners, no soft shadows, 2px solid black borders everywhere, a strict off-white paper background instead of pure white. References: physical ledger books, Swiss rail timetables, brutalist-web aesthetics. What makes this not just "ugly on purpose" is precision — every border aligns, every number is right-aligned and tabular, and the one accent color (warning yellow) is reserved exclusively for rows needing human attention.

COLOR SYSTEM
Background/page: #F4F2EC. Table surface: #FFFFFF. Border (all rules): #111111, 2px on the outer frame and header, 1px on row dividers. Text primary: #111111. Text secondary (metadata, IDs): #5A5A52. Header background: #111111, header text: #F4F2EC. Row hover: #ECEAE2. Flagged/selected row background: #FFF3C4, flagged text: #3D3100. Success/matched badge: #1F7A3D on #E4F3E7. Error/unmatched badge: #B3261E on #FBE7E5. Focus ring: #2952CC.

TYPOGRAPHY
All data cells in IBM Plex Mono, 13px/20px weight 400, tabular-nums, right-aligned for currency columns. Column headers in IBM Plex Sans 11px/16px weight 700, uppercase, letter-spacing 0.06em. Row primary label (merchant name) IBM Plex Sans 14px/20px weight 500. Total row figures IBM Plex Mono 15px weight 700. Empty/error state message IBM Plex Sans 16px/24px weight 600.

LAYOUT & GRID
Full-bleed within a 1440px max container, no side padding on the table itself (it touches a 2px black frame). Columns: checkbox (40px, sticky left), Date (100px), Merchant (sticky left after checkbox, 240px min), Reference (160px), Category (140px), Amount (120px, right-aligned), Status (100px), Actions (48px, sticky right). Row height: comfortable 56px, compact 44px, dense 32px. Breakpoints: desktop shows all columns; tablet collapses Reference and Category into an expandable row-detail chevron; mobile renders each row as a stacked card with label/value pairs instead of a table.

SECTIONS & COMPONENTS
Header row: black background, each sortable column header shows an up/down chevron pair, active sort direction highlighted in #F5C400 with the inactive chevron dimmed to 30% opacity; clicking cycles ascending, descending, none. Sticky columns (checkbox, Merchant) cast a 4px hard-edged shadow (#000000 at 15%, no blur) when horizontal scroll is active, signaling more content exists. Density switcher: three-way segmented control "Comfortable / Compact / Dense" top-right, each option a real radio button styled as a bracket toggle. Bulk actions bar: appears above the header when one or more rows are selected, reading "3 selected — Reconcile / Flag / Export", background #111111, text #F4F2EC, dismiss via an "x" that clears the selection. Sticky total row: pinned to the table bottom, background #111111, shows the column sum for Amount, label "TOTAL — 248 transactions". Row states: default white, hover #ECEAE2, selected/flagged #FFF3C4 with a small flag glyph in the Status column, focus-visible on interactive cells gets a 2px #2952CC outset ring. Status badges: "Matched" green pill, "Unmatched" red pill, "Pending" neutral grey pill #E4E2D8. Loading state: 8 skeleton rows with grey (#E4E2D8) animated bars in place of text, header stays static. Empty state: centered inside the table frame, "No transactions match these filters" with a "Clear filters" text link. Error state: a full-width banner replacing the total row, "Sync failed — last updated 14:02. Retry" in the error palette with a retry button.

MOTION
Density change: row height transitions over 220ms cubic-bezier(0.4,0,0.2,1), cell padding and font-size interpolate together so text never clips mid-transition; a soft 1px snap flash (border color pulses to #F5C400 and back) fires at animation end. Sort: the clicked column's cells briefly highlight background #FFF3C4 for 300ms then fade to transparent over 200ms, signaling what changed. Bulk actions bar: slides down from height 0 to 44px over 200ms ease-out as soon as selection exceeds zero, reverses on deselect. Skeleton loading: a diagonal shimmer sweeps left to right every 1400ms, linear, looping. Row hover: background color transitions 100ms linear (fast, no lag on dense financial data). Reduced motion: density changes and sort highlights become instant with no transition; skeleton shimmer is replaced by a static grey fill with a 60% opacity pulse capped at 2 cycles.

TECH & QUALITY
React 18 with TanStack Table v8 for sorting, selection, and column-pinning state, Tailwind CSS v4 for styling, no animation library needed beyond CSS transitions given the mechanical, non-bouncy motion language. Files: LedgerTable.tsx, columns.tsx, DensitySwitcher.tsx, BulkActionsBar.tsx. The table uses a semantic table element with th scope="col", sortable headers are button elements with aria-sort reflecting state; checkboxes have visible labels via aria-label="Select row for {merchant}". Contrast of #111111 on #FFFFFF is 19.6:1; warning yellow #F5C400 text uses dark #3D3100 to maintain 7:1.
Objectif

Table de donnees avancee pour Ledger, back-office de rapprochement financier utilise par les equipes operations. Idee signature : bordures noires epaisses facon registre comptable papier et un mode densite qui redimensionne reellement les lignes comme si on tournait la molette d'une imprimante a tickets.

Style

Brutalist facon registre papier, bordures noires epaisses, aplats jaune avertissement

Composants
En-tete de colonnes triable avec indicateur de directionColonnes fixes (checkbox + nom) au scroll horizontalSelecteur de densite (confortable/compact/dense)Ligne de total sticky en bas de tableauMenu d'actions groupees sur selection multipleEtat de chargement en squeletteEtat vide « Aucune transaction »Etat d'erreur de synchronisation
Animations
Redimensionnement fluide des lignes au changement de densiteHighlight bref de la ligne au triApparition de la barre d'actions groupeesBalayage du squelette de chargement
Stack technique
React 18TanStack TableTailwind CSS v4
Scores
9/10
Qualité
9/10
Originalité
Notes de revue

Force : le parti pris de registre comptable papier (bordures noires épaisses, densité façon molette d'imprimante à tickets) est une idée signature rare pour une data table, très bien exécutée avec de vrais états. Faiblesse : aucune identifiée. Prêt à l'emploi tel quel.

À voir aussi

Prompts liés

Composants UI

Carte postale abonnée – newsletters risographes de Feuillette

Risographe artisanal, papier crème, bleu outremer et rose fluo en bichromie, grain imprimé, esprit fanzine culinaire.

Q 7/10O 9/10PrintPlayfulBrutalist
Composants UI

Colophon – trois fins de page pour Ridgeline

Éditorial serif clair, papier ivoire, encre presque noire, vert forêt en accent, filets fins façon livre imprimé.

Q 9/10O 9/10EditorialMinimalPrint
Composants UI

Design system Verse — tokens, boutons, inputs, cards et badges

Light suisse fintech, bleu nuit et or discret, rigueur typographique de specimen

Q 9/10O 8/10StripeMinimalLuxury