# PHP design system

> PHP design system measured from php.net: Fira Sans font, #4F5B93 primary on #333333, 11 color hex codes, type scale, spacing and a free DESIGN.md.

Canonical page: https://sitepeel.dev/design-md/php.net/

PHP’s website (php.net) uses the Fira Sans font and #4F5B93 as its main color on a #333333 background. Measured by Sitepeel on November 4, 2026.

## What font does PHP use?

PHP uses Fira Sans (weights 400 and 600) on php.net. Page titles are 24px at weight 400 and body text is 14px. Measured on November 4, 2026.

- Fira Sans (weights 400, 600)

## PHP colors: palette and hex codes

PHP’s main colors are #333333 (graphite) for the background, #CCCCCC (silver) for text and #4F5B93 (indigo) as the main accent, with #90A0D0 (blue) as another accent. Measured on November 4, 2026.

- #333333: graphite
- #CCCCCC: silver
- #FFFFFF: white
- #DBE1FF: pale indigo
- #666666: slate
- #336699: blue
- #793862: dark pink
- #4F5B93: indigo

## What is PHP built with?

PHP’s website (php.net) is built with jQuery, bunny.net and Font Awesome. Measured on November 4, 2026.

- JavaScript framework: jQuery 3.6.0
- Hosting & CDN: bunny.net
- Fonts & icons: Font Awesome
- Analytics: Matomo

## Questions and answers

### What font does PHP use?

PHP’s website uses Fira Sans (weights 400 and 600). Page titles are 24px at weight 400 and body text is 14px. Measured on November 4, 2026.

### What are the PHP colors and hex codes?

On php.net: #333333 (graphite) for the background, #CCCCCC (silver) for text and #4F5B93 (indigo) as the main accent, with #90A0D0 (blue) as another accent. The color palette above lists all 11 colors with their hex codes and where each one is used.

### What is the PHP design system?

The design system on this page is php.net’s, as measured on November 4, 2026: Fira Sans type, #4F5B93 as the main color, 30px corners and a 8px spacing grid, written down as a DESIGN.md. It is not PHP’s own documentation.

### What is PHP built with?

PHP’s website (php.net) is built with jQuery, bunny.net and Font Awesome. The full tech stack Sitepeel found: jQuery, bunny.net, Font Awesome and Matomo. Measured on November 4, 2026.

### What is the PHP DESIGN.md?

A plain-text file with PHP’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 PHP’s official design system?

No. Sitepeel measured it from php.net’s public page on November 4, 2026. It is an independent analysis, not made or approved by PHP.

### Can I use PHP’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 PHP’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/php.net/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 PHP.

## The DESIGN.md file

```markdown
---
version: alpha
name: PHP
description: "Dark interface measured from php.net: Fira Sans type, indigo accents, flat surfaces and 30px corners."
colors:
  background: "#333333"
  surface: "#333333"
  on-surface: "#CCCCCC"
  on-background: "#CCCCCC"
  on-surface-strong: "#FFFFFF"
  on-surface-variant: "#DBE1FF"
  on-surface-muted: "#666666"
  outline: "#336699"
  outline-variant: "#793862"
  primary: "#4F5B93"
  on-primary: "#FFFFFF"
  inverse-surface: "#F2F2F2"
  secondary: "#90A0D0"
typography:
  headline-display:
    fontFamily: Fira Sans
    fontSize: 24px
    fontWeight: 400
    lineHeight: 2
  headline-lg:
    fontFamily: Fira Sans
    fontSize: 20px
    fontWeight: 400
    lineHeight: 1.2
  body-md:
    fontFamily: Fira Sans
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.71
  body-lg:
    fontFamily: Fira Sans
    fontSize: 18px
    fontWeight: 400
    lineHeight: 1.33
  label-md:
    fontFamily: Fira Sans
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.7
  label-sm:
    fontFamily: Fira Sans
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.71
rounded:
  sm: 8px
  md: 30px
spacing:
  base: 8px
  sm: 8px
  md: 16px
  lg: 24px
  xl: 48px
  gutter: 32px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.headline-lg}"
    rounded: "{rounded.md}"
    padding: 16px 32px
    height: 58px
  button-primary-hover:
    backgroundColor: "{colors.outline-variant}"
  button-secondary:
    backgroundColor: "#404F82"
    textColor: "#B9C3F4"
    typography: "{typography.label-md}"
    rounded: "{rounded.sm}"
    padding: 8px
    height: 40px
  button-outline:
    textColor: "#B8C0E9"
    typography: "{typography.headline-lg}"
    rounded: "{rounded.md}"
    padding: 16px 32px
    height: 58px
  button-ghost:
    textColor: "#B8C0E9"
    typography: "{typography.headline-lg}"
    rounded: "{rounded.md}"
    padding: 16px 32px
  link:
    textColor: "{colors.outline}"
---

# PHP Design System

## Overview

The interface is dark, built on **Graphite (#333333)** with **Silver (#CCCCCC)** text, and **Indigo (#4F5B93)** as the main accent.

Type is set in **Fira Sans**. Headlines run large; body text is 14px. Depth comes from soft drop shadows. Corners are mostly 30px.

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

## Colors

The palette has 11 roles.

- **Graphite (#333333):** Page background, seen 1 time. Token `background`, CSS `--content-text-color`.
- **Silver (#CCCCCC):** Primary text and headings, seen 13 times. Token `on-surface`, CSS `--background-text-color`.
- **White (#FFFFFF):** Headings and emphasis, seen 13 times. Token `on-surface-strong`.
- **Pale Indigo (#DBE1FF):** Secondary text, seen 4 times. Token `on-surface-variant`.
- **Slate (#666666):** Muted text and metadata, seen 16 times. Token `on-surface-muted`.
- **Blue (#336699):** Borders and dividers, seen 63 times. Token `outline`.
- **Dark Pink (#793862):** Secondary dividers, seen 25 times. Token `outline-variant`, CSS `--dark-magenta-color`.
- **Indigo (#4F5B93):** Primary buttons and calls to action, seen 2 times. Token `primary`, CSS `--dark-blue-color`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Mist (#F2F2F2):** High-contrast fills, seen 1 time. Token `inverse-surface`, CSS `--content-background-color`.
- **Blue (#90A0D0):** Accent, seen 2 times. Token `secondary`.

## Typography

**Fira Sans** carries the whole interface. Fallback stack: `Fira Sans, Source Sans Pro, ui-sans-serif, system-ui`. Other loaded fonts: Fira Mono, fontello.

- **headline-display:** Fira Sans 24px at weight 400, line height 2. Page title (h1).
- **headline-lg:** Fira Sans 20px at weight 400, line height 1.2. Section headings (h2).
- **body-md:** Fira Sans 14px at weight 400, line height 1.71. Body text.
- **body-lg:** Fira Sans 18px at weight 400, line height 1.33. Lead paragraphs.
- **label-md:** Fira Sans 16px at weight 400, line height 1.7. Buttons, navigation and labels.
- **label-sm:** Fira Sans 14px at weight 600, line height 1.71. Small labels and badges.

## Layout

Spacing follows a 8px grid: 97% of measured gaps and paddings are multiples of 8px.

- **Scale:** sm 8px, md 16px, lg 24px, xl 48px.
- **Gaps:** 32px is the most common gap in flex and grid layouts.
- **Breakpoints:** 425px, 465px, 480px, 540px, 760px, 767px, 768px, 784px, 979px, 980px, 992px, 1200px, 1500px, 1548px.

## Elevation & Depth

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

- `rgba(0, 0, 0, 0.2) 0px 2px 4px 0px`

## Shapes

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

- **md (30px):** 8 elements.
- **sm (8px):** 4 elements.

## Components

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

- **button-primary (“What's new in 8.5”):** #4F5B93 fill, #FFFFFF text, 20px/400, 30px radius, padding 16px 32px.
- **button-primary-hover:** background #793862, text #FFFFFF on hover.
- **button-secondary (“Search docs”):** #404F82 fill, #B9C3F4 text, 16px/400, 8px radius, padding 8px, border 1px solid #6A78BE.
- **button-outline (“Download”):** transparent fill, #B8C0E9 text, 20px/400, 30px radius, padding 16px 32px, border 1px solid #6773AD.
- **button-ghost (“Download”):** transparent fill, #B8C0E9 text, 20px/400, 30px radius, padding 16px 32px, border 1px solid #6773AD.
- **link:** transparent fill, #336699 text, padding 0px.

## Do's and Don'ts

- Do use #333333 for the page.
- Do keep text in 4 levels: #CCCCCC, #FFFFFF, #DBE1FF, #666666.
- Do reserve #4F5B93 for primary actions and key highlights.
- Do keep spacing on the 8px grid.
- Do use 30px corners on most elements; larger surfaces also use 8px.
- Don't use #666666 for body text; it reaches 2.20:1 on #333333. Keep it for large text or metadata.
- Don't introduce new font families beyond Fira Sans.
- Don't use #4F5B93 for large backgrounds or body text.
- Don't make interface transitions slower than 0.25s.

## Motion

Interface transitions are quick: 0.25s, 0.2s.

- **Easing:** `ease-out`, `ease`.

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

```
