---
version: alpha
name: Madaraka Express
description: "Light interface measured from premium.metickets.krc.co.ke: Plus Jakarta Sans type, dark red accents, tonal surfaces and 12px corners."
colors:
  background: "#F9FAFB"
  surface: "#F9FAFB"
  on-surface: "#111827"
  on-background: "#111827"
  on-surface-variant: "#4A5565"
  on-surface-muted: "#6A7282"
  on-surface-subtle: "#99A1AF"
  surface-container-low: "#FFFFFF"
  surface-container: "#E5E7EB"
  overlay: "#8824301A"
  overlay-strong: "#F5B30033"
  outline: "#E5E7EB"
  outline-variant: "#88243033"
  primary: "#882430"
  on-primary: "#FFFFFF"
  inverse-surface: "#101828"
  secondary: "#C99300"
  tertiary: "#FFC107"
  warning: "#F5B300"
typography:
  headline-display:
    fontFamily: Plus Jakarta Sans
    fontSize: 61px
    fontWeight: 700
    lineHeight: 1.25
  headline-lg:
    fontFamily: Plus Jakarta Sans
    fontSize: 24px
    fontWeight: 700
    lineHeight: 1.33
  body-md:
    fontFamily: Plus Jakarta Sans
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.43
  body-sm:
    fontFamily: Plus Jakarta Sans
    fontSize: 11px
    fontWeight: 400
    lineHeight: 1.25
  label-lg:
    fontFamily: Plus Jakarta Sans
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  label-md:
    fontFamily: Plus Jakarta Sans
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.43
  label-sm:
    fontFamily: Plus Jakarta Sans
    fontSize: 12px
    fontWeight: 800
    lineHeight: 1.5
    letterSpacing: 0.1em
  headline-display-mobile:
    fontFamily: Plus Jakarta Sans
    fontSize: 35px
    fontWeight: 700
    lineHeight: 1.25
rounded:
  sm: 6px
  md: 12px
  lg: 16px
  xl: 24px
spacing:
  xs: 4px
  sm: 8px
  md: 16px
  lg: 20px
  xl: 48px
  gutter: 8px
  section: 48px
  container: 1280px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-md}"
    rounded: 0px
    padding: 12px 20px
    height: 44px
  button-outline:
    backgroundColor: "{colors.surface-container-low}"
    textColor: "{colors.inverse-surface}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.lg}"
    padding: 16px
    height: 80px
  button-ghost:
    backgroundColor: "{colors.background}"
    textColor: "{colors.inverse-surface}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.md}"
    padding: 10px 12px
    height: 42px
  link:
    textColor: "{colors.on-surface-muted}"
---

# Madaraka Express Design System

## Overview

Madaraka Express describes itself as: “Book Madaraka Express SGR train tickets online: search trips, choose your seats and pay securely via M-Pesa.” The interface is light, built on **Snow (#F9FAFB)** with **Deep Blue (#111827)** text, and **Dark Red (#882430)** as the main accent.

Type is set in **Plus Jakarta Sans**. Headlines run large; body text is 14px. Depth comes from soft drop shadows. Corners are mostly 12px.

Measured from [premium.metickets.krc.co.ke](https://premium.metickets.krc.co.ke/) on November 23, 2026 at 1440×900 and 390×844 from 274 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 17 roles, plus gradient stops #882430, #6B1C26, #3D0F15.

- **Snow (#F9FAFB):** Page background, seen 3 times. Token `background`.
- **Deep Blue (#111827):** Primary text and headings, seen 19 times. Token `on-surface`.
- **Dark Blue (#4A5565):** Secondary text, seen 7 times. Token `on-surface-variant`.
- **Blue (#6A7282):** Muted text and metadata, seen 30 times. Token `on-surface-muted`.
- **Blue (#99A1AF):** Subtle text and placeholders, seen 9 times. Token `on-surface-subtle`.
- **White (#FFFFFF):** Raised areas one step from the page, seen 10 times. Token `surface-container-low`, CSS `--tw-ring-offset-color`.
- **Cool Mist (#E5E7EB):** Cards and panels, seen 1 time. Token `surface-container`.
- **Dark Red 10% (#8824301A):** Translucent fill for cards and controls, seen 4 times. Token `overlay`.
- **Vivid Amber 20% (#F5B30033):** Stronger translucent fill, seen 3 times. Token `overlay-strong`.
- **Cool Mist (#E5E7EB):** Borders and dividers, seen 3 times. Token `outline`.
- **Dark Red 20% (#88243033):** Secondary dividers, seen 2 times. Token `outline-variant`.
- **Dark Red (#882430):** Brand color in the header, seen 22 times. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Deep Blue (#101828):** High-contrast fills, seen 1 time. Token `inverse-surface`.
- **Amber (#C99300):** Accent (CSS variable), seen 8 times. Token `secondary`, CSS `--color-accent-dark`.
- **Vivid Amber (#FFC107):** Accent (CSS variable). Token `tertiary`.
- **Vivid Amber (#F5B300):** Warnings and highlights, seen 8 times. Token `warning`, CSS `--color-accent`.

## Typography

**Plus Jakarta Sans** carries the whole interface. Fallback stack: `Plus Jakarta Sans, system-ui, -apple-system, Segoe UI`.

- **headline-display:** Plus Jakarta Sans 61px at weight 700, line height 1.25 (35px on mobile). Page title (h1).
- **headline-lg:** Plus Jakarta Sans 24px at weight 700, line height 1.33. Section headings (h2).
- **body-md:** Plus Jakarta Sans 14px at weight 400, line height 1.43. Body text.
- **body-sm:** Plus Jakarta Sans 11px at weight 400, line height 1.25. Secondary and small text.
- **label-lg:** Plus Jakarta Sans 16px at weight 400, line height 1.5. Large buttons and tabs.
- **label-md:** Plus Jakarta Sans 14px at weight 600, line height 1.43. Buttons, navigation and labels.
- **label-sm:** Plus Jakarta Sans 12px at weight 800, line height 1.5, tracking 0.1em, uppercase. Small labels and badges.

## Layout

Spacing is mostly on a 4px grid (84% of measured values), with some off-grid steps. Match the measured scale rather than rounding everything.

- **Scale:** xs 4px, sm 8px, md 16px, lg 20px, xl 48px.
- **Sections:** 48px vertical padding between major sections.
- **Gaps:** 8px is the most common gap in flex and grid layouts.
- **Container:** content is capped at 1280px.

## Elevation & Depth

Raised elements use soft drop shadows. The most used recipes:

- `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px`
- `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px`
- `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px`

Hairline rings and inset highlights also appear: `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 2px 4px 0px inset`.

## Shapes

Most elements use 12px corners. Measured radii, most used first:

- **md (12px):** 32 elements.
- **sm (6px):** 24 elements.
- **lg (16px):** 24 elements.
- **xl (24px):** 4 elements.

## Components

Measured from the rendered page. Token values reference the tokens above.

- **button-primary (“One Way”):** #882430 fill, #FFFFFF text, 14px/700, padding 12px 20px, shadow `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 2px 4px 0px inset`.
- **button-outline (“One Way Single trip”):** #FFFFFF fill, #101828 text, 16px/400, 16px radius, padding 16px, border 2px solid #88243033.
- **button-ghost (“0 Passengers”):** #F9FAFB fill, #101828 text, 16px/400, 12px radius, padding 10px 12px, border 1px solid #E5E7EB.
- **link:** transparent fill, #6A7282 text, padding 0px.

## Do's and Don'ts

- Do use #F9FAFB for the page and lift surfaces in small steps: #FFFFFF, #E5E7EB.
- Do keep text in 4 levels: #111827, #4A5565, #6A7282, #99A1AF.
- Do use #882430 as the brand accent: header, logo and key highlights.
- Do reuse the measured spacing steps (8px, 16px, 20px).
- Do use 12px corners on most elements; larger surfaces also use 6px, 16px and 24px.
- Don't use #99A1AF for body text; it reaches 2.49:1 on #F9FAFB. Keep it for large text or metadata.
- Don't introduce new font families beyond Plus Jakarta Sans.
- Don't use #882430 for large backgrounds or body text.
- Don't make interface transitions slower than 0.3s.

## Motion

Interface transitions are quick: 0.15s, 0.2s, 0.3s.

- **Easing:** `cubic-bezier(0.4, 0, 0.2, 1)`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

Generated by [Sitepeel](https://sitepeel.dev/design-md/premium.metickets.krc.co.ke/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
