---
version: alpha
name: Sonner
description: "Light monochrome interface measured from sonner.emilkowal.ski: Inter type, tonal surfaces and 6px corners."
colors:
  background: "#FFFFFF"
  surface: "#FFFFFF"
  on-surface: "#171717"
  on-background: "#171717"
  on-surface-variant: "#6F6F6F"
  on-surface-muted: "#8F8F8F"
  surface-container-low: "#FCFCFC"
  surface-container: "#F3F3F3"
  outline: "#F3F3F3"
  outline-variant: "#DBDBDB"
  primary: "#171717"
  on-primary: "#FCFCFC"
typography:
  headline-display:
    fontFamily: Inter
    fontSize: 48px
    fontWeight: 700
    lineHeight: 0.52
  body-md:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  body-sm:
    fontFamily: Inter
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.43
  label-md:
    fontFamily: Inter
    fontSize: 16px
    fontWeight: 500
    lineHeight: 1.5
  label-sm:
    fontFamily: Inter
    fontSize: 13px
    fontWeight: 500
    lineHeight: 1.5
  code:
    fontFamily: Mono
    fontSize: 14px
    fontWeight: 400
    lineHeight: 2
rounded:
  md: 6px
spacing:
  base: 4px
  sm: 8px
  md: 12px
  lg: 30px
  container: 672px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 0px 30px
    height: 40px
  button-primary-hover:
    backgroundColor: "#282828"
  button-outline:
    backgroundColor: "{colors.surface-container-low}"
    textColor: "{colors.on-surface}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 8px 12px
    height: 38px
  button-outline-hover:
    backgroundColor: "#F8F8F8"
  button-secondary:
    textColor: "{colors.on-surface}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 0px 30px
    height: 40px
  button-ghost:
    textColor: "{colors.on-surface}"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 0px 30px
  link:
    textColor: "#18181B"
---

# Sonner Design System

## Overview

Sonner describes itself as: “An opinionated toast component for React.” The interface is light, built on **White (#FFFFFF)** with **Charcoal (#171717)** text and almost no color: actions are carried by contrast, not hue.

Type is set in **Inter**, with **Mono** for code. Headlines run large; body text is 16px. Depth comes from hairline borders and inset highlights rather than drop shadows. Corners are mostly 6px.

Measured from [sonner.emilkowal.ski](https://sonner.emilkowal.ski/) on November 29, 2026 at 1440×900 and 390×844 from 145 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 2 times. Token `background`, CSS `--subtle`.
- **Charcoal (#171717):** Primary text and headings, seen 56 times. Token `on-surface`.
- **Slate (#6F6F6F):** Secondary text, seen 12 times. Token `on-surface-variant`.
- **Gray (#8F8F8F):** Muted text and metadata, seen 45 times. Token `on-surface-muted`.
- **Snow (#FCFCFC):** Raised areas one step from the page, seen 21 times. Token `surface-container-low`, CSS `--el-bg`.
- **Mist (#F3F3F3):** Cards and panels, seen 3 times. Token `surface-container`.
- **Mist (#F3F3F3):** Borders and dividers, seen 21 times. Token `outline`.
- **Silver (#DBDBDB):** Secondary dividers, seen 3 times. Token `outline-variant`, CSS `--solid-border-hover`.
- **Charcoal (#171717):** Primary buttons and calls to action, seen 59 times. Token `primary`.
- **Snow (#FCFCFC):** Text and icons on primary. Token `on-primary`.

## Typography

**Inter** and **Mono** (monospace) share the interface. Fallback stack: `Inter, Inter Fallback`.

- **headline-display:** Inter 48px at weight 700, line height 0.52. Page title (h1).
- **body-md:** Inter 16px at weight 400, line height 1.5. Body text.
- **body-sm:** Inter 14px at weight 400, line height 1.43. Secondary and small text.
- **label-md:** Inter 16px at weight 500, line height 1.5. Buttons, navigation and labels.
- **label-sm:** Inter 13px at weight 500, line height 1.5. Small labels and badges.
- **code:** Mono 14px at weight 400, line height 2. Code and technical values.

## Layout

Spacing follows a 4px grid: 95% of measured gaps and paddings are multiples of 4px.

- **Scale:** sm 8px, md 12px, lg 30px.
- **Container:** content is capped at 672px.
- **Breakpoints:** 600px, 640px, 768px, 1024px, 1280px, 1536px.

## Elevation & Depth

Depth comes mostly from hairline rings and inset highlights on tonal surfaces (#FCFCFC → #F3F3F3):

- `rgb(23, 23, 23) 0px 0px 0px 1px`

A few raised panels add a soft drop shadow: `rgba(0, 0, 0, 0.06) 0px 0px 0px 1px, rgba(0, 0, 0, 0.08) 0px 1px 0px 0px, rgba(0, 0, 0, 0.04) 0px 2px 2px 0px, rgba(0, 0, 0, 0.02) 0px 3px 3px 0px, rgba(0, 0, 0, 0.01) 0px 4px 4px 0px`.

## Shapes

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

- **md (6px):** 104 elements.

## Components

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

- **button-primary (“Render a toast”):** #171717 fill, #FCFCFC text, 13px/600, 6px radius, padding 0px 30px, shadow `rgb(23, 23, 23) 0px 0px 0px 1px`.
- **button-primary-hover:** background #282828, text #FCFCFC on hover.
- **button-outline (“Description”):** #FCFCFC fill, #171717 text, 13px/500, 6px radius, padding 8px 12px, border 1px solid #F3F3F3.
- **button-outline-hover:** background #F8F8F8, text #171717 on hover.
- **button-secondary (“GitHub”):** transparent fill, #171717 text, 13px/600, 6px radius, padding 0px 30px, shadow `rgba(0, 0, 0, 0.06) 0px 0px 0px 1px, rgba(0, 0, 0, 0.08) 0px 1px 0px 0px, rgba(0, 0, 0, 0.04) 0px 2px 2px 0px, rgba(0, 0, 0, 0.02) 0px 3px 3px 0px, rgba(0, 0, 0, 0.01) 0px 4px 4px 0px`.
- **button-ghost (“GitHub”):** transparent fill, #171717 text, 13px/600, 6px radius, padding 0px 30px, shadow `rgba(0, 0, 0, 0.06) 0px 0px 0px 1px, rgba(0, 0, 0, 0.08) 0px 1px 0px 0px, rgba(0, 0, 0, 0.04) 0px 2px 2px 0px, rgba(0, 0, 0, 0.02) 0px 3px 3px 0px, rgba(0, 0, 0, 0.01) 0px 4px 4px 0px`.
- **link:** transparent fill, #18181B text, padding 0px.

## Do's and Don'ts

- Do use #FFFFFF for the page and lift surfaces in small steps: #FCFCFC, #F3F3F3.
- Do keep text in 3 levels: #171717, #6F6F6F, #8F8F8F.
- Do let contrast carry emphasis; primary actions use #171717 on #FFFFFF.
- Do keep spacing on the 4px grid.
- Do use 6px corners on most elements.
- Don't use #8F8F8F for body text; it reaches 3.23:1 on #FFFFFF. Keep it for large text or metadata.
- Don't use heavy drop shadows; keep depth to hairline rings and tonal surfaces.
- Don't introduce new font families beyond Inter and Mono.
- Don't add saturated accent colors; the measured palette is almost entirely neutral.
- Don't make interface transitions slower than 0.2s.

## Motion

Interface transitions are quick: 0.2s.

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

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