supermember. Design system v1.0

One system, every surface.

Tokens, type, color and components for Store PWA, Member PWA, marketing, templates and Admin. Spacious, pill-shaped, photo-led. Airbnb in spirit, supermember in voice.

From the blueprint Values taken from the PDF are stated as written. Proposed Anything we added to fill a gap carries this tag.
Penjualan hari ini
Rp4,85jt
Tersedia
Cappuccino
Rp35.000
Membership Gold
7 / 10
Promo member
20% OFF

Principles

A consumer-grade experience for small businesses, without enterprise software complexity. Merchants should feel like they're using a lifestyle app.

Airbnb: Store

Spacious, photo-led discovery. Pills and filters. Generous whitespace and one clear action per screen.

Apple: Wallet

Polished wallet cards, bottom sheets and interaction. Small movements that confirm what changed.

Stripe: Pay

Trustworthy payment hierarchy. The amount leads, status is honest, confirmation is never ambiguous.

TikTok: Community

Immersive vertical feed built around business actions instead of endless scrolling.

Use the principles, never copied brand assets or UI.

Personality and voice

Cheerful, modern, energetic, approachable, dependable. Friendly Bahasa Indonesia with concise English labels where they are familiar: Pay, Store, Community, Inbox. One glossary across both PWAs.

MomentSayWhy
GreetingMake today super!Positive, short, on brand.
ActionTambah transaksiVerb first, one name for one action.
Honest statusPembayaran menunggu verifikasiPending never looks paid.
Money movesVerifikasi pembayaran Rp73.000Clarity beats playfulness on financial actions.
CheerfulModernEnergeticApproachableDependable

Color

Own the coral. Use yellow for optimism and neutral space for clarity. Tap any swatch to copy its hex.

Core

Supporting, assigned by role

Neutral stays dominant. Colorful accent cards should never compete for attention: one accent block per view is the default.Proposed ratio

Semantic mapping

Components never use raw hex. They read semantic tokens, which switch between light and dark.

Light

surface.defaultWhite#FFF
surface.canvasCloud#F5F5F7
text.primaryInk#202020
text.mutedGray 600#626262
border.defaultGray 200#E8E8E8
action.linkCoral 700#C53220
action.link.hoverCoral 800#9F291C

Dark

surface.canvas#151515#151515
surface.default#252525#252525
surface.raised#303030#303030
text.primaryWhite#FFF
text.muted#B5B5B5#B5B5B5
border.default#353535#353535

Status always uses icon plus text, never color alone.

Terverifikasi Menunggu verifikasi Ditolak Info Status colors are proposed; the blueprint only requires icon plus text.

Contrast targets

WCAG AA: 4.5:1 for normal text, 3:1 for large text and essential UI boundaries. Ratios below are computed live from the token values.

PairRatioNormal textLarge text and UIRule

Merchant branding

Merchant logo and palette decorate customer-facing receipts, payment links, microsites, QR and promo art. The operational PWA keeps supermember controls. The foreground is chosen automatically for contrast.

Invoice SM-0421 Rp73.000

Typography

One typeface, five weights. Plus Jakarta Sans for the app and every marketing surface. Use tabular numerals for money.

Aa400 Regular, body
Aa500 Medium, UI text
Aa600 Semibold, buttons
Aa700 Bold, headings
Aa800 Extrabold, display

Self-hosted variable font, weights 200–800, latin and latin-extended. Fallback stack: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto. The source PDF uses Lato only as a print fallback.

Scale

Marketing sizes are fluid between the mobile and desktop values. Specimens below render with the live tokens, so resize the window to see them move.

Hero76 / 44, 800
lh 1.04, ls −0.035em Proposed lh, ls
Small visits. Big rewards.
H160 / 36, 800
lh 1.04, ls −0.03em
Satu QR untuk bergabung
H244 / 30, 700
lh 1.12, ls −0.025em
Harga yang tumbuh bersama bisnis
H332 / 24, 700
lh 1.2, ls −0.02em
Kasir yang terasa seperti aplikasi
Page title28–32, 700
operational screens
Transaksi hari ini
Lead20 / 1.55, 400 Proposed
Merchant mengatur toko dalam hitungan menit, pelanggan mendapat dompet reward yang rapi.
Body16 / 1.6, 400
Supermember menyatukan membership, loyalty, POS, booking, pembayaran, promosi, dan komunikasi pelanggan dalam satu platform modular.
Body small14 / 1.5
Pembayaran menunggu verifikasi tidak pernah tampil sebagai lunas.
Meta12–14, 400–600
Diperbarui 25 Nov 2026, Outlet Sunday Coffee
Label12, 600
Tier Gold
Button15 / 600
Tambah transaksi
Moneytabular numerals
Rp1.250.000 Rp4.850.000

Paragraph rules

Dibangun untuk kasir yang sibuk

Ketuk produk, tambahkan ke keranjang, verifikasi pembayaran. Tidak ada menu tambahan untuk penjualan biasa, dan status pembayaran selalu jujur.

Merchant bisa memantau penjualan, member, dan reservasi dari satu tempat, bahkan saat POS dimatikan. Lihat aturan lengkap.

  • Daftar memakai bullet 20 px dari tepi
  • Jarak antar butir 8 px
  • Size and leading. 16 px with 1.6 line height. Compact metadata 12–14 px.
  • Measure. 64ch preferred, 80ch hard maximum. Proposed
  • Paragraph spacing. 16 px between paragraphs, 12 px from a heading to its first paragraph, 32 px before a new heading. Proposed
  • Alignment. Left aligned. Never justified. Center only for short headings of three lines or fewer.
  • Wrapping. text-wrap: balance on headings, pretty on paragraphs.
  • Links. Accessible coral #C53220, underlined, hover #9F291C. Never color alone.
  • Money. Tabular numerals, thousands with a dot, compact form Rp4,85jt only in cards. Proposed

Spacing, padding and margin

Base 4 px. Ten steps, nothing in between. If a value is not on the scale, the layout is wrong, not the scale.

space-44
space-88
space-1212
space-1616
space-2020
space-2424
space-3232
space-4848
space-6464
space-9696

Padding and margin anatomy

Padding is inside a surface and belongs to the component. Margin is outside and belongs to the layout. A component never sets its own outer margin.

margin 24 (layout)
padding 24 (component)
Card content

Where each value goes

ContextValueToken
Mobile page inset20–24--page-inset
Card padding16–24 (metric 20)--card-padding-md
Grid gaps12–16space-12, space-16
Marketing section, mobile / desktop56–64 / 96--section-space
Button height / horizontal padding48 (sm 44, lg 56) / 24--button-height-*
Input height / horizontal padding52 / 20--input-height
Chip height / padding / gap44 / 16 / 8space-16, space-8
Bottom sheet body / footer24 / 16 plus safe areaspace-24, space-16
Touch targetat least 44 × 44, controls 48–56--button-height-sm
Stack rhythm: related, grouped, block Proposed8, 16, 24.stack + --stack
Container max width, PWA rail Proposed1200, 480--container-max, --pwa-rail
Related, gap 8
Related, gap 8
New group, gap 24

Radius and depth

Everything interactive is a pill. Cards step up by role, and imagery nested inside a card steps down. Borders and soft shadows are subtle, never both heavy.

Pill9999pxButtons, inputs, chips, nav
Card small20pxMetric, order, list rows
Card medium28pxProduct, membership, promo
Card large36pxHero media, feature, dialog
Nested media16pxInside small cards
Nested media20pxProduct photo 4:3
Sheet top36pxBottom sheet, dialog

Elevation and layers Proposed values

The blueprint asks for a controlled elevation token for the floating nav, and one shared z-index scale for sheets, dialogs and toasts.

Flat
border only
shadow-sm
cards
shadow-md
search, raised
shadow-float
floating nav
sticky 100nav 200sheet 300dialog 400toast 500

Components

A reusable kit with Lucide icons at 24 px, stroke 1.9. Every component supports default, focus, disabled, loading, error, success and empty where it makes sense.

Buttons

Primary is coral with Ink text (5.2:1). The strong variant is #C53220 with white text (5.5:1) for places that need white text. White text on plain coral is only 3.2:1, so it is never used for normal-size text.

DefaultHoverFocusLoadingDisabled Primary Secondary
Loading keeps the label and blocks double submits.

Forms

Pengaturan toko

Controls use a 1.5 px boundary of #8A8A8A (3.4:1 on white) so they pass the 3:1 UI rule; the lighter #E8E8E8 is for dividers only. Group forms by task: basics, pricing, availability, advanced. Real labels, inline validation, explicit destructive confirmation.

Chips, tabs, badges, avatars

TerverifikasiMenunggu DPDibatalkanBaruGoldSilverPlatinumDraft
ASRMDKSM

Feedback and empty states

Skeleton matches the final layout.

Belum ada produkTambahkan produk pertama supaya bisa dijual dan dipakai untuk reward.

An error says what failed and how to retry. Offline shows a read-only banner on payment-affecting screens. Pending verification never looks paid.

Bottom sheets, dialogs, menus, lightbox and toasts live in Overlays. Toggles, calendar, stepper and keypad are in Selection and date.

Selection, input and date

Toggle, checkbox, radio, stepper, OTP, amount keypad, calendar and time slots. Every control is 44px minimum, has a visible focus ring, and takes its size and color from tokens.

Toggle, checkbox and radio

A toggle applies immediately and never has a Save button next to it. A checkbox or radio belongs to a form and is applied on submit. Never use a toggle for a choice between two named options. Use a segmented control for that.

Toggle

Label on the left, control on the right, the whole row is the target. The thumb stretches while pressed. On state is Coral with an Ink thumb.

Checkbox and radio

Hari buka
Metode bayar

Indeterminate shows a dash when a parent group is partly selected. Error state adds a Coral 700 border and a message, never color alone.

Text, select and search

Tampil di kartu member dan poster QR.
Pilih satu.
Nomor terlalu pendek. Contoh: 0812 3456 7890.
Dibuat otomatis, tidak bisa diubah.

Stepper, OTP and amount keypad

Stepper

Small whole numbers: stamps required, quantity, guests. Hold the limit and the button disables.

Stempel untuk reward
8

OTP

One digit per box, auto-advance, paste fills all, backspace steps back.

Kode salah. Minta kode baru dalam 30 detik.

Amount keypad

Rp0

Amounts always use the id-ID thousands separator and tabular figures. The keypad caps at 9 digits.

Calendar and time slots

Monday-first for Indonesia. One calendar component, two modes: single for bookings and events, range for promo validity and reports. Days the outlet is closed or fully booked are disabled and also announced to screen readers.

Booking: single date and time

TerpilihAda slotCoret = penuh atau tutup

Promo validity: date range

Tap a start date, then an end date.

  • Day cell is 44px. Today has a ring. Past days are disabled.
  • Tapping a start after an existing range starts a new range.
  • Month and weekday names follow the locale. Never hard-code English on an Indonesian screen.

Swipe to confirm

One-way confirmation for actions that cannot be undone, such as redeeming a reward or a visit. Drag the thumb past 85% to confirm. Keyboard and screen-reader users press Enter or Space on the thumb instead, so a swipe is never the only way.

Redeem a visit

AS
Andi S.Paket 10 kunjungan, sisa 7
Geser untuk menukar

Belum ditukar.

Rules

  • Used only after a review step that shows who and what is being redeemed.
  • Once confirmed it locks (is-done); a new action needs a new component state.
  • Releasing early snaps back. Nothing is sent below 85%.
  • Fires swipe:confirm. Call SM.swipeReset(el) to rearm after an error.

Overlays: sheet, dialog, menu, lightbox, toast

One stacking scale, one scrim, one focus rule. Every overlay is built from the same tokens and closes the same way. Try them in the phone: they are the real components, not screenshots.

09.41
Coba overlay
Tersimpan

Which one to use

NeedUse
Choose, filter, edit one thing, short formBottom sheet
Long or multi-step form on mobileFull sheet, or a page
Confirm, warn, block until decidedDialog
Small list of actions for one itemMenu
Feedback after an action, no decisionToast
A status that stays on the pageBanner
Look closely at photos, a poster or a QR codeLightbox, close on the top-left
A long form or flow that needs the whole screenFull-screen sheet, close on the top-left, no handle

Stacking scale

LayerTokenValue
Sticky bars--z-sticky100
Navigation--z-nav200
Sheet and its scrim--z-sheet300
Menu--z-popover350
Dialog and its scrim--z-dialog400
Lightbox--z-lightbox450
Toast--z-toast500

Never write a raw z-index in a component. Use the token.

Rules

Sheet

  • One sheet at a time. Opening a second sheet closes the first. A sheet is the screen's single navigation owner.
  • Handle, header with title and Close, scrolling body, sticky footer clear of the keyboard and home indicator.
  • Half height for choices. Full height for forms with more than three fields. Above that, use a page.
  • Primary action sits in the footer. Cancel is the quieter action beside it.
  • Tapping the scrim or pressing Esc closes it, unless the form has unsaved changes.
  • On desktop and PWA the sheet is centered in the same 480px rail as the app.

Dialog and confirmation

  • Title says the decision as a question or outcome. Body says what changes and whether it can be undone.
  • At most two actions. The button names the result: Hapus produk, not OK.
  • A destructive action uses the danger button, and initial focus goes to the safe action.
  • A dialog may stack above a sheet. A dialog never stacks above another dialog.
  • Unsaved changes: closing a dirty sheet opens the discard dialog first.
  • Never use a dialog for information that needs no decision. Use a toast or banner.

Focus and keyboard

  • Focus moves into the overlay on open, is trapped inside, and returns to the trigger on close.
  • Esc closes the top layer only. Tab and Shift+Tab loop inside it.
  • Sheets and dialogs use role="dialog" or alertdialog, aria-modal and a labelled title.
  • Reduced motion removes the rise and scale. The overlay still fades.

Toast and banner

  • Toast confirms an action in about 3 seconds. It never carries the only copy of an error.
  • A toast is announced politely and never takes focus.
  • Banner stays on the page until the cause is gone. Pending verification is never styled as paid.

Banners, tooltip and disclosure

Tooltip

Short, one line, on hover and focus. Never the only place a required fact appears. Not used on touch.

Poin berlaku 12 bulan

Disclosure

Apakah poin bisa hangus?
Aturan masa berlaku diatur merchant. Tanggalnya selalu tampil di kartu member.
Bisa dipakai di semua toko?
Tergantung program toko. Lihat bagian Membership per toko di bawah.

Lightbox

Full-screen media viewer for store galleries, community posts and QR posters. Dark media surface in both themes, count in the top bar, arrow keys and buttons to step, caption below, Esc or Close to leave.

Card grammar

A distinct card role for each business task. Colors map to roles, not taste. Large decorative cards must never displace essential actions.

Metric
Rp4,85jt
Penjualan terverifikasi hari ini
CappuccinoRp35.000
Stok tersedia
s.
Sunday CoffeeTier Gold
7 / 10
GOLD20
20% OFF

Cappuccino dan Americano untuk member Gold. Berlaku 1–30 Des 2026.

SM-0421Dine-in, Meja 4
Menunggu verifikasi
Rp73.000
RM
Rina M.Kasir, Outlet Pusat
Aktif
10.30, 2 orangReservasi, DP Rp200.000
DP
WhatsApp InboxTerhubung
OK
RoleContainsSurfaceRadius
MetricProminent value and context. Trend only if real.Coral20
ProductImage 4:3, name, price, availability, add action.Blush28, image 20
MembershipBrand, tier, progress.Lilac28
PromotionOffer, dates, eligibility.Yellow28–36
OrderReference, amount, status, primary action.White, hairline20

Operational lists (booking slot, transaction row, shift summary, integration status, staff avatar) use the compact density variant shown above. No fake stats and no invented trends in metric cards.

Lists, profile, store and community

The screens people live in. Settings rows, store listing, community feed and inbox are assembled from the same row, card, chip and navigation parts, so a new screen is a new arrangement, never a new component.

09.41
SC
Sunday Coffee
Pemilik, 2 toko
1.284Member
3.9kTransaksi
4Staf
Notifikasi

Profile and settings

09.41
Sunday Coffee KemangVerified
Kafe, buka sampai 22.00
Gabung gratis, 8 stempel dapat kopi
Roti Pagi Senopati
Bakery, buka sampai 18.00

Store listing

SCSunday CoffeePromo

Kopi pagi diskon 20% sampai jam 10. Scan, gabung, dapat stempel pertama.

Community feed

09.41
Pesan
Hari ini
Halo Andi, 1 stempel sudah masuk. Sisa 3 lagi untuk kopi gratis.
Mantap, besok saya datang lagi.

Inbox and chat

Rules for these surfaces

Rows and lists
  • Row height 56px minimum, 44px for compact. Icon disc, then title and one line of meta, then value or chevron.
  • Group rows in one bordered list with a small title above. Dividers are hairlines between rows, never a box per row.
  • Destructive rows sit alone at the end of the page, in Coral 700.
Store listing
  • 4:3 media, save button top right, dots bottom center. Title, one meta line, one benefit line.
  • Real merchant photos only. If there is none, show the tinted placeholder with the category icon.
  • Verified appears only after verification. It is never decorative.
Community feed
  • 9:16 media on the dark media surface in both themes. A gradient token keeps the caption above 4.5:1.
  • Action rail is 48px targets: like, comment, save, share. Pressed state fills the icon, and the count updates.
  • One call to action per post. Promotions are labelled Promo. Merchant name always visible.
Inbox and chat
  • Unread is a bold title plus a count badge, never color alone. Bubbles cap at 80% width. Time sits inside the bubble.

Plans, stores and per-store membership

How store limits show up in the product, and where a merchant switches a store onto its own membership program. Both are proposed patterns built from existing parts.Proposed

Free
1 store

One outlet, one QR set. Enough to prove the habit before paying.

Paid
Up to 10 stores

Price follows member capacity, not store count. Same account, one owner login.

More than 10
Contact us

Custom plan, set up with the merchant. Not self-serve.

Should stores be unlimited?

Not at launch. Each store adds QR sets, staff, support and WhatsApp traffic, while revenue follows members. Unlimited invites a single franchise group to run on the cheapest band. A cap of 10 covers most independent cafes, and the contact path keeps larger chains a conversation, not a blocker. Revisit once real multi-store usage shows where the line is.

Plan limit pattern

Show the limit before it bites. Keep Add store enabled, and explain at the moment of tapping. Never hide the button, never fail silently.

Preview as
  • Free, at the limit: a quiet info banner, and Add store opens an upgrade sheet.
  • Paid, under the limit: Add store works. The meter stays visible.
  • Paid, at 10: Add store opens a dialog with one clear route: Contact us.
  • The count always reads "X of Y". Never "limit reached" without numbers.
09.41
Toko saya
1 dari 1 tokoGratis
Form tambah toko dibuka

Membership per store

Default is one program for every store, so members learn one rule. A merchant can switch a single store onto its own program. Same idea as the catalog: a shared master with a store override.

Where the switch lives

  1. 1. Settings, Toko, choose a store, Program membership. A toggle row: "Ikuti program semua toko", on by default. This is the one place the override is created.
  2. 2. Off reveals that store's own rules: stamps needed and reward. A "Custom" badge appears next to the store everywhere it is listed.
  3. 3. Loyalty screen shows the scope. A chip row: Semua toko, then each store. Stores with their own program carry the Custom badge, so a merchant sees at a glance who differs.
09.41
Kemang
Program membership

Settings, store

09.41
Loyalty
Program utama2 toko

8 stempel, dapat Kopi gratis.

Loyalty, scope

  • Default on. Most merchants never open this switch, and members only ever learn one rule.
  • The member app shows the rule of the store where the member is, plus the merchant-wide points balance.
  • Turning the switch back on discards the store's custom rules after a confirmation dialog that names what is lost.

Motion

Three timing tokens, subtle tap feedback, sheet transitions and a success animation. Motion answers an action; it never decorates. Reduced motion is respected everywhere.

120 ms
Tap feedback
180 ms
Hover, color, toggles
320 ms
Sheets, stamps, success
Easing cubic-bezier(0.2, 0.8, 0.2, 1) Proposed
Success momentFires only on a verified business result.

Imagery and Creative Studio

Design once, share everywhere: QR, promo, invoice, community and wallet. Reusable visual assets, not a different design language for every merchant.

Concept art: a customer scans a supermember. QR code at a cafe counter while the barista smiles, with a rewards screen floating nearby
Concept art, illustrative only. Not a live product screenshot.
Concept art: a tabletop QR stand and a phone showing a Join Membership screen
Concept art for the Store QR and membership join flow.

Illustration and photography

Illustration language

Friendly geometric flat illustrations, soft curves, optimistic expressions, controlled coral, yellow, lilac and mint. Custom art for onboarding, empty states, rewards and merchant growth. Never a generic corporate stock look.

Photography

Store listing: wide 4:3 gallery with real merchant imagery. Product: consistent 4:3 or square crops, neutral bright light, no misleading AI depiction. Services: clean environments, no medical efficacy claims. Missing images get a branded placeholder, never an unrelated photo.

QR posters, promo and print

Store QR, promo poster, event, community post, membership card, voucher, invoice, receipt. The working QR studio, all nine formats and the four styles are in QR and print.

QR and print kit

Real, scannable QR posters that look the same everywhere. Pick the outlet, the purpose and a style, then share or print it in nine formats. The merchant's own logo comes from Settings.

Demo address. A short link makes bigger squares that scan from further away.
Tujuan
Gaya
Logo dari SettingsBelum ada logo. Unggah di bawah.
Ubah

Every format

Same layout system, nine sizes. Tap any to see it full screen, then use the arrows to step through. Print targets 300 dpi: A4 is 2480 × 3508 px, A5 is 1748 × 2480 px.

PNG and print-ready PDF export are proposed. The poster text is English for the demo. Merchant-facing copy follows the store's language.

Four styles

Merchants edit headline, caption, colors, logo, photo and permitted layout. Price, code, dates and terms stay data-bound and truthful. Modules are always Ink on white paper, whatever the style.

QR standards

  • A genuine encoded link per outlet. Never a decorative fake QR.
  • Quiet zone of at least 4 modules (token --qr-quiet-zone). The poster card carries 5.
  • Whole-pixel module size, high contrast, never stretched, never recolored.
  • Label the purpose: join, transact or support. It is a membership code, never a payment QRIS code, and the poster says so.
  • Error correction Q by default. Use H only for rough surfaces such as stickers on cups.
  • Scan-test every export on a real phone before it ships. The Tes scan button uses the browser's own detector where one exists.
  • Print the code no smaller than 2.5 cm wide, and keep the scan distance about ten times the code width.
  • Short links make fewer, bigger modules. The readout above warns when the code gets dense.
  • All nine formats pass an automated decode check on every change to the kit.

Mobile standards

Five tabs per PWA with purpose-built interaction for high-frequency tasks. Pay is product-first, Store is photo-first, Community is content-first. All of them use this one system.

09.41
Sunday Coffee
Penjualan hari ini
Rp4,85jt
Transaksi
38
Member baru
6
Contoh data, bukan screenshot live
Store PWA
Menu, Member, Pay, Inbox, Setting. Pay is enabled only when POS is ON; when OFF the center slot shows its disabled state and Menu stays fully usable.
09.41
My Wallet
s.
Sunday CoffeeGold
Free drinkBuka di 5 stempel
Contoh data, bukan screenshot live
Member PWA
Profile, Store, Community, Chat, Setting. Profile is the wallet home, Community is the highlighted center. The feed goes edge to edge with a dark bottom nav.

Test widths

360
390
430
768

360, 390 and 430 px phones plus a 768 px sanity check. Test long labels and 200% text zoom without clipping.

Touch targets

44 min
48
56

Interactive targets are at least 44 × 44. Standard controls are 48–56. Keep sticky actions clear of the keyboard and navigation.

RuleDetail
Cart and scrollPreserve the cart per outlet, restore list scroll position, back restores forms safely.
SheetsOne navigation owner for bottom sheets. Hide unavailable modules; explain disabled core actions.
Deep linksRoute to the exact store, booking, order or post.
CashierProduct tap adds quickly, stock state is visible, category chips scroll, cart is sticky and collapsible. Payment confirmation is distinct from order creation.
Feed exceptionEdge-to-edge media, readable overlay, right-rail actions. Pause and mute, reduced motion, data saver, report, accessible next and previous. No autoplay outside the viewport.

Tokens

One contract drives every surface. Exported once, imported by Store, Member, marketing, templates and Admin. This page and the landing page both load the same file.

Primitive

Raw values.

color-coral-500
space-4
radius-pill

Semantic

Meaning. Switches with the theme.

surface-canvas
text-primary
action-primary-bg

Component

Sizes owned by a component.

button-height-md
nav-item-size
card-metric-padding

Component tokens

135 sizes owned by components, generated from the @component markers in tokens.css. Change one here and every surface follows.

ComponentTokens (generated from tokens.css)
Layout
8 tokens
  • --page-inset24px
  • --section-space96px
  • --container-max1200px
  • --pwa-rail480px
  • --anchor-offset96px
  • --topbar-height64px
  • --skip-link-hidden-64px
  • --skip-link-inset16px
Button
9 tokens
  • --button-height-smvar(--touch-min)
  • --button-height-md48px
  • --button-height-lg56px
  • --button-padding-x24px
  • --button-padding-x-smvar(--space-20)
  • --button-padding-x-lgvar(--space-32)
  • --button-press-scale0.97
  • --button-spinner-size16px
  • --button-spinner-width2.5px
Input
7 tokens
  • --input-height52px
  • --input-padding-xvar(--space-20)
  • --input-ring-width4px
  • --select-padding-right48px
  • --select-chevron-inset18px
  • --search-height56px
  • --search-padding6px
Check / Radio / Toggle
9 tokens
  • --choice-heightvar(--touch-min)
  • --check-size24px
  • --check-radiusvar(--radius-xs)
  • --check-mark-size18px
  • --radio-dot-radius4.5px
  • --toggle-width52px
  • --toggle-height32px
  • --toggle-thumb24px
  • --toggle-inset4px
Chip / Segmented / Tabs
3 tokens
  • --chip-heightvar(--touch-min)
  • --segmented-paddingvar(--space-4)
  • --tab-heightvar(--touch-min)
Badge / Avatar / Dot
7 tokens
  • --badge-height28px
  • --badge-gap6px
  • --dot-size10px
  • --avatar-sm32px
  • --avatar-md44px
  • --avatar-lg64px
  • --avatar-xl96px
Feedback
8 tokens
  • --toast-height52px
  • --toast-bgvar(--color-ink-900)
  • --toast-fgvar(--color-white)
  • --toast-accentvar(--color-mint-200)
  • --banner-padding-yvar(--space-12)
  • --empty-art-size80px
  • --progress-height8px
  • --stamp-size40px
Card
4 tokens
  • --card-metric-padding20px
  • --card-padding-md24px
  • --card-padding-lgvar(--space-32)
  • --icon-disc-size48px
Navigation pill
7 tokens
  • --nav-item-size48px
  • --nav-item-height52px
  • --nav-center-size64px
  • --nav-center-lift-16px
  • --nav-gap2px
  • --nav-label-sizevar(--fs-nav)
  • --nav-center-icon28px
Overlay (scrim)
2 tokens
  • --scrim-blur4px
  • --motion-rise16px
Bottom sheet
6 tokens
  • --sheet-handle-width40px
  • --sheet-handle-height5px
  • --sheet-padding-xvar(--space-24)
  • --sheet-height-auto-max85%
  • --sheet-height-half50%
  • --sheet-height-full100%
Dialog / Confirmation
5 tokens
  • --dialog-width440px
  • --dialog-width-sm340px
  • --dialog-marginvar(--space-20)
  • --dialog-paddingvar(--space-24)
  • --dialog-icon-size56px
Menu / Tooltip
4 tokens
  • --menu-min-width220px
  • --menu-item-height48px
  • --tooltip-max-width240px
  • --tooltip-offset8px
Lightbox
2 tokens
  • --lightbox-control48px
  • --lightbox-insetvar(--space-16)
Calendar / Time slot
4 tokens
  • --calendar-cellvar(--touch-min)
  • --calendar-gapvar(--space-4)
  • --slot-height48px
  • --slot-min-width92px
Numeric input
4 tokens
  • --stepper-buttonvar(--touch-min)
  • --otp-width48px
  • --otp-height56px
  • --keypad-key-height56px
Swipe to confirm
3 tokens
  • --swipe-height64px
  • --swipe-thumb56px
  • --swipe-fillcolor-mix(in srgb, var(--accent-coral) 38%, transparent)
List / Settings row
3 tokens
  • --row-height56px
  • --row-icon40px
  • --group-radiusvar(--radius-card-sm)
Profile
1 tokens
  • --profile-stat-dividervar(--border-w)
Store listing
2 tokens
  • --store-bar-height80px
  • --category-item72px
Community feed
3 tokens
  • --feed-rail-size48px
  • --feed-rail-gapvar(--space-16)
  • --feed-cta-heightvar(--button-height-md)
Chat / Inbox
3 tokens
  • --bubble-max78%
  • --bubble-radiusvar(--radius-card-sm)
  • --bubble-tail-radiusvar(--radius-xs)
Phone schematic
5 tokens
  • --phone-max-width330px
  • --phone-max-width-lg390px
  • --phone-bezel10px
  • --phone-radius48px
  • --phone-screen-radius38px
App shell
11 tokens
  • --app-nav-clearance128px
  • --app-nav-gap16px
  • --app-bar-clearance24px
  • --thumb-sm56px
  • --thumb-md72px
  • --hero-media-ratio16 / 9
  • --qr-display232px
  • --qr-display-pad16px
  • --ls-code0.14em
  • --scanner-frame28px
  • --offline-height40px
QR kit
15 tokens
  • --qr-quiet-zone4
  • --qr-modulevar(--color-ink-900)
  • --qr-papervar(--color-white)
  • --qr-playful-bgvar(--color-coral-500)
  • --qr-playful-fgvar(--color-ink-900)
  • --qr-playful-accentvar(--color-yellow-500)
  • --qr-minimal-bgvar(--color-white)
  • --qr-minimal-fgvar(--color-ink-900)
  • --qr-minimal-accentvar(--color-coral-500)
  • --qr-elegant-bgvar(--color-ink-900)
  • --qr-elegant-fgvar(--color-white)
  • --qr-elegant-accentvar(--color-yellow-500)
  • --qr-fresh-bgvar(--color-mint-200)
  • --qr-fresh-fgvar(--color-ink-900)
  • --qr-fresh-accentvar(--color-coral-500)
/* ==========================================================================
   supermember. design tokens  v1.0
   Source of truth: Master Blueprint (25 Nov 2026), Part 01 Brand Design.
   Layers: primitive -> semantic -> component. Import once, use everywhere.
   Values tagged "proposed" are additions not specified in the blueprint.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---------- Primitive: color ---------- */
  --color-coral-500: #FF563F;   /* Super Coral: energy, primary emphasis */
  --color-coral-400: #FF7A66;   /* proposed: hover tint, keeps Ink at 6.4:1 */
  --color-coral-700: #C53220;   /* accessible action foreground */
  --color-coral-800: #9F291C;   /* accessible action hover */
  --color-yellow-500: #FFE66D;  /* Super Yellow: rewards, highlights */
  --color-ink-900: #202020;
  --color-white: #FFFFFF;
  --color-blush-100: #FFF0EC;   /* Coral Blush */
  --color-cloud-100: #F5F5F7;
  --color-mint-200: #C8F5D8;
  --color-lilac-200: #DCD2FF;
  --color-blue-200: #D5EAFF;
  --color-gray-600: #626262;    /* muted text on light */
  --color-gray-500: #8A8A8A;    /* proposed: control boundary, 3.4:1 on white */
  --color-gray-200: #E8E8E8;    /* hairline border on light */
  --color-green-700: #0E6B3B;   /* proposed: success text */
  --color-blue-700: #1F5FA8;    /* proposed: info text */
  --color-dark-canvas: #151515;
  --color-dark-surface: #252525;
  --color-dark-raised: #303030;
  --color-dark-border: #353535;
  --color-dark-muted: #B5B5B5;

  /* ---------- Primitive: space (px value in the name, 4px base) ---------- */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  /* ---------- Primitive: radius ---------- */
  --radius-pill: 9999px;
  --radius-card-sm: 20px;   /* compact: metric, order, list rows */
  --radius-card-md: 28px;   /* standard: product, membership, promo */
  --radius-card-lg: 36px;   /* feature, hero media, dialogs */
  --radius-media-sm: 16px;  /* nested image */
  --radius-media-md: 20px;  /* nested image, larger */
  --radius-sheet-top: 36px; /* dialog / bottom sheet top corners */
  --radius-xs: 8px;         /* proposed: checkbox corner */

  /* ---------- Primitive: hit areas, borders, icons ---------- */
  --touch-min: 44px;        /* minimum interactive target */
  --border-w: 1px;          /* hairline */
  --border-w-control: 1.5px;/* proposed: input / outline button */
  --border-w-indicator: 2px;/* proposed: active tab underline */
  --focus-w: 3px;           /* focus ring thickness */
  --focus-offset: 3px;
  --opacity-disabled: 0.4;  /* proposed */
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;          /* standard Lucide size */
  --icon-xl: 32px;
  --ratio-media: 4 / 3;     /* store gallery, product image */
  --ratio-feed: 9 / 16;     /* community post */
  --ratio-phone: 9 / 17.5;  /* UI schematic frame */

  /* ---------- Primitive: type ---------- */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Fluid: hero 76/44, h1 60/36, h2 44/30, h3 32/24 (desktop/mobile) */
  --fs-hero: clamp(2.75rem, 1.79rem + 3.95vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.53rem + 2.96vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.73vw, 2.75rem);
  --fs-h3: clamp(1.5rem, 1.26rem + 0.99vw, 2rem);
  --fs-page-title: 1.75rem;  /* operational titles 28-32 */
  --fs-lead: 1.25rem;        /* proposed */
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-meta: 0.8125rem;      /* 12-14 compact metadata */
  --fs-label: 0.75rem;
  --fs-button: 0.9375rem;    /* 15 / 600 */
  --fs-nav: 0.6875rem;       /* proposed: 11 px tab label, never smaller */
  --fs-amount: 2.25rem;      /* proposed: keypad amount, tabular */

  --lh-display: 1.04;        /* proposed */
  --lh-heading: 1.12;        /* proposed */
  --lh-body: 1.6;
  --lh-compact: 1.4;         /* proposed */
  --ls-hero: -0.035em;       /* proposed */
  --ls-h1: -0.03em;          /* proposed */
  --ls-h2: -0.025em;         /* proposed */
  --ls-h3: -0.02em;          /* proposed */
  --measure: 64ch;           /* proposed reading width, hard max 80ch */

  /* ---------- Primitive: motion & depth ---------- */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);   /* proposed */

  --shadow-sm: 0 1px 2px rgba(32, 32, 32, 0.06), 0 2px 8px rgba(32, 32, 32, 0.04);       /* proposed */
  --shadow-md: 0 2px 4px rgba(32, 32, 32, 0.05), 0 12px 28px rgba(32, 32, 32, 0.08);     /* proposed */
  --shadow-float: 0 4px 8px rgba(32, 32, 32, 0.08), 0 20px 40px rgba(32, 32, 32, 0.14);  /* floating nav, proposed */
  --shadow-sheet: 0 -8px 40px rgba(32, 32, 32, 0.16);                                    /* proposed */

  --z-sticky: 100;   /* proposed scale */
  --z-nav: 200;
  --z-sheet: 300;
  --z-popover: 350;
  --z-dialog: 400;
  --z-lightbox: 450;
  --z-toast: 500;

  /* ---------- Semantic: light (default) ---------- */
  color-scheme: light;
  --surface-canvas: var(--color-cloud-100);
  --surface-default: var(--color-white);
  --surface-raised: var(--color-white);
  --surface-sunken: var(--color-cloud-100);
  --text-primary: var(--color-ink-900);
  --text-muted: var(--color-gray-600);
  --text-inverse: var(--color-white);
  --border-default: var(--color-gray-200);
  --border-strong: var(--color-gray-500);
  --focus-ring: var(--color-ink-900);
  --surface-scrim: rgba(32, 32, 32, 0.45);               /* proposed: behind sheet / dialog */
  --surface-media: #111111;                              /* proposed: lightbox + feed canvas, dark in both themes */
  --on-media: var(--color-white);
  --overlay-control: rgba(32, 32, 32, 0.55);             /* proposed: round buttons over media */
  --overlay-feed: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.72) 100%);
  --track-default: color-mix(in srgb, var(--color-ink-900) 14%, transparent);
  --ring-input: color-mix(in srgb, var(--accent-coral) 45%, transparent);
  --shadow-thumb: 0 1px 3px rgba(0, 0, 0, 0.3);
  --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --icon-check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");

  --action-primary-bg: var(--color-coral-500);
  --action-primary-bg-hover: var(--color-coral-400);
  --action-primary-fg: var(--color-ink-900);
  --action-strong-bg: var(--color-coral-700);
  --action-strong-bg-hover: var(--color-coral-800);
  --action-strong-fg: var(--color-white);
  --action-link: var(--color-coral-700);
  --action-link-hover: var(--color-coral-800);
  --action-dark-bg: var(--color-ink-900);
  --action-dark-fg: var(--color-white);
  --action-danger-bg: var(--color-coral-700);            /* destructive confirm, 5.5:1 with white */
  --action-danger-bg-hover: var(--color-coral-800);
  --action-danger-fg: var(--color-white);

  /* accent surfaces keep Ink text in every theme */
  --on-accent: var(--color-ink-900);
  --on-accent-muted: #4A4A4A;                            /* proposed: secondary text on accent fills, 5.9:1 on lilac, 7.3:1 on yellow */
  --accent-coral: var(--color-coral-500);
  --accent-yellow: var(--color-yellow-500);
  --accent-blush: var(--color-blush-100);
  --accent-mint: var(--color-mint-200);
  --accent-lilac: var(--color-lilac-200);
  --accent-blue: var(--color-blue-200);

  /* status: always paired with icon + text, never color alone */
  --status-success-bg: var(--color-mint-200);
  --status-success-fg: var(--color-green-700);
  --status-pending-bg: var(--color-yellow-500);
  --status-pending-fg: var(--color-ink-900);
  --status-error-bg: var(--color-blush-100);
  --status-error-fg: var(--color-coral-700);
  --status-info-bg: var(--color-blue-200);
  --status-info-fg: var(--color-blue-700);

  /* ---------- Component tokens ----------
     Each "@component" marker is read by build.mjs to generate the reference table
     on the design system page, so every token here is documented automatically. */

  /* @component Layout */
  --page-inset: 24px;            /* 20 on narrow phones */
  --section-space: 96px;         /* 56-64 on mobile */
  --container-max: 1200px;       /* proposed */
  --pwa-rail: 480px;             /* narrow content rail on large screens */
  --anchor-offset: 96px;         /* scroll-padding under sticky bars */
  --topbar-height: 64px;
  --skip-link-hidden: -64px;
  --skip-link-inset: 16px;

  /* @component Button */
  --button-height-sm: var(--touch-min);
  --button-height-md: 48px;
  --button-height-lg: 56px;
  --button-padding-x: 24px;
  --button-padding-x-sm: var(--space-20);
  --button-padding-x-lg: var(--space-32);
  --button-press-scale: 0.97;
  --button-spinner-size: 16px;
  --button-spinner-width: 2.5px;

  /* @component Input */
  --input-height: 52px;
  --input-padding-x: var(--space-20);
  --input-ring-width: 4px;
  --select-padding-right: 48px;
  --select-chevron-inset: 18px;
  --search-height: 56px;
  --search-padding: 6px;

  /* @component Check / Radio / Toggle */
  --choice-height: var(--touch-min);
  --check-size: 24px;
  --check-radius: var(--radius-xs);
  --check-mark-size: 18px;
  --radio-dot-radius: 4.5px;
  --toggle-width: 52px;
  --toggle-height: 32px;
  --toggle-thumb: 24px;
  --toggle-inset: 4px;

  /* @component Chip / Segmented / Tabs */
  --chip-height: var(--touch-min);
  --segmented-padding: var(--space-4);
  --tab-height: var(--touch-min);

  /* @component Badge / Avatar / Dot */
  --badge-height: 28px;
  --badge-gap: 6px;
  --dot-size: 10px;
  --avatar-sm: 32px;
  --avatar-md: 44px;
  --avatar-lg: 64px;
  --avatar-xl: 96px;

  /* @component Feedback */
  --toast-height: 52px;
  --toast-bg: var(--color-ink-900);                      /* inverse surface: flips in dark so the toast stays visible on dark canvas */
  --toast-fg: var(--color-white);
  --toast-accent: var(--color-mint-200);
  --banner-padding-y: var(--space-12);
  --empty-art-size: 80px;
  --progress-height: 8px;
  --stamp-size: 40px;

  /* @component Card */
  --card-metric-padding: 20px;
  --card-padding-md: 24px;
  --card-padding-lg: var(--space-32);
  --icon-disc-size: 48px;

  /* @component Navigation pill */
  --nav-item-size: 48px;
  --nav-item-height: 52px;
  --nav-center-size: 64px;
  --nav-center-lift: -16px;
  --nav-gap: 2px;
  --nav-label-size: var(--fs-nav);
  --nav-center-icon: 28px;

  /* @component Overlay (scrim) */
  --scrim-blur: 4px;             /* proposed: soft frosted edge behind overlays */
  --motion-rise: 16px;           /* dialog entrance travel */

  /* @component Bottom sheet */
  --sheet-handle-width: 40px;
  --sheet-handle-height: 5px;
  --sheet-padding-x: var(--space-24);
  --sheet-height-auto-max: 85%;
  --sheet-height-half: 50%;
  --sheet-height-full: 100%;

  /* @component Dialog / Confirmation */
  --dialog-width: 440px;
  --dialog-width-sm: 340px;
  --dialog-margin: var(--space-20);
  --dialog-padding: var(--space-24);
  --dialog-icon-size: 56px;

  /* @component Menu / Tooltip */
  --menu-min-width: 220px;
  --menu-item-height: 48px;
  --tooltip-max-width: 240px;
  --tooltip-offset: 8px;

  /* @component Lightbox */
  --lightbox-control: 48px;
  --lightbox-inset: var(--space-16);

  /* @component Calendar / Time slot */
  --calendar-cell: var(--touch-min);
  --calendar-gap: var(--space-4);
  --slot-height: 48px;
  --slot-min-width: 92px;

  /* @component Numeric input */
  --stepper-button: var(--touch-min);
  --otp-width: 48px;
  --otp-height: 56px;
  --keypad-key-height: 56px;

  /* @component Swipe to confirm */
  --swipe-height: 64px;                                  /* proposed: above the 44px minimum, forgiving for thumbs */
  --swipe-thumb: 56px;
  --swipe-fill: color-mix(in srgb, var(--accent-coral) 38%, transparent);

  /* @component List / Settings row */
  --row-height: 56px;
  --row-icon: 40px;
  --group-radius: var(--radius-card-sm);

  /* @component Profile */
  --profile-stat-divider: var(--border-w);

  /* @component Store listing */
  --store-bar-height: 80px;
  --category-item: 72px;

  /* @component Community feed */
  --feed-rail-size: 48px;
  --feed-rail-gap: var(--space-16);
  --feed-cta-height: var(--button-height-md);

  /* @component Chat / Inbox */
  --bubble-max: 78%;
  --bubble-radius: var(--radius-card-sm);
  --bubble-tail-radius: var(--radius-xs);

  /* @component Phone schematic */
  --phone-max-width: 330px;
  --phone-max-width-lg: 390px;
  --phone-bezel: 10px;
  --phone-radius: 48px;
  --phone-screen-radius: 38px;

  /* @component App shell
     Layout values for the installed Store and Member apps (assets/css/app.css). */
  --app-nav-clearance: 128px;    /* bottom padding so content clears the floating pill */
  --app-nav-gap: 16px;           /* pill distance from the screen edge */
  --app-bar-clearance: 24px;     /* bottom padding on screens that show a sticky action bar instead of the pill */
  --thumb-sm: 56px;              /* product row image */
  --thumb-md: 72px;              /* product card image */
  --hero-media-ratio: 16 / 9;    /* product detail and store cover */
  --qr-display: 232px;           /* on-screen redeem and join QR */
  --qr-display-pad: 16px;        /* white paper around the on-screen QR */
  --ls-code: 0.14em;             /* spaced characters for manual codes */
  --scanner-frame: 28px;         /* corner marks on the scanner */
  --offline-height: 40px;

  /* @component QR kit
     Layout scheme lives in assets/js/qr-kit.js; colour and safety values come from here.
     Modules are always Ink on white paper, whatever the preset. */
  --qr-quiet-zone: 4;            /* modules, blueprint minimum */
  --qr-module: var(--color-ink-900);
  --qr-paper: var(--color-white);
  --qr-playful-bg: var(--color-coral-500);
  --qr-playful-fg: var(--color-ink-900);
  --qr-playful-accent: var(--color-yellow-500);
  --qr-minimal-bg: var(--color-white);
  --qr-minimal-fg: var(--color-ink-900);
  --qr-minimal-accent: var(--color-coral-500);
  --qr-elegant-bg: var(--color-ink-900);
  --qr-elegant-fg: var(--color-white);
  --qr-elegant-accent: var(--color-yellow-500);
  --qr-fresh-bg: var(--color-mint-200);
  --qr-fresh-fg: var(--color-ink-900);
  --qr-fresh-accent: var(--color-coral-500);
}

/* Phones: tighter inset and section rhythm (blueprint: 56-64 mobile, 96 desktop) */
@media (max-width: 640px) {
  :root {
    --page-inset: 20px;
    --section-space: 64px;
  }
}

/* ---------- Semantic: dark ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --surface-canvas: var(--color-dark-canvas);
  --surface-default: var(--color-dark-surface);
  --surface-raised: var(--color-dark-raised);
  --surface-sunken: var(--color-dark-canvas);
  --text-primary: var(--color-white);
  --text-muted: var(--color-dark-muted);
  --text-inverse: var(--color-ink-900);
  --border-default: var(--color-dark-border);
  --border-strong: #7A7A7A;
  --focus-ring: var(--color-white);
  --surface-scrim: rgba(0, 0, 0, 0.6);
  --overlay-control: rgba(255, 255, 255, 0.16);
  --track-default: color-mix(in srgb, var(--color-white) 18%, transparent);
  --shadow-thumb: 0 1px 3px rgba(0, 0, 0, 0.6);

  --action-primary-bg: var(--color-coral-500);
  --action-primary-bg-hover: var(--color-coral-400);
  --action-primary-fg: var(--color-ink-900);
  --action-link: var(--color-coral-400);          /* 6.0:1 on surface */
  --action-link-hover: var(--color-white);
  --action-dark-bg: var(--color-white);
  --action-dark-fg: var(--color-ink-900);

  --status-success-bg: #1B3A29;
  --status-success-fg: #8FE3B0;
  --status-pending-bg: #3D3516;
  --status-pending-fg: var(--color-yellow-500);
  --status-error-bg: #44201A;
  --status-error-fg: #FF9A8B;
  --status-info-bg: #1A2F45;
  --status-info-fg: #9CC9F5;

  --toast-bg: var(--color-white);
  --toast-fg: var(--color-ink-900);
  --toast-accent: var(--color-green-700);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Accent regions are light in every theme ----------
   A coral, yellow, blush, mint, lilac or blue card keeps its bright fill in dark mode, so everything
   inside it must resolve to light-theme roles. Without this, text and badges flip to white-on-pastel. */
.card--coral, .card--yellow, .card--blush, .card--mint, .card--lilac, .card--blue {
  color-scheme: light;
  --surface-default: var(--color-white);
  --surface-raised: var(--color-white);
  --surface-sunken: color-mix(in srgb, var(--color-white) 70%, transparent);
  --text-primary: var(--on-accent);
  --text-muted: var(--on-accent-muted);
  --text-inverse: var(--color-white);
  --border-default: color-mix(in srgb, var(--on-accent) 18%, transparent);
  --border-strong: color-mix(in srgb, var(--on-accent) 60%, transparent);
  --focus-ring: var(--color-ink-900);
  --action-link: var(--color-coral-700);
  --action-link-hover: var(--color-coral-800);
  --action-dark-bg: var(--color-ink-900);
  --action-dark-fg: var(--color-white);
  --status-success-bg: var(--color-mint-200);
  --status-success-fg: var(--color-green-700);
  --status-pending-bg: var(--color-yellow-500);
  --status-pending-fg: var(--color-ink-900);
  --status-error-bg: var(--color-blush-100);
  --status-error-fg: var(--color-coral-700);
  --status-info-bg: var(--color-blue-200);
  --status-info-fg: var(--color-blue-700);
}
.card--coral { --text-muted: var(--on-accent); }   /* gray on coral fails; Ink is 5.2:1 */

Governance and release gates

Design quality is a deliverable, not an aesthetic preference. Tokens, then components, then patterns, then screens, then a QA gate.

Acceptance checklist

  • No horizontal overflow at 360, 390, 430 and 768 px.
  • No hardcoded color or spacing outside tokens without a documented exception.
  • Consistent iconography: official Lucide only, no raw Unicode icons.
  • No duplicated page title. Keyboard accessible. Meaningful contrast.
  • Primary action reachable. Clear inline validation.
  • No fake stats. Real QR. Correct payment status.
  • Light and dark, reduced motion, long labels, missing image, multi-outlet, time zones.

Ownership

Product ownerScope and pricing
Design ownerTokens and card grammar
Frontend ownerComponent implementation
QAVisual regression, interaction tests
SecurityPayment, messaging and consent surfaces

Release only after both design and workflow acceptance pass. A READY deployment is never the same as production quality.

Copied