Sign options with segments and switches

A configurator panel: name chips, square segmented radios for material (with flat swatches) and size, two pill switches, a live price and one wide button.

ControlsFreeFrom Lintel, SignatureAbout 6k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The 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.

589 words
Download .zip
# Sign options with segments and switches

One controls component, 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 compact panel that sets every option of a made-to-order product and shows the price as it changes.

## Structure
1. fieldset of name chips with a help line that counts the letters
2. material fieldset: three square segments in one row, each with a 14px flat swatch
3. size fieldset: two square segments with the dimensions
4. a row of two labelled pill switches
5. quote: large price, one line of lead time
6. full-width dark button to enquire

## Type
Legends and switch labels Ysabeau Office 600 12px capitals at 0.14em. Chips Hento 18px with joins on. Segments Ysabeau Office 15px. Price Hento 44px, lining figures. Help and lead lines 15 to 16px.

## Colour
Panel on #EAEBE9. Segments outlined #21262B; a checked segment fills #21262B with Portland text; hover #DEDCD5. Swatches slate #3B4045, stone #D9D4C7, brass #B8963F. Switch off: Portland track with an ink knob; on: ink track with a Portland knob. Muted text #565C63. Chip borders #CFCCC6.

## Spacing and lines
Rows 24px apart. Segments 52px tall, sharing borders (-1px overlap). Chips 40px tall with 8px gaps. Switches 56 by 32px with a 24px knob. Quote 18px below a 1px ink rule. Button 48px.

## Behaviour
Changing a chip, material, size or switch updates the price at once (base price by size plus a price per letter by material) and the lead-time line. Switches slide their knob over 260ms and widen it while pressed. On the page these options also redraw the sign.

## Responsive
Under 480px segments shrink to 13px text, swatches hide and the switches wrap to two per row.

## Accessibility
Segments are native radios in fieldsets with legends and a visible focus ring offset 3px; switches are buttons with role switch, aria-checked and aria-labelledby; chips use aria-pressed; the price is plain text.

## Built values (from code.html)
- Fonts: Hento 400 (self-hosted: fonts/hento.woff2); Ysabeau Office 400 to 600 (self-hosted: fonts/ysabeau.woff2). Self-hosted files sit in fonts/ in the block download.
- Colour variables: --portland #EAEBE9, --slate #21262B, --leaded #565C63, --hair #CFCDC6, --white #FFFFFF, --face-slate #3B4045, --cut-white #F2F1EC, --face-brass #B8963F, --enamel #151515, --face-stone #D9D4C7, --cut-grey #3A3A37.
- Font variables: --serif "Hento", "Didot", Georgia, serif; --sans "Ysabeau Office", "Gill Sans", "Helvetica Neue", Arial, sans-serif.
- Size variables: --s1 6px, --s2 12px, --s3 18px, --s4 24px, --s5 36px, --s6 54px, --s7 84px, --s8 132px.
- Media queries: max-width 720px, max-width 1023px, max-width 480px, prefers-reduced-motion.
- No media files.
- Script: none, CSS only.

## Content to replace
- [Names]: four names
- [Material]: three materials
- [Size]: two sizes in millimetres
- [Switches]: two options
- [Quote]: price and lead time
- [Button]: enquire with the chosen options

## 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

Controls

Every controls block

Same page

More from Lintel

See the page