# CSS-Tricks design system

> CSS-Tricks design system measured from css-tricks.com: NewTitle font, #FF7A18 primary on #FFF2DF, 15 color hex codes, type scale, spacing and a free DESIGN.md.

Canonical page: https://sitepeel.dev/design-md/css-tricks.com/

CSS-Tricks’s website (css-tricks.com) uses the NewTitle font and #FF7A18 as its main color on a #FFF2DF background. Measured by Sitepeel on November 29, 2026.

## What font does CSS-Tricks use?

CSS-Tricks uses NewTitle (weights 700 and 800) and Iowan Old Style (weight 400), with SFMono-Regular for code on css-tricks.com. Page titles are 92px at weight 800 (58.5px on phones) and body text is 16px. Measured on November 29, 2026.

- NewTitle (weights 700, 800)
- Iowan Old Style (weights 400)
- SFMono-Regular (weights 400)

## CSS-Tricks colors: palette and hex codes

CSS-Tricks’s main colors are #FFF2DF (pale orange) for the background, #111111 (charcoal) for text and #FF7A18 (vivid orange) as the main accent, with #B822FF (vivid violet) and #0089C7 (cyan) as other accents. Measured on November 29, 2026.

- #FFF2DF: pale orange (rgb(255, 242, 223), hsl(36, 100%, 94%))
- #111111: charcoal (rgb(17, 17, 17), hsl(0, 0%, 7%))
- #000000: near black (rgb(0, 0, 0), hsl(0, 0%, 0%))
- #434343: graphite (rgb(67, 67, 67), hsl(0, 0%, 26%))
- #474747: graphite (rgb(71, 71, 71), hsl(0, 0%, 28%))
- #FFFFFF: white (rgb(255, 255, 255), hsl(0, 0%, 100%))
- #FFCEA3: light orange (rgb(255, 206, 163), hsl(28, 100%, 82%))
- #FF7A18: vivid orange (rgb(255, 122, 24), hsl(25, 100%, 55%))

## What is CSS-Tricks built with?

CSS-Tricks’s website (css-tricks.com) is built with WordPress, jQuery, Lit, Preact and Cloudflare. Measured on November 29, 2026.

- JavaScript framework: jQuery 3.5.1, Lit 4.0.5, Preact
- Hosting & CDN: Cloudflare
- Analytics: Cloudflare Web Analytics, Google Analytics
- Site builder & CMS: WordPress
- Payments & commerce: WooCommerce

## Questions and answers

### What font does CSS-Tricks use?

CSS-Tricks’s website uses NewTitle (weights 700 and 800) and Iowan Old Style (weight 400), with SFMono-Regular for code. Page titles are 92px at weight 800 (58.5px on phones) and body text is 16px. Measured on November 29, 2026.

### What are the CSS-Tricks colors and hex codes?

On css-tricks.com: #FFF2DF (pale orange) for the background, #111111 (charcoal) for text and #FF7A18 (vivid orange) as the main accent, with #B822FF (vivid violet) and #0089C7 (cyan) as other accents. The color palette above lists all 15 colors with their hex codes and where each one is used.

### What is the CSS-Tricks design system?

The design system on this page is css-tricks.com’s, as measured on November 29, 2026: NewTitle type, #FF7A18 as the main color and 16px corners, written down as a DESIGN.md. It is not CSS-Tricks’s own documentation.

### What is CSS-Tricks built with?

CSS-Tricks’s website (css-tricks.com) is built with WordPress, jQuery, Lit, Preact and Cloudflare. The full tech stack Sitepeel found: jQuery, Lit, Cloudflare, Cloudflare Web Analytics, WordPress, Preact, Google Analytics and WooCommerce. Measured on November 29, 2026.

### What is the CSS-Tricks DESIGN.md?

A plain-text file with CSS-Tricks’s measured colors, type, spacing, corners and components as tokens, plus short rules, in the DESIGN.md format Google published with Stitch. Your AI coding agent reads it and builds in this style. More about DESIGN.md.

### How do I use it with Claude Code or Cursor?

Download the file and put it in your project’s root folder, then ask your agent to follow DESIGN.md. Step-by-step guides: Claude Code, Cursor, Codex, GitHub Copilot.

### Is this CSS-Tricks’s official design system?

No. Sitepeel measured it from css-tricks.com’s public page on November 29, 2026. It is an independent analysis, not made or approved by CSS-Tricks.

### Can I use CSS-Tricks’s style in my own product?

Use it to learn, prototype and compare. For a real product, make the style your own, and never copy CSS-Tricks’s logo, name, pictures or text.

### How accurate are the values?

Each value was measured on the rendered page after it fully loaded, on desktop and mobile: colors where they appear, type with tracking, spacing, corners, shadows and hover states. Sites change, so check the date at the top.

## Files

- [DESIGN.md](https://sitepeel.dev/design-md/css-tricks.com/DESIGN.md): the plain file to put in your project.
- [All brand DESIGN.md files](https://sitepeel.dev/design-md/examples/index.md)

Independent analysis by Sitepeel (sitepeel.dev), not affiliated with CSS-Tricks.

## The DESIGN.md file

```markdown
---
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).

```
