---
version: alpha
name: Haskell
description: "Light interface measured from haskell.org: Source Sans 3 type with Raleway, purple accents, tonal surfaces and pill-shaped controls."
colors:
  background: "#FFFFFF"
  surface: "#FFFFFF"
  on-surface: "#333333"
  on-background: "#333333"
  on-surface-variant: "#666666"
  on-surface-muted: "#717171"
  surface-container-low: "#CCCCCC"
  outline: "#DDDDDD"
  primary: "#9E358F"
  on-primary: "#FFFFFF"
  secondary: "#8B2F7E"
  tertiary: "#DB83ED"
typography:
  headline-display:
    fontFamily: Source Sans 3
    fontSize: 40px
    fontWeight: 400
    lineHeight: 1
  headline-lg:
    fontFamily: Raleway
    fontSize: 34px
    fontWeight: 500
    lineHeight: 1.1
  headline-md:
    fontFamily: Source Sans 3
    fontSize: 28px
    fontWeight: 500
    lineHeight: 1.1
  headline-sm:
    fontFamily: Source Sans 3
    fontSize: 24px
    fontWeight: 500
    lineHeight: 1.1
  title-lg:
    fontFamily: Source Sans 3
    fontSize: 20px
    fontWeight: 500
    lineHeight: 1.1
  body-md:
    fontFamily: Source Sans 3
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.3
  body-sm:
    fontFamily: Source Sans 3
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.5
  label-md:
    fontFamily: Source Sans 3
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.43
  label-sm:
    fontFamily: Source Sans 3
    fontSize: 15px
    fontWeight: 700
    lineHeight: 1.3
rounded:
  sm: 4px
  md: 6px
  full: 9999px
spacing:
  xs: 4px
  sm: 7px
  md: 11px
  lg: 22px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.title-lg}"
    rounded: "{rounded.md}"
    padding: 10px 16px
    height: 49px
  button-primary-hover:
    backgroundColor: "#78286C"
  button-ghost:
    textColor: "{colors.on-surface-variant}"
    typography: "{typography.headline-display}"
    rounded: 0px
    padding: 0px
  link:
    textColor: "{colors.on-surface-muted}"
---

# Haskell Design System

## Overview

Haskell describes itself as: “The Haskell purely functional programming language home page.” The interface is light, built on **White (#FFFFFF)** with **Graphite (#333333)** text, and **Purple (#9E358F)** as the main accent.

Type is set in **Source Sans 3** and **Raleway**. Headlines run large; body text is 15px. The surface language is flat. Controls are pill-shaped.

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

## Colors

The palette has 10 roles.

- **White (#FFFFFF):** Page background, seen 7 times. Token `background`.
- **Graphite (#333333):** Primary text and headings, seen 72 times. Token `on-surface`.
- **Slate (#666666):** Secondary text, seen 2 times. Token `on-surface-variant`.
- **Slate (#717171):** Muted text and metadata, seen 8 times. Token `on-surface-muted`.
- **Silver (#CCCCCC):** Raised areas one step from the page, seen 4 times. Token `surface-container-low`.
- **Silver (#DDDDDD):** Borders and dividers, seen 6 times. Token `outline`.
- **Purple (#9E358F):** Primary buttons and calls to action, seen 28 times. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Dark Purple (#8B2F7E):** Accent in text, fills and borders, seen 9 times. Token `secondary`.
- **Light Purple (#DB83ED):** Accent in text, fills and borders, seen 7 times. Token `tertiary`.

## Typography

**Source Sans 3** and **Raleway** share the interface. Fallback stack: `Source Sans 3, Helvetica, Arial, sans-serif`.

- **headline-display:** Source Sans 3 40px at weight 400, line height 1. Page title (h1).
- **headline-lg:** Raleway 34px at weight 500, line height 1.1. Section headings (h2).
- **headline-md:** Source Sans 3 28px at weight 500, line height 1.1. Sub-section headings.
- **headline-sm:** Source Sans 3 24px at weight 500, line height 1.1. Card and feature titles.
- **title-lg:** Source Sans 3 20px at weight 500, line height 1.1. Small titles.
- **body-md:** Source Sans 3 15px at weight 400, line height 1.3. Body text.
- **body-sm:** Source Sans 3 14px at weight 400, line height 1.5. Secondary and small text.
- **label-md:** Source Sans 3 16px at weight 400, line height 1.43. Buttons, navigation and labels.
- **label-sm:** Source Sans 3 15px at weight 700, line height 1.3. Small labels and badges.

## Layout

Spacing does not follow a strict grid: 11% of measured values are multiples of 4px, so match the measured steps rather than rounding to a grid.

- **Scale:** xs 4px, sm 7px, md 11px, lg 22px.
- **Breakpoints:** 767px, 768px, 991px, 992px, 1199px, 1200px.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from tonal surface steps (#CCCCCC) and #DDDDDD borders.

## Shapes

Interactive controls are pill-shaped. Measured radii, most used first:

- **sm (4px):** 56 elements.
- **full (9999px):** 20 elements.
- **md (6px):** 8 elements.

## Components

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

- **button-primary (“Get started”):** #9E358F fill, #FFFFFF text, 20px/400, 6px radius, padding 10px 16px, border 1px solid #8B2F7E.
- **button-primary-hover:** background #78286C, text #FFFFFF on hover.
- **button-ghost (“«”):** transparent fill, #666666 text, 40px/400, padding 0px.
- **link:** transparent fill, #717171 text, padding 0px.

## Do's and Don'ts

- Do use #FFFFFF for the page and lift surfaces in small steps: #CCCCCC.
- Do keep text in 3 levels: #333333, #666666, #717171.
- Do reserve #9E358F for primary actions and key highlights.
- Do reuse the measured spacing steps (7px, 11px, 22px).
- Do make buttons and chips fully rounded (9999px); most other elements use 4px corners.
- Don't add drop shadows for depth; use tonal surfaces.
- Don't introduce new font families beyond Source Sans 3 and Raleway.
- Don't use #9E358F for large backgrounds or body text.
- Don't make interface transitions slower than 0.5s.

## Motion

Interface transitions are quick: 0.2s, 0.5s.

- **Easing:** `ease-in-out`, `cubic-bezier(0.17, 0.67, 0.83, 0.67)`.

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