Design system · internal

Components

Every shared component in every state, rendered from assets/components.css. If it’s not here, it isn’t shared yet.

Typography

Manrope for display (h1–h3, KPI values), DM Sans for everything else, JetBrains Mono for IDs & PNRs. Body is 13px.

Colour tokens

Read live from :root. Product accents are for icons and charts only — never full backgrounds. Cobalt is the only action colour.

Spacing

4px base. Cards pad 16–20px; gaps 12–16px.

Radius & elevation

Cards 8px, controls 6px, pills 999px. Shadow 1 for hover, 2 for menus, 3 for drawers/modals.

Radius
Shadows

Icons

Lucide-style 24px strokes. Click to copy the <svg><use> snippet. Icon-only buttons must have an aria-label.

Buttons

One primary per visual group. Hover / focus columns are forced states for review. Loading hides the label and blocks clicks.

Sizes

States

Hover and focus are forced for review

Icon buttons

For toolbars only. Always pair with aria-label and, where the meaning isn’t obvious, a data-tip. In tables prefer labelled menus.

default · bordered · sm · badge · hover · focus · disabled
⌘KEsc?

Text inputs

Label above, help below. Error replaces help text with the fix. Read-only for values the user can’t change here (say where they can).

As on passport
3px cobalt ring
GSTIN must be 15 characters
Unavailable for this booking
Contact support to change
.input--sm
/
₹
Fixed amounts
%
Percentages — suffix, never ₹
+91
data-reveal toggle

Checkbox, radio & switch

Switch for settings that apply immediately or on save; checkbox for selection & lists; radio for one-of-few.

Checkbox
Radio
Switch
Filter list (with counts)

Segmented, stepper & range

[data-segmented] emits change with the value. Stepper respects data-min/data-max.

2
Segmented value: 7D
₹4,769₹25,000

Tabs & steps

Tabs switch views of the same object; add data-hash to sync the URL. Steps show progress through a flow.

Overview panel — use arrow keys to move between tabs.
  1. Travellers
  2. Add-ons
  3. Payment
  4. Confirmation

Pagination & breadcrumbs

Pagination sits in the table card footer. Breadcrumbs come from data-crumbs on body.

Badges, tags & chips

Badges carry status (icon + text). Tags are neutral metadata. Chips are interactive filters — dashed until active.

Badges
Tags
RepeatDubaiHigh value
Chips
Other
Live dotSD-FL-240918-7K2+₹2,000Below your 3% minimum12.7%3.1%0.0%

Status vocabulary

Rendered from SD.STATUS via SD.status(kind, key, 'badge'|'dot'). Text + icon + restrained colour — never colour alone.

Product icons

SD.prodIco(key) — tinted tile. The only place product accents appear.

KPI strip

Label with icon, display value, one line of meta (delta + context), optional sparkline.

Table

Toolbar → bulk bar → table--cards (becomes cards < 760px) → pagination. One row shown selected. Actions are labelled.

1 selected
BookingCustomerStatusSellActions

Lists & money

Attention rows (every row is an action), bar lists, definition lists, price breakdown with net / markup / sell / earned.

Needs attention

Hold expires 18:00BLR → DXB · ₹23,340
Pay now
BNPL due tomorrow₹42,180
Settle
3 new enquiriesOldest 1 day
Assign

Price breakdown

Net fare₹9,538
Base + taxes₹9,538
Your markup₹2,000
Customer pays₹11,538
You earn₹2,000
₹11,538net ₹9,538 · +₹2,000

Bar list & dl

Dubai38
Goa27
Wallet balance
₹12,52,776.06
Credit available
₹3,81,600
PNRK7XQ2M
Travel27 Sep 2026

Timeline, notifications & avatars

Timelines for booking history. Relative time only in feeds.

  • Ticket issuedPNR K7XQ2M
  • Payment capturedWallet · ₹9,538
  • Fare changed+₹212 accepted
  • Seat unavailableAuto-reassigned
SMMDLG
C1C2C3C4C5
AMKSRV+2Avatar group
AMSkyline JourneysAG-20418 · Owner

Charts

SD.chart.spark, .line (hover tooltip) and .bars — inline SVG, no library.

Line

Bars

Enquiries
151
100%
Booked
48
32%

Alerts

Inline, persistent context. Lead with the bold fact, follow with what to do.

Heads up. Fares shown include your markup. Toggle customer view to hide earnings.
Deposit approved. ₹2,00,000 credited to your wallet.
Hold expires in 3h. Pay before 18:00 or the fare is released.
Booking failed. ₹48,200 has been returned to your wallet.

Progress

Use for known completion (profile %, credit used). Tone reflects state, not decoration.

Default · 64%
Success · 86%
Warning · 92% of credit used
Empty · 0%

Empty & loading

Every list ships an empty state (what happened + one action) and a skeleton shaped like the content.

No enquiries yet

Enquiries from your website and WhatsApp land here. Share your booking link to get started.

Toasts

SD.toast(title, body, tone) or data-toast="Title|Body|tone". On a .btn it shows a loading state first.

Drawer & modal

Drawers for detail and forms that keep context; modals for short confirmations and OTP. Place them after </main> so they stack above the page. Esc closes; focus returns to the trigger.

Tooltips

data-tip — short, supplementary. Never the only place information lives.

Focusable badge

Cards & surfaces

Default card, hover card, dark feature card, sticky action bar (shown static here).

Card head

With subtitle

Body · 16px 18px
FooterLink
.card--hover

Lifts border and shadow on hover — for whole-card links.

card--dark

₹12,52,776

Use sparingly — one hero per page, max.

2 unsaved changes