Plan card with billing toggle

One recommended plan in a bordered card with a monthly or yearly switch, and the cheaper and larger plans reduced to two plain rows under it.

PricingFreeFrom Tally, ProductAbout 8k 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.

686 words
Download .zip
# Plan card 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 pricing section for a small business tool: one plan in a bordered card with a monthly or yearly switch, the rest as plain rows.

## Structure
1. Left column: headline, one paragraph
2. Card header: plan name, chip, billing switch
3. Amount line: huge price, two line note
4. Five tick rows, then the button
5. Two other plan rows: name, price, line
6. Mono footnote with terms

## Type
Display Chillax (Fontshare), text Satoshi (Fontshare), mono DM Mono (Google). Headline 600 clamp(42px,5.6vw,84px)/0.98, -0.035em. Paragraph clamp(17px,1.35vw,19px)/1.5. Plan name 600 26px/1. Chip and footnote mono 500 12px/1.45 uppercase. Switch 500 15px/1. Price 600 clamp(96px,10vw,160px)/0.8, -0.05em. Its note 17px/1.35. Tick rows 17px. Button 500 16px/1. Other plan names 600 20px/1, their text 16px.

## Colour
Page and card #FFFFFF, text and ticks #121212, second text #5F5F5A, rules and card border #E3E3DE, switch track #F3F3F1, chip #FFC93C. Chosen switch button #121212 with #FFFFFF; unchosen #5F5F5A, hover #121212. Button #FFFFFF on #121212, hover and pressed #2B2B2B. AA: #5F5F5A on white, #121212 on #FFC93C.

## Spacing and lines
Section clamp(120px,14vw,220px) top and bottom, container 1440px, sides clamp(16px,4vw,64px). 12 columns, gap clamp(14px,1.8vw,24px): text 1 to 5, card 7 to 12. Paragraph 24px below the headline. Card padding clamp(24px,2.6vw,36px), 32px radius, 1px border. Switch track 4px, buttons 40px tall, 44px wide minimum, round. Amount clamp(26px,3vw,40px) above, clamp(22px,2.4vw,30px) below. Tick rows 12px padding between 1px rules, 28px to the 52px round button. Other rows 18px apart: 110px 150px 1fr, 16px gap, 1px rule each.

## Behaviour
A small script runs the switch: the buttons carry aria-pressed, a click flips them and swaps the price, its note and the other two prices. Switch colours 350ms cubic-bezier(.16,1,.3,1), button fill 450ms, press 0.97 scale 300ms, stacked arrows slide 130% at 500ms cubic-bezier(.7,0,.2,1). On scroll into view each part rises 20px and fades, 700ms cubic-bezier(.2,.7,.2,1), 60ms apart, one IntersectionObserver at 12%, none under prefers-reduced-motion.

## Responsive
Under 980px the grid stacks, card 40px under the text. Under 640px body text 17px, price fixed at 96px, and other plan rows put name and price on one line with the description beneath.

## Accessibility
Switch: a div with role=group, aria-label Billing period, two buttons with aria-pressed, Enter or Space pressing them. Wrap price and note in aria-live=polite. Ticks aria-hidden. Section labelled by the headline id. Focus ring 2px #121212 at 3px offset.

## Built values (from code.html)
- Fonts: DM Mono 400, 500 (Google Fonts); Chillax 500, 600, 700 (Fontshare); Satoshi 400, 500, 700 (Fontshare).
- Colour variables: --sun #FFC93C, --sun-2 #FFD766, --sun-t #FFF1C4, --ink #121212, --ink-2 #1B1B1B, --ink-3 #2B2B2B, --white #FFFFFF, --soft #F3F3F1, --muted #5F5F5A, --muted-d #A3A39C, --on-sun #3F3925, --line #E3E3DE, --line-2 #D2D2CC, --line-d rgba(255,255,255,.13).
- Font variables: --display "Chillax",ui-sans-serif,system-ui,sans-serif; --text "Satoshi",ui-sans-serif,system-ui,sans-serif; --mono "DM Mono",ui-monospace,"SFMono-Regular",monospace; --ios -apple-system,"SF Pro Text",system-ui,"Helvetica Neue",Arial,sans-serif.
- Size variables: --pad clamp(16px,4vw,64px), --gap clamp(14px,1.8vw,24px), --sec clamp(120px,14vw,220px).
- Media queries: max-width 979px, max-width 640px.
- No media files.
- Script: yes, a small inline script.

## Content to replace
- [Headline]: what one plan covers, 5 to 8 words
- [Paragraph]: two sentences: the trial, cancelling
- [Plan name and chip]: plus a two word chip
- [Price pair]: monthly and yearly figures
- [Features]: five lines, one capability each
- [Other plans and footnote]: two prices, a currency line

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

Pricing

Every pricing block

Same page

More from Tally

See the page