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.
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 reviewIcon buttons
For toolbars only. Always pair with aria-label and, where the meaning isn’t obvious, a data-tip. In tables prefer labelled menus.
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).
Checkbox, radio & switch
Switch for settings that apply immediately or on save; checkbox for selection & lists; radio for one-of-few.
Segmented, stepper & range
[data-segmented] emits change with the value. Stepper respects data-min/data-max.
Tabs & steps
Tabs switch views of the same object; add data-hash to sync the URL. Steps show progress through a flow.
- Travellers
- Add-ons
- Payment
- 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.
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.
| Booking | Customer | Status | Sell | Actions |
|---|
No matches
Try another booking ID.
Lists & money
Attention rows (every row is an action), bar lists, definition lists, price breakdown with net / markup / sell / earned.
Needs attention
Price breakdown
Bar list & dl
- Wallet balance
- ₹12,52,776.06
- Credit available
- ₹3,81,600
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
Charts
SD.chart.spark, .line (hover tooltip) and .bars — inline SVG, no library.
Line
Bars
Alerts
Inline, persistent context. Lead with the bold fact, follow with what to do.
Progress
Use for known completion (profile %, credit used). Tone reflects state, not decoration.
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.
Cards & surfaces
Default card, hover card, dark feature card, sticky action bar (shown static here).
Card head
With subtitle
Lifts border and shadow on hover — for whole-card links.
₹12,52,776
Use sparingly — one hero per page, max.