Size table with billing toggle
Three sizes compared in one table, with a billing switch that rewrites every price and a row choice that renames the button.
Links in the preview stay on the block.
Open on its ownThe prompt
One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.
769 words
# Size table with billing toggle One pricing section, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML. ## Goal A pre-order section for a hardware product: three sizes compared row by row, one chosen. ## Structure 1. Rule row, cross marks at each end 2. Head grid: h2, lede, two button segmented control 3. Table with six column headers 4. Row: radio label with selection dot, drawing, model name, sub label, badge 5. Then capacity with unit, two plain cells, price cell 6. Closing row: h2, pill naming the model, paragraph ## Type Syne 600: head h2 clamp(40px,4.6vw,72px)/1, -.04em; closing h2 clamp(48px,6.2vw,104px)/.92, -.05em; model names 22px/1. IBM Plex Sans: body 18px/1.5; lede 18px/1.55, 31em; cells 15.5px/1.4; sub label 14px; footnotes 13.5px/1.5; closing paragraph 16.5px/1.55; segmented buttons 500 15px; pill 500 16px. IBM Plex Mono, tabular: rule row and headers 11.5px/1.45 uppercase; capacity 500 30px, unit 13px; price 500 26px over an 11px uppercase line; badge 500 11px/1.2. ## Colour Paper #E9EBE6 page, sheet #F3F4F0 chosen row, ink #1D1B3A, muted #5F5B72, hairlines rgba(29,27,58,.12), .22, .42. Teal #00A99D with ink: selection dot, chosen row bar, badge, pill. #006F66 for focus rings and the chosen radio rim. Column grid rgba(29,27,58,.055) behind, row hover rgba(29,27,58,.03), pill fills ink with paper text. ## Spacing and lines Padding clamp(120px,13vw,200px) top, four fifths bottom; container 1260px; gutters clamp(16px,3.2vw,52px); rail 184px from 1024px, 204px from 1360px; twelve columns, gap clamp(14px,1.7vw,24px). Rule row: 1px line, text 14px above, clamp(44px,5vw,72px) below. h2 columns 1 to 6, right block 8 to 12. Control 24px under the lede: 3px padding, 999px border, 42px buttons. Table clamp(40px,5vw,64px) lower; headers 12px over a 1px rule, cells 18px on 1px rules. Footnotes 20px below, three columns. Closing row clamp(88px,10vw,150px) lower on an 18px rule, pill 48px. ## Behaviour The middle row starts chosen: radio checked, sheet ground, 3px teal bar on its first cell. Clicking a row selects it, checking its radio and renaming the pill. Segmented buttons swap aria-pressed and rewrite prices from two figures stored per cell, the small line switching per month to installed. Row hover, on button fill and selection dot land in 0.3s to 0.35s. Pill hover and focus: ink fills from the leading edge 0.55s, the arrow slides out as a copy slides in 0.5s, press .97. Head, lede, control and table rise 20px into view once, 0.7s cubic-bezier(.2,.7,.2,1), 60ms apart. ## Responsive Under 1024px: no rail, head and closing row one column, table head hidden, rows become two column cards, model cell full width, others labelled from a data attribute in 11px mono capitals, prices left, no delivery note. ## Accessibility Hidden caption for the table; headers scope col, model cell scope row. Real radio inputs behind the labels, so arrows move between sizes. The badge is real text. Focus ring 2px #006F66, offset 3px; radio labels 44px. ## Built values (from code.html) - Fonts: IBM Plex Mono 400, 500 (Google Fonts); IBM Plex Sans 400, 500, 600 (Google Fonts); Syne 500, 600, 700 (Google Fonts). - Colour variables: --paper #E9EBE6, --sheet #F3F4F0, --ink #1D1B3A, --ink-2 #26244A, --muted #5F5B72, --line rgba(29,27,58,.12), --line-2 rgba(29,27,58,.22), --line-3 rgba(29,27,58,.42), --teal #00A99D, --teal-2 #14BDB0, --teal-ink #006F66, --on #E9EBE6, --on-mu rgba(233,235,230,.7), --on-line rgba(233,235,230,.12). - Font variables: --display "Syne",ui-sans-serif,system-ui,sans-serif; --text "IBM Plex Sans",ui-sans-serif,system-ui,sans-serif; --mono "IBM Plex Mono",ui-monospace,"SFMono-Regular",monospace; --ios -apple-system,"SF Pro Text",system-ui,"Helvetica Neue",Arial,sans-serif. - Size variables: --rail 0px, --pad clamp(16px,3.2vw,52px), --gap clamp(14px,1.7vw,24px), --sec clamp(120px,13vw,200px), --bar 0px. - Media queries: min-width 1024px, min-width 1360px, max-width 1023.98px. - No media files. - Script: yes, a small inline script. ## Content to replace - [Rule row]: number, batch label, delivery note - [Headline]: eight to ten words: choice and deposit - [Lede]: two sentences on each size - [Sizes]: model, capacity, hardware, backup, fit - [Prices]: two a row, monthly and once - [Drawings]: three, 76 by 64, inline SVG - [Footnotes]: three lines on terms - [Closing]: headline and paragraph ## Rules Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA. ## Output Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.
More like this



