---
version: alpha
name: CSS-Tricks
description: "Light interface measured from css-tricks.com: NewTitle type with Iowan Old Style, vivid orange accents, tonal surfaces and pill-shaped controls."
colors:
  background: "#FFF2DF"
  surface: "#FFF2DF"
  on-surface: "#111111"
  on-background: "#111111"
  on-surface-strong: "#000000"
  on-surface-variant: "#434343"
  on-surface-muted: "#474747"
  surface-container-low: "#FFFFFF"
  overlay: "#FFFFFFB8"
  overlay-strong: "#000000A6"
  outline: "#FFCEA3"
  outline-variant: "#FF7A18"
  primary: "#FF7A18"
  on-primary: "#000000"
  inverse-surface: "#5E5E5E"
  secondary: "#B822FF"
  tertiary: "#0089C7"
typography:
  headline-display:
    fontFamily: NewTitle
    fontSize: 92px
    fontWeight: 800
    lineHeight: 1
  headline-lg:
    fontFamily: NewTitle
    fontSize: 65px
    fontWeight: 800
    lineHeight: 1
  headline-md:
    fontFamily: NewTitle
    fontSize: 49px
    fontWeight: 800
    lineHeight: 1
  headline-sm:
    fontFamily: NewTitle
    fontSize: 42px
    fontWeight: 800
    lineHeight: 1
  title-lg:
    fontFamily: NewTitle
    fontSize: 38.5px
    fontWeight: 700
    lineHeight: 1.1
  body-md:
    fontFamily: Iowan Old Style
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.3
  body-lg:
    fontFamily: Iowan Old Style
    fontSize: 19px
    fontWeight: 400
    lineHeight: 1.55
  code:
    fontFamily: SFMono-Regular
    fontSize: 19px
    fontWeight: 400
    lineHeight: 1.55
  headline-display-mobile:
    fontFamily: NewTitle
    fontSize: 58.5px
    fontWeight: 700
    lineHeight: 1
  headline-lg-mobile:
    fontFamily: NewTitle
    fontSize: 50px
    fontWeight: 700
    lineHeight: 1
  headline-md-mobile:
    fontFamily: NewTitle
    fontSize: 41px
    fontWeight: 700
    lineHeight: 1
rounded:
  sm: 4px
  md: 8px
  lg: 16px
  full: 9999px
spacing:
  sm: 7.68px
  md: 9.6px
  lg: 28.8px
  xl: 57.6px
  gutter: 57.6px
  margin: 28.8px
components:
  button-primary:
    backgroundColor: "{colors.inverse-surface}"
    textColor: "{colors.surface-container-low}"
    typography: "{typography.title-lg}"
    rounded: "{rounded.sm}"
    padding: 9.6px 28.8px
    height: 62px
  input-field:
    backgroundColor: "{colors.surface-container-low}"
    textColor: "{colors.on-surface}"
    typography: "{typography.body-lg}"
    rounded: "{rounded.md}"
    padding: 9.6px
  link:
    textColor: "{colors.on-surface}"
---

# CSS-Tricks Design System

## Overview

CSS-Tricks describes itself as: “CSS-Tricks is where folks around the world come to learn about front-end code and everything related to it, including HTML, CSS, and yes, CSS.” The interface is light, built on **Pale Orange (#FFF2DF)** with **Charcoal (#111111)** text, and **Vivid Orange (#FF7A18)** as the main accent.

Type is set in **NewTitle** and **Iowan Old Style**, with **SFMono-Regular** for code. Headlines run large; body text is 16px. Depth comes from soft drop shadows. Controls are pill-shaped.

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

## Colors

The palette has 15 roles, plus gradient stops #FF7A18, #FF2D6B, #00BFAE, #FFF2DF.

- **Pale Orange (#FFF2DF):** Page background, seen 38 times. Token `background`.
- **Charcoal (#111111):** Primary text and headings, seen 59 times. Token `on-surface`.
- **Near Black (#000000):** Headings and emphasis, seen 4 times. Token `on-surface-strong`.
- **Graphite (#434343):** Secondary text, seen 2 times. Token `on-surface-variant`.
- **Graphite (#474747):** Muted text and metadata, seen 3 times. Token `on-surface-muted`.
- **White (#FFFFFF):** Raised areas one step from the page, seen 32 times. Token `surface-container-low`, CSS `--ld-color-field-bg-error`.
- **White 72% (#FFFFFFB8):** Translucent fill for cards and controls, seen 5 times. Token `overlay`.
- **Near Black 65% (#000000A6):** Stronger translucent fill, seen 1 time. Token `overlay-strong`.
- **Light Orange (#FFCEA3):** Borders and dividers, seen 37 times. Token `outline`.
- **Vivid Orange (#FF7A18):** Secondary dividers, seen 5 times. Token `outline-variant`, CSS `--orange`.
- **Vivid Orange (#FF7A18):** Brand color in the logo, seen 40 times. Token `primary`, CSS `--orange`.
- **Near Black (#000000):** Text and icons on primary. Token `on-primary`.
- **Slate (#5E5E5E):** High-contrast fills, seen 5 times. Token `inverse-surface`.
- **Vivid Violet (#B822FF):** Accent in the logo, seen 21 times. Token `secondary`.
- **Cyan (#0089C7):** Accent in the logo, seen 16 times. Token `tertiary`.

## Typography

**NewTitle**, **Iowan Old Style** and **SFMono-Regular** (monospace) share the interface. Fallback stack: `NewTitle, NewTitle Fallback, sans-serif`.

- **headline-display:** NewTitle 92px at weight 800, line height 1 (58.5px on mobile). Page title (h1).
- **headline-lg:** NewTitle 65px at weight 800, line height 1 (50px on mobile). Section headings (h2).
- **headline-md:** NewTitle 49px at weight 800, line height 1 (41px on mobile). Sub-section headings.
- **headline-sm:** NewTitle 42px at weight 800, line height 1. Card and feature titles.
- **title-lg:** NewTitle 38.5px at weight 700, line height 1.1. Small titles.
- **body-md:** Iowan Old Style 16px at weight 400, line height 1.3. Body text.
- **body-lg:** Iowan Old Style 19px at weight 400, line height 1.55. Lead paragraphs.
- **code:** SFMono-Regular 19px at weight 400, line height 1.55. Code and technical values.

## Layout

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

- **Scale:** sm 7.68px, md 9.6px, lg 28.8px, xl 57.6px.
- **Gaps:** 57.6px is the most common gap in flex and grid layouts.
- **Page margin:** 28.8px on each side of full-width sections.
- **Breakpoints:** 400px, 480px, 575.98px, 576px, 600px, 767.98px, 768px, 800px, 991.98px, 992px, 1199.98px, 1200px, 1400px.

## Elevation & Depth

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

- `rgba(0, 0, 0, 0.07) -57.6px 0px 57.6px -38.4px`
- `rgb(67, 67, 67) -5px 0px 15px 0px`
- `rgb(119, 119, 119) 1px 1px 0px 0px inset, rgba(0, 0, 0, 0.4) 0px 2px 3px 0px`

## Shapes

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

- **lg (16px):** 148 elements.
- **full (9999px):** 92 elements.
- **md (8px):** 32 elements.
- **sm (4px):** 20 elements.

## Components

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

- **button-primary (“LATEST ARTICLES”):** #5E5E5E fill, #FFFFFF text, 38.4px/700, 4px radius, padding 9.6px 28.8px, shadow `rgb(119, 119, 119) 1px 1px 0px 0px inset, rgba(0, 0, 0, 0.4) 0px 2px 3px 0px`.
- **input-field (“email@example.com”):** #FFFFFF fill, #111111 text, 19.2px/400, 8px radius, padding 9.6px, border 1px solid #FF7A18.
- **link:** transparent fill, #111111 text, padding 0px.

## Do's and Don'ts

- Do use #FFF2DF for the page and lift surfaces in small steps: #FFFFFF.
- Do keep text in 4 levels: #111111, #000000, #434343, #474747.
- Do use #FF7A18 as the brand accent: header, logo and key highlights.
- Do reuse the measured spacing steps (7.68px, 9.6px, 28.8px).
- Do make buttons and chips fully rounded (9999px); most other elements use 16px corners.
- Don't introduce new font families beyond NewTitle, Iowan Old Style and SFMono-Regular.
- Don't use #FF7A18 for large backgrounds or body text.
- Don't make interface transitions slower than 0.5s.

## Motion

Interface transitions are quick: 0.2s, 0.25s, 0.5s, 0.07s. Longer ambient animations run 2s, 1s.

- **Easing:** `ease`, `cubic-bezier(0.5, -0.5, 0.1, 1.5)`, `cubic-bezier(0.25, 0, 0.3, 1)`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

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