Skip to content

No.342 · Pricing

Lightbox Compare

A plan comparison on a light table: the grid sits dim until you point at a plan, then a lamp slides beneath its column and marks what that plan adds over the one before.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Paper

Build a full plan comparison as a real table (caption, scoped column and row headers, one tbody per feature group: Build / Collaborate / Operate). The table sits on a panel like film on a light table: every plan column is dim (about 35% ink). Behind the table, one 'lamp' — a rounded, warm, softly glowing rectangle — is absolutely positioned to the measured left and width of the lit plan's column header, and slides between columns (left/width, 480ms expo-out). The lit column's header and cells come up to full ink. The lit plan is whichever column the pointer is over or whose button has focus, falling back to the selected plan, so the lamp rests on your choice when you look away. In the lit column, every feature the plan adds over the plan to its left (included where it wasn't, or a bigger value) gets a small mono 'New in Team' tag in the accent colour, fading in. Each header has the plan name in mono caps, a serif price, a note and a 'Choose' button (the plan name is in its accessible label) (aria-pressed; the chosen one reads 'Selected' and is filled). Under 680px the table is replaced by a plan radiogroup and one glowing sheet for the chosen plan: its features grouped, with the same 'New in' tags and unavailable lines dimmed, and a full-width 'Choose' button. Selected variant — Paper (paper): Palette for this theme (Paper): --lb-accent #b4541f; --lb-dim rgb(27 26 23 / 0.38); --lb-film rgb(255 255 255 / 0.35); --lb-focus #2f5fd0; --lb-glow rgb(255 236 190 / 0.9); --lb-ink #1b1a17; --lb-light #fffdf6; --lb-line rgb(27 26 23 / 0.08); --lb-muted #6f6a62; --lb-panel #e9e6df. Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "paper". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Point at or tab to a plan to light its column; choose a plan to keep the lamp on it. On phones, switch plans with the tabs. Motion: Lamp slides 480ms; columns brighten 300ms; 'New in' tags fade in 420ms; the phone sheet rises 420ms when the plan changes. Accessibility: A semantic table with caption, scope and grouped rows; ticks and dashes have text alternatives. Focusing a plan's button lights it exactly as hovering does. The narrow layout replaces the table instead of duplicating it for assistive tech. Reduced motion moves the lamp instantly. Responsive behavior: Fixed table layout down to 680px of container width, then one plan at a time. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Point at or tab to a plan to light its column; choose a plan to keep the lamp on it. On phones, switch plans with the tabs.
Motion
Lamp slides 480ms; columns brighten 300ms; 'New in' tags fade in 420ms; the phone sheet rises 420ms when the plan changes.
Accessibility
A semantic table with caption, scope and grouped rows; ticks and dashes have text alternatives. Focusing a plan's button lights it exactly as hovering does. The narrow layout replaces the table instead of duplicating it for assistive tech. Reduced motion moves the lamp instantly.
Responsive
Fixed table layout down to 680px of container width, then one plan at a time.