---
version: alpha
name: Marham
description: "Light interface measured from marham.pk: Open sans type with Poppins, dark blue accents, tonal surfaces and 14.2px corners."
colors:
  background: "#FFFFFF"
  surface: "#FFFFFF"
  on-surface: "#3A3A3A"
  on-background: "#3A3A3A"
  on-surface-variant: "#373F50"
  on-surface-muted: "#4B4B4B"
  on-surface-subtle: "#4B566B"
  surface-container-low: "#F2FAFE"
  surface-container: "#E8F6F9"
  surface-container-high: "#DFEFEB"
  outline: "#00000020"
  outline-variant: "#F2FAFE"
  primary: "#014E78"
  on-primary: "#FFFFFF"
  secondary: "#007BFF"
  tertiary: "#F5960B"
typography:
  headline-display:
    fontFamily: Open sans
    fontSize: 18px
    fontWeight: 700
    lineHeight: 1.2
  body-md:
    fontFamily: Open sans
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  body-lg:
    fontFamily: Open sans
    fontSize: 18px
    fontWeight: 600
    lineHeight: 1.2
  body-sm:
    fontFamily: Open sans
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.7
  label-lg:
    fontFamily: Open sans
    fontSize: 16px
    fontWeight: 600
    lineHeight: 1.2
  label-md:
    fontFamily: Poppins
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.92
    letterSpacing: 0.107em
  label-sm:
    fontFamily: Open sans
    fontSize: 14px
    fontWeight: 500
    lineHeight: 1.7
  headline-display-mobile:
    fontFamily: Open sans
    fontSize: 12px
    fontWeight: 700
    lineHeight: 1.2
rounded:
  xs: 4.95px
  sm: 6.4px
  md: 8px
  lg: 12.24px
  xl: 14.2px
  full: 9999px
spacing:
  xs: 4px
  sm: 8px
  md: 16px
  lg: 24px
  xl: 48px
  gutter: 14px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-md}"
    rounded: "{rounded.xs}"
    padding: 6px 22px
    height: 38px
  button-outline:
    backgroundColor: "{colors.background}"
    textColor: "{colors.primary}"
    typography: "{typography.body-md}"
    rounded: "{rounded.xs}"
    padding: 6px 22px
    height: 38px
  button-outline-hover:
    textColor: "{colors.on-surface-subtle}"
  button-secondary:
    backgroundColor: "#004D71"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    rounded: 4px
    padding: 0px 16px
    height: 38px
  button-ghost:
    textColor: "{colors.primary}"
    typography: "{typography.label-md}"
    rounded: "{rounded.sm}"
    padding: 0px 16px
  input-field:
    backgroundColor: "{colors.background}"
    textColor: "#495057"
    typography: "{typography.body-md}"
    rounded: 0px
    padding: 10px 16px
  card:
    backgroundColor: "{colors.surface-container}"
    textColor: "{colors.primary}"
    typography: "{typography.body-md}"
    rounded: 14.48px
    padding: 0px
  link:
    textColor: "{colors.on-surface-subtle}"
---

# Marham Design System

## Overview

Marham describes itself as: “Pakistans most trusted platform to find doctors, book appointment, or consult online with the top specialist doctors across Pakistan.” The interface is light, built on **White (#FFFFFF)** with **Graphite (#3A3A3A)** text, and **Dark Blue (#014E78)** as the main accent.

Type is set in **Open sans** and **Poppins**. Headlines run large; body text is 16px. Depth comes from soft drop shadows. Corners are mostly 14.2px.

Measured from [marham.pk](https://www.marham.pk/) on November 12, 2026 at 1440×900 and 390×844 from 428 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 14 roles, plus gradient stops #014E76, #6FC3D4.

- **White (#FFFFFF):** Page background, seen 33 times. Token `background`, CSS `--white`.
- **Graphite (#3A3A3A):** Primary text and headings, seen 40 times. Token `on-surface`.
- **Dark Blue (#373F50):** Secondary text, seen 4 times. Token `on-surface-variant`.
- **Graphite (#4B4B4B):** Muted text and metadata, seen 4 times. Token `on-surface-muted`.
- **Dark Blue (#4B566B):** Subtle text and placeholders, seen 40 times. Token `on-surface-subtle`.
- **Cool Snow (#F2FAFE):** Raised areas one step from the page, seen 1 time. Token `surface-container-low`.
- **Cool Mist (#E8F6F9):** Cards and panels, seen 5 times. Token `surface-container`.
- **Mist (#DFEFEB):** Hover and pressed fills, seen 7 times. Token `surface-container-high`.
- **Near Black 13% (#00000020):** Borders and dividers, seen 11 times. Token `outline`.
- **Cool Snow (#F2FAFE):** Secondary dividers, seen 1 time. Token `outline-variant`.
- **Dark Blue (#014E78):** Primary buttons and calls to action, seen 78 times. Token `primary`, CSS `--accent`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Vivid Blue (#007BFF):** Accent (CSS variable). Token `secondary`.
- **Vivid Orange (#F5960B):** Accent, seen 8 times. Token `tertiary`.

## Typography

**Open sans** and **Poppins** share the interface. Fallback stack: `Open sans, system-ui, -apple-system, sans-serif`.

- **headline-display:** Open sans 18px at weight 700, line height 1.2 (12px on mobile). Page title (h1).
- **body-md:** Open sans 16px at weight 400, line height 1.5. Body text.
- **body-lg:** Open sans 18px at weight 600, line height 1.2. Lead paragraphs.
- **body-sm:** Open sans 14px at weight 400, line height 1.7. Secondary and small text.
- **label-lg:** Open sans 16px at weight 600, line height 1.2. Large buttons and tabs.
- **label-md:** Poppins 15px at weight 400, line height 1.92, tracking 0.107em. Buttons, navigation and labels.
- **label-sm:** Open sans 14px at weight 500, line height 1.7. Small labels and badges.

## Layout

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

- **Scale:** xs 4px, sm 8px, md 16px, lg 24px, xl 48px.
- **Gaps:** 14px is the most common gap in flex and grid layouts.
- **Breakpoints:** 375px, 480px, 500px, 575.98px, 576px, 767.98px, 768px, 991.98px, 992px, 1279.98px, 1280px.

## Elevation & Depth

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

- `rgba(0, 0, 0, 0.1) 0px 3.0608px 3.0608px 0px`
- `rgba(0, 0, 0, 0.13) 0px 3.7136px 3.7136px 0px`
- `rgba(0, 0, 0, 0.13) 0px 3.71351px 3.71351px 0px`

## Shapes

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

- **xl (14.2px):** 66 elements.
- **md (8px):** 64 elements.
- **lg (12.24px):** 60 elements.
- **sm (6.4px):** 20 elements.
- **xs (4.95px):** 16 elements.
- **full (9999px):** 4 elements.

## Components

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

- **button-primary (“Ask a Question”):** #014E78 fill, #FFFFFF text, 16px/400, 4.952px radius, padding 6px 22px, shadow `rgba(0, 0, 0, 0.13) 0px 3.7136px 3.7136px 0px`.
- **button-outline (“View All Questions”):** #FFFFFF fill, #014E78 text, 16px/400, 4.952px radius, padding 6px 22px, shadow `rgba(0, 0, 0, 0.13) 0px 3.7136px 3.7136px 0px`.
- **button-outline-hover:** background #FFFFFF, text #4B566B on hover.
- **button-secondary (“Contact Marham”):** #004D71 fill, #FFFFFF text, 15px/400, 4px radius, padding 0px 16px, border 1px solid #004D71.
- **button-ghost (“Login”):** transparent fill, #014E78 text, 15px/400, 6.4px radius, padding 0px 16px, border 1px solid #014E78.
- **input-field (“Enter City”):** #FFFFFF fill, #495057 text, 16px/400, padding 10px 16px, shadow `rgba(0, 0, 0, 0) 0px 0px 0px 0px`.
- **card:** #E8F6F9 fill, #014E78 text, 16px/400, 14.4832px radius, padding 0px, shadow `rgba(0, 0, 0, 0.1) 0px 3.6208px 3.6208px 0px`.
- **link:** transparent fill, #4B566B text, padding 0px.

## Do's and Don'ts

- Do use #FFFFFF for the page and lift surfaces in small steps: #F2FAFE, #E8F6F9, #DFEFEB.
- Do keep text in 4 levels: #3A3A3A, #373F50, #4B4B4B, #4B566B.
- Do reserve #014E78 for primary actions and key highlights.
- Do reuse the measured spacing steps (8px, 16px, 24px).
- Do use 14.2px corners on most elements; larger surfaces also use 8px, 12.24px and 6.4px.
- Don't introduce new font families beyond Open sans and Poppins.
- Don't use #014E78 for large backgrounds or body text.
- Don't make interface transitions slower than 0.25s.

## Motion

Interface transitions are quick: 0.25s, 0.15s.

- **Easing:** `ease-in-out`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

Generated by [Sitepeel](https://sitepeel.dev/design-md/marham.pk/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
