# Khan Academy design system

> Captured from https://www.khanacademy.org/ on 2026-10-06 by Brooks New Media (https://design.brooksnewmedia.com/styles/khan-academy/). An independent analysis for reference: Khan Academy and its marks belong to their owner. Learn from the system; don't copy the brand.

## Overview

Khan Academy pairs a white page and #151521 ink with one violet, #5753fa, for sign up buttons, links and its illustrated mascot. Plus Jakarta Sans runs every size, from a 42px bold headline with italic emphasis to 14px medium body. The hero offers a stack of bordered cards, one per audience, with 8px corners and a pale #ebf1fd tint.

- Theme: light
- Mood: violet, friendly, illustrated, education, cards
- Category: Nonprofit

## Colors

| Role | Hex | Use |
|---|---|---|
| Background | `#ffffff` | The page ground |
| Surface | `#ebf1fd` | Raised panels, bands and cards |
| Text | `#151521` | Primary ink, 18.1:1 on the background |
| Muted text | `#4a4c53` | Supporting copy, 8.6:1 on the background |
| Accent | `#5753fa` | Primary actions |
| Border | `#cbcbcd` | Hairlines and dividers |

Full palette, most used first: `#ffffff`, `#151521`, `#ebf1fd`, `#4a4c53`, `#5753fa`, `#f6f6f6`, `#363498`, `#0000ee`.

## Typography

- **Plus Jakarta Sans**: display and body, 100% of the text. Use Plus Jakarta Sans. Plus Jakarta Sans is free under the SIL Open Font License.

| Role | Family | Size | Weight | Line height | Tracking |
|---|---|---|---|---|---|
| Display | Plus Jakarta Sans | 42px | 700 | 1.1 | 0 |
| Heading | Plus Jakarta Sans | 24px | 700 | 1.33 | 0 |
| Subheading | Plus Jakarta Sans | 18px | 700 | 1.33 | 0 |
| Body | Plus Jakarta Sans | 14px | 500 | 1.71 | 0 |

Sizes in use, largest first: 42px, 32px, 24px, 20px, 18px, 16px, 14px.

## Spacing

Values sit on a 4px grid.
Values in use: 2px, 4px, 8px, 10px, 12px, 16px, 20px, 24px, 32px, 48px, 64px, 88px.

## Shape

Corner radii, smallest first: 8px, pill (9999px).

Shadows, most used first:

- `rgba(37, 35, 104, 0.2) 0px 2px 2px 0px`

## Components

### Primary button ("Sign up")

- Fill: #5753fa
- Text: #ffffff, 14px at weight 400
- Border: none
- Corner: 8px
- Height: 40px, padding 0px 16px

### Secondary button ("Math")

- Fill: transparent
- Text: #4a4c53, 16px at weight 600
- Border: 1px solid #cbcbcd
- Corner: pill (9999px)
- Height: 66px, padding 16px 20px

## Do

- Let one violet own every action and the illustration.
- Offer a stack of audience cards in the hero, each with a photo and a chevron.
- Use italic in the headline for one or two words of emphasis.

## Don't

- Introduce more than one brand hue; small shapes in other colors are decoration only.
- Use sharp corners: buttons and cards round at 8px, chips go full pill.
- Set body copy large: it sits at 14px with a tall 1.71 line height.

## CSS variables

```css
:root {
  --color-background: #ffffff;
  --color-surface: #ebf1fd;
  --color-text: #151521;
  --color-text-muted: #4a4c53;
  --color-accent: #5753fa;
  --color-border: #cbcbcd;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --text-display: 42px;
  --weight-display: 700;
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --text-heading: 24px;
  --weight-heading: 700;
  --font-subheading: "Plus Jakarta Sans", system-ui, sans-serif;
  --text-subheading: 18px;
  --weight-subheading: 700;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --text-body: 14px;
  --weight-body: 500;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --space-10: 48px;
  --space-11: 64px;
  --space-12: 88px;
  --radius-1: 8px;
  --radius-2: 9999px;
}
```

## Notes for AI coding tools

- Start from the CSS variables above and build components from them, not from new values.
- Use the font substitutes listed. Never embed a commercial or platform-only typeface without a license.
- Keep body text at 4.5:1 contrast or better against its ground.
- These values were measured from the live page at 1440x900; the site may have changed since 2026-10-06.
