---
version: alpha
name: Gradio
description: "Light interface measured from gradio.app: IBM Plex Sans type, vivid orange accents, tonal surfaces and 12px corners."
colors:
  background: "#FFFFFF"
  surface: "#FFFFFF"
  on-surface: "#171717"
  on-background: "#171717"
  on-surface-variant: "#1F2937"
  on-surface-muted: "#6B7280"
  on-surface-subtle: "#9CA3AF"
  surface-container-low: "#F9FAFB"
  surface-container: "#F4F4F5"
  surface-container-high: "#E5E7EB"
  surface-container-highest: "#E4E4E7"
  overlay: "#FFFFFF1A"
  overlay-strong: "#FF00004D"
  outline: "#E5E7EB"
  outline-variant: "#D1D5DB"
  primary: "#FF7C00"
  on-primary: "#FFFFFF"
  secondary: "#F97316"
  tertiary: "#2563EB"
  success: "#22C55E"
typography:
  headline-display:
    fontFamily: IBM Plex Sans
    fontSize: 72px
    fontWeight: 700
    lineHeight: 1
  headline-lg:
    fontFamily: IBM Plex Sans
    fontSize: 48px
    fontWeight: 700
    lineHeight: 1
  headline-md:
    fontFamily: IBM Plex Sans
    fontSize: 24px
    fontWeight: 700
    lineHeight: 1.33
  body-md:
    fontFamily: IBM Plex Sans
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.43
  body-lg:
    fontFamily: IBM Plex Sans
    fontSize: 18px
    fontWeight: 400
    lineHeight: 1.56
  body-sm:
    fontFamily: IBM Plex Sans
    fontSize: 10px
    fontWeight: 400
    lineHeight: 1.5
  label-lg:
    fontFamily: IBM Plex Sans
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  label-md:
    fontFamily: IBM Plex Sans
    fontSize: 12px
    fontWeight: 500
    lineHeight: 1.33
  label-sm:
    fontFamily: IBM Plex Sans
    fontSize: 10px
    fontWeight: 500
    lineHeight: 1.5
  code:
    fontFamily: IBM Plex Mono
    fontSize: 12px
    fontWeight: 400
    lineHeight: 1.33
  headline-display-mobile:
    fontFamily: IBM Plex Sans
    fontSize: 48px
    fontWeight: 700
    lineHeight: 1
  headline-lg-mobile:
    fontFamily: IBM Plex Sans
    fontSize: 30px
    fontWeight: 700
    lineHeight: 1.2
rounded:
  sm: 4px
  md: 6px
  lg: 8px
  xl: 12px
  full: 9999px
spacing:
  xs: 4px
  sm: 8px
  md: 16px
  lg: 24px
  xl: 48px
  gutter: 8px
  margin: 16px
  container: 1280px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-lg}"
    rounded: "{rounded.lg}"
    padding: 0px 32px
    height: 48px
  button-primary-hover:
    backgroundColor: "#EE7400"
  button-outline:
    backgroundColor: "{colors.surface-container}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-sm}"
    rounded: "{rounded.full}"
    padding: 4px 10px 4px 4px
    height: 30px
  button-outline-hover:
    backgroundColor: "{colors.surface-container-highest}"
  button-ghost:
    backgroundColor: "{colors.background}"
    textColor: "{colors.on-surface-variant}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.lg}"
    padding: 0px 24px
    height: 48px
  input-field:
    textColor: "{colors.on-surface}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.full}"
    padding: 0px
  card:
    textColor: "{colors.on-surface}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.xl}"
    padding: 16px
---

# Gradio Design System

## Overview

Gradio describes itself as: “Build & Share Delightful Machine Learning Apps” The interface is light, built on **White (#FFFFFF)** with **Charcoal (#171717)** text, and **Vivid Orange (#FF7C00)** as the main accent.

Type is set in **IBM Plex Sans**, with **IBM Plex Mono** for code. Headlines run large; body text is 14px. Depth comes from soft drop shadows. Corners are mostly 12px.

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

## Colors

The palette has 18 roles.

- **White (#FFFFFF):** Page background, seen 30 times. Token `background`, CSS `--button-cancel-text-color`.
- **Charcoal (#171717):** Primary text and headings, seen 18 times. Token `on-surface`.
- **Deep Blue (#1F2937):** Secondary text, seen 29 times. Token `on-surface-variant`.
- **Cool Slate (#6B7280):** Muted text and metadata, seen 46 times. Token `on-surface-muted`.
- **Blue (#9CA3AF):** Subtle text and placeholders, seen 14 times. Token `on-surface-subtle`.
- **Snow (#F9FAFB):** Raised areas one step from the page, seen 14 times. Token `surface-container-low`.
- **Snow (#F4F4F5):** Cards and panels, seen 5 times. Token `surface-container`.
- **Cool Mist (#E5E7EB):** Hover and pressed fills, seen 2 times. Token `surface-container-high`.
- **Mist (#E4E4E7):** Highest raised elements, seen 1 time. Token `surface-container-highest`, CSS `--color-zinc-200`.
- **White 10% (#FFFFFF1A):** Translucent fill for cards and controls, seen 2 times. Token `overlay`.
- **Vivid Red 30% (#FF00004D):** Stronger translucent fill, seen 2 times. Token `overlay-strong`.
- **Cool Mist (#E5E7EB):** Borders and dividers, seen 79 times. Token `outline`.
- **Cool Silver (#D1D5DB):** Secondary dividers, seen 9 times. Token `outline-variant`.
- **Vivid Orange (#FF7C00):** Primary buttons and calls to action, seen 3 times. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Vivid Orange (#F97316):** Accent in text, fills and borders, seen 27 times. Token `secondary`.
- **Vivid Blue (#2563EB):** Accent in text, fills and borders, seen 7 times. Token `tertiary`.
- **Green (#22C55E):** Success and positive states, seen 2 times. Token `success`, CSS `--color-green-500`.

## Typography

**IBM Plex Sans** and **IBM Plex Mono** (monospace) share the interface. Fallback stack: `IBM Plex Sans, ui-sans-serif, system-ui, sans-serif`. Other loaded fonts: Source Sans Pro.

- **headline-display:** IBM Plex Sans 72px at weight 700, line height 1 (48px on mobile). Page title (h1).
- **headline-lg:** IBM Plex Sans 48px at weight 700, line height 1 (30px on mobile). Section headings (h2).
- **headline-md:** IBM Plex Sans 24px at weight 700, line height 1.33. Sub-section headings.
- **body-md:** IBM Plex Sans 14px at weight 400, line height 1.43. Body text.
- **body-lg:** IBM Plex Sans 18px at weight 400, line height 1.56. Lead paragraphs.
- **body-sm:** IBM Plex Sans 10px at weight 400, line height 1.5. Secondary and small text.
- **label-lg:** IBM Plex Sans 16px at weight 400, line height 1.5. Large buttons and tabs.
- **label-md:** IBM Plex Sans 12px at weight 500, line height 1.33. Buttons, navigation and labels.
- **label-sm:** IBM Plex Sans 10px at weight 500, line height 1.5. Small labels and badges.
- **code:** IBM Plex Mono 12px at weight 400, line height 1.33. Code and technical values.

## 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 24px, xl 48px.
- **Gaps:** 8px is the most common gap in flex and grid layouts.
- **Container:** content is capped at 1280px.
- **Page margin:** 16px on each side of full-width sections.

## Elevation & Depth

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

- `rgba(0, 0, 0, 0) 0px 0px 0px 1px inset, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px`
- `rgba(0, 0, 0, 0.05) 0px 1px 2px 0px`
- `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(255, 124, 0, 0.25) 0px 10px 15px -3px, rgba(255, 124, 0, 0.25) 0px 4px 6px -4px`

## Shapes

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

- **xl (12px):** 188 elements.
- **md (6px):** 88 elements.
- **sm (4px):** 80 elements.
- **full (9999px):** 48 elements.
- **lg (8px):** 24 elements.

## Components

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

- **button-primary (“Get Started”):** #FF7C00 fill, #FFFFFF text, 18px/600, 8px radius, padding 0px 32px, shadow `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(255, 124, 0, 0.25) 0px 10px 15px -3px, rgba(255, 124, 0, 0.25) 0px 4px 6px -4px`.
- **button-primary-hover:** background #EE7400, text #FFFFFF on hover.
- **button-outline (“NEW Gradio 6 is here! Learn more”):** #F4F4F5 fill, #FFFFFF text, 10px/400, 9999px radius, padding 4px 10px 4px 4px, border 1px solid #E4E4E7.
- **button-outline-hover:** background #E4E4E7, text #FFFFFF on hover.
- **button-ghost (“GitHub 44130”):** #FFFFFF fill, #1F2937 text, 16px/500, 8px radius, padding 0px 24px, border 1px solid #E5E7EB.
- **input-field:** transparent fill, #171717 text, 16px/400, 9999px radius, padding 0px.
- **card:** transparent fill, #171717 text, 16px/400, 12px radius, padding 16px, border 2px solid #E5E7EB.

## Do's and Don'ts

- Do use #FFFFFF for the page and lift surfaces in small steps: #F9FAFB, #F4F4F5, #E5E7EB, #E4E4E7.
- Do keep text in 4 levels: #171717, #1F2937, #6B7280, #9CA3AF.
- Do reserve #FF7C00 for primary actions and key highlights.
- Do reuse the measured spacing steps (8px, 16px, 24px).
- Do use 12px corners on most elements; larger surfaces also use 6px, 4px and 8px.
- Don't use #9CA3AF for body text; it reaches 2.54:1 on #FFFFFF. Keep it for large text or metadata.
- Don't introduce new font families beyond IBM Plex Sans and IBM Plex Mono.
- Don't use #FF7C00 for large backgrounds or body text.
- Don't make interface transitions slower than 0.2s.

## Motion

Interface transitions are quick: 0.15s, 0.2s.

- **Easing:** `cubic-bezier(0.4, 0, 0.2, 1)`, `ease`.

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