Labs · the UI guide

The Stripe kit.

Every class and component of the design plan, in both themes. Later steps add their component here first and screenshot it here.

§2.1 Type scale

One class per tier.

Each bundles face, size, line-height, weight and tracking. The pixel face only at 26.316 / 39.474 / 52.632 / 78.948; weights 400 / 500 / 600; nothing under 11px.

.display-pixel-hero · 78.948 from xl (52.632 from sm, 39.474 below) · lh 1.05 · the specimen, not the hero

Discounts, built for Stripe.

.display-pixel · 52.632 from sm · the home h1 (owner's choice) and sub-page h1s

Discounts, built for Stripe.

.display-pixel-sm · 39.474 · sub-page h2s, the docs h1

Before you buy.

.numeral · GP Square 26.316 · plan prices, stat numerals, step counters

$102.00

01 · 02 · 03

.total · Geist 28 / 32 · 600 · −0.02em · the hero card's total only

$102.00

.total-sm · Geist 20 / 26 · 600 · −0.01em · the Specimen total, the demo-checkout summary

$102.00

.h-md

24 / 32 · 500 · −0.02em

panel and chapter titles

What it does. What it doesn't.

.h-sm

18 / 26 · 600 · −0.01em

plan names, step titles, FAQ questions

Build it from a preset.

.copy-lg

18 / 30 · 400 · ink-2

leads under display headings, ≤46ch

Seat tiers, partner rates, bundles, usage allowances and intro ramps.

.copy

15 / 24 · 400 · ink-2

bodies, ≤48ch

Pick a type, start from a preset, save it as a Stripe coupon.

.copy-sm

14 / 22 · 400 · muted

supporting text, chips, button labels

One price for every discount type and any size of business. No usage fees, no cut of your revenue.

.caption

13 / 20 · 400 · muted

reassurance lines, footnotes, specimen rows

Free in test mode. Pro is free until January 1, 2027, then $29.99 a month.

.label

Mono 12 / 16 · 600 · +0.12em · uppercase

column heads; .kicker is the same in magenta

Upcoming invoice

.kicker

as .label, tomato-600 (tomato-300 on dark)

section kickers

Verified on Stripe

.micro

Mono 11 / 16 · 500 · muted

ids, axis labels, the limit line. The floor

Tiers count what is on one invoice.

The grey rule, size-keyed

.copy-lg and .copy are ink-2. (This line is .copy.)

.copy-sm, .caption and .micro are muted-foreground. (This line is .copy-sm.)

Headings are ink. Never two greys side by side at one size.

§2.5 Component layer

One button, one card, one pill.

Buttons step a colour on hover and never opacity; cards wear a 7% ring and the drop shadow on light, the hairline ring on dark; chips, badges, pills and the three kit blocks.

.dk-btn · -primary · -ink · -secondary · -quiet · -sm · :disabled

Get ProSee pricing

Hover steps tomato-700 (tomato-400 on dark) and ink → ink-2; :active scales .97 under no-preference; focus-visible is a 2px ring at 3px offset. Disabled is a colour, never opacity: the primary fill washes toward the surface under an opaque label, the others fall back to the surface with a muted label. Tab through to see it.

On navy: .dk-btn-primary · .dk-btn-quiet.dk-btn-on-navy · text-on-navy · text-on-navy-muted

Get ProTry the demo storeFree in test mode. Live when you are.On Shopify? Discount Kit for Shopify is live on the App Store.

.dk-card · p-6 sm:p-8

Radius 1.25rem, 7% ring, --shadow-card on light, --ring-card on dark.

.dk-card-inset · p-4

Radius 0.875rem on the muted wash.

.dk-card-ruled[data-cols="2"] · the Verified chapter's card

What it does.

Runs inside Stripe

A discount script Stripe runs when it prices an invoice; nothing to host.

Verified before it goes live

Stripe's own invoice preview sits beside the app's, before you save.

How it works

the columns stack below lg with one hairline between

What it doesn't.

One Discount Kit discount per subscription

Classic coupons still stack beside it.

A failing script gives nothing, silently

Stripe emails your Stripe account, at most once a day per extension.

Every limit written down, with its source

.dk-pill (one per page) · .dk-chip · .dk-badge · .dk-block · .dk-block-sm · .dk-block-jade

.dk-block 7px.dk-block-sm 5px.dk-block-jadeUnder forced colors each keeps a currentColor border (emulate it in DevTools → Rendering).

§2.2 Layout

SectionHeader, with every slot.

Kicker → heading mt-4 → lead mt-5 → CTA row mt-8 → content mt-14 lg:mt-16. This header is the demo; the aside holds the quiet link.

FactStrip · the hero's four facts · row="xl": one row from xl (the fourth fact wraps the lg row 3 + 1), 2×2 from sm, a stack below sm

FactStrip · the how-it-works trust row · row="none": its four facts (≈1227px) never fit the 1132px column, so the grid holds · a fact without a page prints unlinked

ProofPill ×3 under the "On Shopify:" label (the Verified chapter's provenance row)

On Shopify:Build Award· 2026Built for Shopify4.9· 95 reviewsOptizio Ltd, registered in England and Wales.

Stage · the lit plate behind a hero card, no frame

A card on the Stage

The one gradient a page may carry.

HeroBand · variant hero · pill, h1, lead, CTA pair, reassurance, the visual on a Stage, the fact strip · enter (replay with the button at the top)

Discounts, built for Stripe.

Seat tiers, partner rates, bundles, usage allowances and intro ramps, built in your Dashboard and run by Stripe.

Free in test mode. Pro is free until January 1, 2027, then $29.99 a month.

Tiered discount

Seat volume 5 / 10 / 25

Stripe Dashboard
Upcoming invoiceNov 1
Team seats12 × $10.00 per month$120.00
Volume discount · 15%−$18.00
Total$102.00

Tiers count what is on one invoice.

An upcoming Stripe invoice for 12 team seats at $10.00, priced by Discount Kit's Seat volume 5 / 10 / 25 preset: 15% off every seat, $18.00 off, $102.00 in total.

HeroBand · variant compact · pt-10 sm:pt-12, so the sign-up form and the demo store start higher · kicker, h1, lead; the sign-up pages pass no CTA (the form is the action), the demo page a quiet "Open the store ↓"

Sign up

Get Discount Kit Pro.

Free until January 1, 2027, then the launch price of $29.99 a month, for live mode with every discount type. Test mode stays free.

§2.5 · §2.6 Specimen

Specimen, not screenshot.

Six variants from the data module and the fixtures. A currency segment only where families.md records a computed row; the app's own captions; derived rows marked and never in a Stripe column.

invoice · one per family via from={family.specimen} · Simple carries USD · JPY, shown in both states

Monthly plan$60.00
Amount off · floor $50.00−$10.00
Total$50.00

USD invoices only; other currencies get nothing.

Priced by the code Stripe runs · Amount off with a floor
Monthly plan¥6,000
Amount off · floor ¥5,000−¥1,000
Total¥5,000

¥2,000 off, never below ¥5,000

Priced by the code Stripe runs · Amount off with a floor
12 × $10.00 seats$120.00
Volume discount · 15%−$18.00
Total$102.00

A percentage reads the same in every currency.

Priced by the code Stripe runs · Seat volume 5 / 10 / 25

customer tagged segment=partner

Monthly plan$100.00
Partner pricing · 20%−$20.00
Total$80.00

A percentage reads the same in every currency.

Priced by the code Stripe runs · Partner pricing
Base plan$100.00
Add-on$40.00
Add-ons with base plan · 50% off add-ons−$20.00
Total$120.00

A percentage reads the same in every currency.

Priced by the code Stripe runs · Add-ons with base plan
15,000 × $0.01 units$150.00
Launch allowance · 10,000 free units−$100.00
Total$50.00
Priced by the code Stripe runs · Launch allowance

period 4 of 6

Monthly plan · period 4$100.00
Intro offer · 25%−$25.00
Total$75.00

A percentage reads the same in every currency.

Priced by the code Stripe runs · Intro offer
invoice.reason = renewal
customer.segment in partner, reseller

Reads as Invoice reason is renewal and Customer segment is any of partner, reseller

Custom discount · conditions

builder · the form, and the currency_amounts story (Simple only, the app's summary text, never a CAD invoice)

New discount

TypeTiered discount
PresetSeat volume 5 / 10 / 25
Tiers10% · 15% · 20%
Priced by the code Stripe runs · Seat volume 5 / 10 / 25

Currency

USD and CAD invoices only

In CAD: CA$27 off · max CA$135

The app's own summary · families.md L77

preview-vs-stripe · row 1 the recorded hcpp ladder (three columns, discounts) · row 2 the probe pair (two Stripe columns, no app column, amounts="total" with its note) · the how-it-works pair

App previewStripe's previewBoth
5 seats · $50.00−$5.00−$5.00−$5.00
10 seats · $100.00−$15.00−$15.00−$15.00
Seat volume 5 / 10 / 25 · dk-tiered 0.0.4 · run …hcpp · 16 Oct 2026 · provisional

Invoice totals

Stripe's previewStripe's invoice
10 seats · $100.00$80.00$80.00
15 seats · $150.00—$120.00
A 2-tier probe coupon · 10% from the 5th seat, 20% from the 10th · 15 Oct 2026
PreviewStripe
5 seats−$5.00−$5.00
10 seats−$15.00−$15.00

Side by side, before you save

What Verify on Stripe shows · Seat volume 5 / 10 / 25

invoice · the React twin (Specimen.tsx, server-rendered here; DemoCheckout.tsx hydrates the real one) · the demo checkout's order summary: Pro's monthly price from stripe-plans.ts, the demo's row taking it off again, nothing due today on .total-sm

Discount Kit Pro · billed monthly$29.99 / month
Demo checkout · nothing charged−$29.99
Due today$0.00

In a real checkout: nothing today, then $29.99 a month from January 1, 2027 until you cancel.

Demo checkout · Pro · monthly

ladder · coupon · code · timeline (what follows the save: when, what, the discount or a word; the how-it-works step 03)

4 seats$0.00
6 seats−$6.00
12 seats−$18.00
25 seats−$50.00
Priced by the code Stripe runs · Seat volume 5 / 10 / 25
Amount10% off
DurationForever
Applies toAll products
A classic Stripe coupon
invoice.reason = renewal
customer.segment in partner, reseller

Reads as Invoice reason is renewal and Customer segment is any of partner, reseller

Custom discount · conditions
Nov 1Renewal−$18.00
Nov 913 seats addedprorated
Dec 1Renewal · 25 seats−$50.00
Priced by the code Stripe runs · Seat volume 5 / 10 / 25

§2.5 Segmented

One switcher, three uses.

role=group with aria-pressed buttons, one thumb sliding 240ms on the quint curve, arrow keys, an optional sub-label. Tab in and use the arrows.

the hero tier rail · fill · sub-labels

the currency segment (above a Specimen)

the demo chapter's offer switch · DemoFigure (§3.1 §5): three offers over one figure drawn in CSS from the presets; the bars wipe up once in view and once per switch

Lifecycle discount · Intro offer · $100.00 a month · first 12 invoices

PaidDiscount50% off invoices 1 to 3, 25% off invoices 4 to 6, full price from invoice 7.Year one: $975.00 paid, $225.00 off

§3.1 §3 TypeExplorer

Seven tabs, one open panel.

The index from the data module, Simple first with Recommended; a type the app does not offer yet keeps its tab, last, with Coming soon; each panel a card with the pitch, Worth knowing, the family's Specimen under the currency rule, and a Learn row. Below lg it is an accordion; the panels keep the family slugs as ids, so a hash opens a type.

Simple discount

A percentage or an amount off every qualifying invoice, with product, price, customer and subscription targeting, a date window, a maximum and a minimum net amount.

Worth knowing: It can't see other coupons on the invoice.

Monthly plan$60.00
Amount off · floor $50.00−$10.00
Total$50.00

USD invoices only; other currencies get nothing.

Priced by the code Stripe runs · Amount off with a floor

Currency

USD and CAD invoices only

In CAD: CA$27 off · max CA$135

The builder's currency tabs · Simple discount

§2.5 PlanTile

One anatomy, two densities.

Name, price in the pixel face (Free, the monthly price, Custom), a line under it, and a note in jade where a tile has one. Test mode is a tile and not a plan; Pro owns the only filled button.

strip · the home's pricing strip, three in a ruled card: test mode, Pro, Enterprise

  • Test mode

    Free

    Build, preview and verify every discount type.

  • ProLaunch price

    $29.99/ month

    Live mode, with every discount type.

    Free until January 1, 2027

  • Enterprise

    Custom

    Custom terms and a direct line to the team.

In live mode you can build a discount, preview it and replay it against your past invoices before you buy. Only creating it needs Pro. Prices in USD.

card · the pricing page's tiles: the slot holds each tile's button and safety line

Test mode

Build, preview and verify every discount type.

Free

For everything, always

Try the demo store

Comes with the app. No plan, no card.

ProLaunch price

Live mode, with every discount type.

$29.99

per month

Free until January 1, 2027

Get Pro

Card via Stripe Checkout. Billed monthly from January 1, 2027; cancel any time.

Enterprise

Custom terms and a direct line to the team.

Custom

Arranged with us

Talk to us

support@discountkit.app

card · no slot: the sign-up form's plan summary (static twin; PlanTile.tsx hydrates the real one)

ProLaunch price

Live mode, with every discount type.

$29.99

per month

Free until January 1, 2027

§2.5 LearnRow · Step · ChangelogStrip · QuoteSlot · Note

The rows every chapter ends on.

Step ×3 · a cropped Specimen above (masked, never fitted) · the home's how-it-works

  1. 01

    Build it from a preset.

    Install the app, pick a type, start from a preset, adjust the targeting, dates and limits.

  2. 02

    Preview it with Stripe's code.

    The preview prices sample invoices with the extension itself. Verify on Stripe asks Stripe for a real invoice preview.

  3. 03

    Save it. Stripe runs the rest.

    Saving creates a Stripe coupon. Attach it to subscriptions and invoices, or wrap it in a promotion code for Checkout.

QuoteSlot · hidden without a quote · the filled state, with a labelled placeholder (§1.3 forbids an invented quote)

“[Placeholder: an attributed quote goes here once a customer consents.]”
[Name], [Role], [Company]Read the story

Note · four tones (billing-ui.tsx, server-rendered here)

Checkout was canceled.

Try again when you're ready.

Enterprise is arranged with us.

For custom terms, write to support@discountkit.app.

We couldn't start your plan.

Something went wrong on our side. Try again in a minute.

Linking to your Stripe account

This plan attaches to that account as soon as you finish.
Status pulsePauses under reduced motion rather than vanishing.

§2.4 Motion

Two curves, three durations.

Reduced motion is opt-in: every animation and every transform over 8px sits inside no-preference; colour and opacity transitions stay; loops pause rather than vanish.

--ease-out-quint

cubic-bezier(0.22, 1, 0.36, 1)

every enter, hover and switch

--ease-move

cubic-bezier(0.77, 0, 0.175, 1)

sliding thumbs only

--duration-fast

160ms

hover colour steps, the quiet arrow's nudge

--duration-base

240ms

thumbs, panel switches, in-place crossfades

--duration-enter

600ms

the hero's one stagger per load

§1.5 Copy rules

Facts come from the gate.

Product facts come only from §1 and the cited sources. No Stripe account needed. Nothing is charged.

  • Display headings: a claim or a two-beat sentence with a full stop; at most 9 words and 42 characters; the h1 inside 14ch (11ch on the hero tier), a .display-pixel h2 inside 20ch, a .display-pixel-sm h2 inside 18ch; text-balance; never more than three lines at the widest breakpoint.
  • Leads at most 25 words, text-pretty, inside 46ch; bodies inside 48ch.
  • Stripe's nouns only: coupon, invoice, subscription, promotion code, Checkout, test mode, Dashboard. No engine, no pricing play, no guard rails. Sentence case; Title Case only for Stripe's product names.
  • Family names exactly as the app's picker shows them: Simple discount, Tiered discount, Segment pricing, Bundle discount, Usage allowance, Lifecycle discount.
  • No comparative claim that cannot be measured; the one literal claim about classic coupons is verified against Stripe's coupon object before merge.
  • Limits as flat declaratives beside the feature (the panel's Worth knowing, the tile's safety line), never only in a footer.
  • Money: U+2212 for the discount, · as the separator in mono lines, tabular-nums on every figure; one renderer (money.ts) for every figure.
  • Fixed CTA vocabulary: Install on Stripe (the primary once the app has a public install link) · Get Pro (where buying is the point, and the primary until then) · Try the demo store · Open the demo store · Open the store ↓ · Talk to us · See pricing → · Install Discount Kit (the success card's step) · Book a call (only when signup is "call"). Never Get started, never Start free on a link to the sign-up (it is Pro's Checkout), never Continue.

NavyBand · §3.1 §8 · SectionHeader on the navy tone (on-navy 13.25:1 and on-navy-muted 7.30:1 on the light navy, 15.39:1 and 8.48:1 on the dark), the dense ivory Starfield, the mark at 14% of on-navy-muted, 160px (320px from lg) at translate(25%, 25%)

Free in test mode. Live when you are.

Build it in test mode, verify it on Stripe, then switch it on.

On Shopify? Discount Kit for Shopify is live on the App Store.

Book a demo — 20 minutes with the teamBook a call — 20 minutes with the team