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.
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.
| Moment | Say | Why |
|---|---|---|
| Greeting | Make today super! | Positive, short, on brand. |
| Action | Tambah transaksi | Verb first, one name for one action. |
| Honest status | Pembayaran menunggu verifikasi | Pending never looks paid. |
| Money moves | Verifikasi pembayaran Rp73.000 | Clarity beats playfulness on financial actions. |
Logo
Lowercase supermember. with a distinctive final period. The coral period may be highlighted. Final logo artwork and trademark clearance are still pending.
Ink wordmark on light backgrounds, white on dark. On coral and yellow the period shifts to white or accessible coral for legibility.
Clear space and minimum size
Keep clear space at least the height of the "s" around the wordmark. Minimum 96 px wide for the wordmark, 32 px for the app icon. Use vector masters for print.
Never
Also: no text over busy imagery without enough contrast.
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.default | White | #FFF |
surface.canvas | Cloud | #F5F5F7 |
text.primary | Ink | #202020 |
text.muted | Gray 600 | #626262 |
border.default | Gray 200 | #E8E8E8 |
action.link | Coral 700 | #C53220 |
action.link.hover | Coral 800 | #9F291C |
Dark
surface.canvas | #151515 | #151515 |
surface.default | #252525 | #252525 |
surface.raised | #303030 | #303030 |
text.primary | White | #FFF |
text.muted | #B5B5B5 | #B5B5B5 |
border.default | #353535 | #353535 |
Status always uses icon plus text, never color alone.
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.
| Pair | Ratio | Normal text | Large text and UI | Rule |
|---|
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.
Typography
One typeface, five weights. Plus Jakarta Sans for the app and every marketing surface. Use tabular numerals for money.
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.
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-44space-88space-1212space-1616space-2020space-2424space-3232space-4848space-6464space-9696Padding 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.
Where each value goes
| Context | Value | Token |
|---|---|---|
| Mobile page inset | 20–24 | --page-inset |
| Card padding | 16–24 (metric 20) | --card-padding-md |
| Grid gaps | 12–16 | space-12, space-16 |
| Marketing section, mobile / desktop | 56–64 / 96 | --section-space |
| Button height / horizontal padding | 48 (sm 44, lg 56) / 24 | --button-height-* |
| Input height / horizontal padding | 52 / 20 | --input-height |
| Chip height / padding / gap | 44 / 16 / 8 | space-16, space-8 |
| Bottom sheet body / footer | 24 / 16 plus safe area | space-24, space-16 |
| Touch target | at least 44 × 44, controls 48–56 | --button-height-sm |
| Stack rhythm: related, grouped, block Proposed | 8, 16, 24 | .stack + --stack |
| Container max width, PWA rail Proposed | 1200, 480 | --container-max, --pwa-rail |
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.
9999px20px28px36px16px20px36pxElevation 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.
border only
cards
search, raised
floating nav
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.
Forms
Chips, tabs, badges, avatars
Feedback and empty states
Skeleton matches the final layout.
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
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
Stepper, OTP and amount keypad
Stepper
Small whole numbers: stamps required, quantity, guests. Hold the limit and the button disables.
OTP
One digit per box, auto-advance, paste fills all, backspace steps back.
Kode salah. Minta kode baru dalam 30 detik.
Amount keypad
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
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
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. CallSM.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.
Which one to use
| Need | Use |
|---|---|
| Choose, filter, edit one thing, short form | Bottom sheet |
| Long or multi-step form on mobile | Full sheet, or a page |
| Confirm, warn, block until decided | Dialog |
| Small list of actions for one item | Menu |
| Feedback after an action, no decision | Toast |
| A status that stays on the page | Banner |
| Look closely at photos, a poster or a QR code | Lightbox, close on the top-left |
| A long form or flow that needs the whole screen | Full-screen sheet, close on the top-left, no handle |
Stacking scale
| Layer | Token | Value |
|---|---|---|
| Sticky bars | --z-sticky | 100 |
| Navigation | --z-nav | 200 |
| Sheet and its scrim | --z-sheet | 300 |
| Menu | --z-popover | 350 |
| Dialog and its scrim | --z-dialog | 400 |
| Lightbox | --z-lightbox | 450 |
| Toast | --z-toast | 500 |
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"oralertdialog,aria-modaland 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 bulanDisclosure
Apakah poin bisa hangus?
Bisa dipakai di semua toko?
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.
Cappuccino dan Americano untuk member Gold. Berlaku 1–30 Des 2026.
| Role | Contains | Surface | Radius |
|---|---|---|---|
| Metric | Prominent value and context. Trend only if real. | Coral | 20 |
| Product | Image 4:3, name, price, availability, add action. | Blush | 28, image 20 |
| Membership | Brand, tier, progress. | Lilac | 28 |
| Promotion | Offer, dates, eligibility. | Yellow | 28–36 |
| Order | Reference, amount, status, primary action. | White, hairline | 20 |
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.
Profile and settings
Store listing
Kopi pagi diskon 20% sampai jam 10. Scan, gabung, dapat stempel pertama.
Community feed
Inbox and chat
Rules for these surfaces
- 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.
- 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.
- 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.
- 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
One outlet, one QR set. Enough to prove the habit before paying.
Price follows member capacity, not store count. Same account, one owner login.
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.
- 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.
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. 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. Off reveals that store's own rules: stamps needed and reward. A "Custom" badge appears next to the store everywhere it is listed.
- 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.
Settings, store
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.
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.


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.
Logo lives in Settings
The merchant uploads a logo once, under Settings, Logo dan merek. Every printed or shared surface reads it from there, so a poster, receipt and member card always match the café. Upload one below and watch the poster above update.
Logo rules
- Set once in Settings. The poster, receipt, invoice and member card all read the same file.
- The logo sits in the header on a white tile. It never covers the code, so scan reliability does not change.
- Square logos get a round tile. Wide wordmarks get a wider rounded tile, up to 2.6 times the header height.
- No logo yet: the poster shows the store's initials on an accent disc.
- Uploads are re-drawn to a 512px PNG in the browser. Scripts or links inside an SVG logo cannot travel with it.
- Ask merchants for a transparent PNG or SVG. A photo of a printed logo works but prints softer.
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.
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.
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 and 430 px phones plus a 768 px sanity check. Test long labels and 200% text zoom without clipping.
Touch targets
Interactive targets are at least 44 × 44. Standard controls are 48–56. Keep sticky actions clear of the keyboard and navigation.
| Rule | Detail |
|---|---|
| Cart and scroll | Preserve the cart per outlet, restore list scroll position, back restores forms safely. |
| Sheets | One navigation owner for bottom sheets. Hide unavailable modules; explain disabled core actions. |
| Deep links | Route to the exact store, booking, order or post. |
| Cashier | Product tap adds quickly, stock state is visible, category chips scroll, cart is sticky and collapsible. Payment confirmation is distinct from order creation. |
| Feed exception | Edge-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.
| Component | Tokens (generated from tokens.css) |
|---|---|
| Layout |
|
| Button |
|
| Input |
|
| Check / Radio / Toggle |
|
| Chip / Segmented / Tabs |
|
| Badge / Avatar / Dot |
|
| Feedback |
|
| Card |
|
| Navigation pill |
|
| Overlay (scrim) |
|
| Bottom sheet |
|
| Dialog / Confirmation |
|
| Menu / Tooltip |
|
| Lightbox |
|
| Calendar / Time slot |
|
| Numeric input |
|
| Swipe to confirm |
|
| List / Settings row |
|
| Profile |
|
| Store listing |
|
| Community feed |
|
| Chat / Inbox |
|
| Phone schematic |
|
| App shell |
|
| QR kit |
|
/* ==========================================================================
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 owner | Scope and pricing |
| Design owner | Tokens and card grammar |
| Frontend owner | Component implementation |
| QA | Visual regression, interaction tests |
| Security | Payment, messaging and consent surfaces |
Release only after both design and workflow acceptance pass. A READY deployment is never the same as production quality.