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
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
.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.
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.
.dk-pill (one per page) · .dk-chip · .dk-badge · .dk-block · .dk-block-sm · .dk-block-jade
§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)
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
Tiers count what is on one invoice.
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
USD invoices only; other currencies get nothing.
¥2,000 off, never below ¥5,000
USD invoices only; other currencies get nothing.
¥2,000 off, never below ¥5,000
A percentage reads the same in every currency.
customer tagged segment=partner
A percentage reads the same in every currency.
A percentage reads the same in every currency.
period 4 of 6
A percentage reads the same in every currency.
invoice.reason = renewal
customer.segment in partner, resellerReads as Invoice reason is renewal and Customer segment is any of partner, reseller
builder · the form, and the currency_amounts story (Simple only, the app's summary text, never a CAD invoice)
New discount
Currency
USD and CAD invoices only
In CAD: CA$27 off · max CA$135
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
Invoice totals
Side by side, before you save
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
In a real checkout: nothing today, then $29.99 a month from January 1, 2027 until you cancel.
ladder · coupon · code · timeline (what follows the save: when, what, the discount or a word; the how-it-works step 03)
invoice.reason = renewal
customer.segment in partner, resellerReads as Invoice reason is renewal and Customer segment is any of partner, reseller
§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
Tiered discount · Seat volume 5 / 10 / 25 · $10.00 a seat
Usage allowance · Launch allowance · 15,000 × $0.01 units
§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.
USD invoices only; other currencies get nothing.
¥2,000 off, never below ¥5,000
Currency
USD and CAD invoices only
In CAD: CA$27 off · max CA$135
Tiered discount
Buy more, pay less, without rebuilding your price list: volume or graduated tiers by units or spend, as a percentage, an amount or a fixed unit price.
Worth knowing: Tiers count what is on one invoice.
A percentage reads the same in every currency.
Segment pricing
One discount that prices by who the customer is or how the price bills: partners, resellers, nonprofits or yearly plans each get their own rate.
Worth knowing: It reads metadata your onboarding sets; it doesn't verify it.
customer tagged segment=partner
A percentage reads the same in every currency.
Bundle discount
Cross-sell the suite: count the distinct products on an invoice and reward the set, or discount add-ons only alongside the base plan.
Worth knowing: Everything must be on the same invoice.
A percentage reads the same in every currency.
Usage allowance
A promotional allowance on usage-based prices without credits or a new price: the first units each period are free, with relief on the overage.
Worth knowing: Free units don't carry over to the next period.
Lifecycle discount
A discount that follows the subscription's own periods: an intro ramp, free periods or loyalty steps, correct on monthly and yearly plans alike.
Worth knowing: It counts from a start date your integration sets in metadata.
period 4 of 6
A percentage reads the same in every currency.
Custom discount
A percentage or an amount off when conditions you choose hold: the invoice reason, its subtotal or units, customer, subscription or product metadata, the billing interval or the currency. All conditions, or any one.
Worth knowing: It can't see other coupons on the invoice.
Coming soon. The app doesn't offer this type yet.
invoice.reason = renewal
customer.segment in partner, resellerReads as Invoice reason is renewal and Customer segment is any of partner, reseller
Or write it as rules.
§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
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
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
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.
LearnRow
Step ×3 · a cropped Specimen above (masked, never fitted) · the home's how-it-works
- 01
Build it from a preset.
Install the app, pick a type, start from a preset, adjust the targeting, dates and limits.
- 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.
- 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.
ChangelogStrip · platform="stripe" renders nothing today (entries held, §8 answer 12) · platform="shopify" shows the three newest
- A custom discount’s Configuration size bar now counts everything that is saved with the discount, and a configuration over the 10 KB limit can no longer be saved. Before, a discount close to the limit could read as under it, save, and then stop applying at checkout. If you reach the limit, see Configuration size.
- Gift with purchase discount codes can now use the Only products added via storefront or checkout widgets selection strategy, which has the gift added for the customer. Shopify rejects a code that gives no discount, which is what a gift code does until the gift is in the cart. With this strategy, the code is accepted before the gift is there. The gift is then added in the cart when the code is applied to it, and on Shopify Plus the Gift with purchase checkout block adds it for a code entered at checkout.
- A shipping discount’s rules now accept 0 in a greater-than comparison. Set Shipping rate greater than 0 to leave out rates that are already free, so the discount and its message only appear on rates the customer pays for — see Rules.
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.]”
Note · four tones (billing-ui.tsx, server-rendered here)
Checkout was canceled.
Enterprise is arranged with us.
We couldn't start your plan.
Linking to your Stripe account
§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.

