PlanetScaleBrand
Developer tools · DESIGN.md · measured November 4, 2026
PHP design system
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.
- #333333
- #CCCCCC
- #4F5B93
- #90A0D0
From php.net ↗ · 339 elements at 1440×900 and 390×844 Independent analysis, not affiliated with PHP
PHP color palette
11 colors with hex codes, grouped by where each one is used on the page.
Surfaces
#333333background · --content-text-colorPage background · 1×#F2F2F2inverse-surface · --content-background-colorHigh-contrast fills · 1×Text
#CCCCCCon-surface · --background-text-colorPrimary text and headings · 13×#FFFFFFon-surface-strongHeadings and emphasis · 13×#DBE1FFon-surface-variantSecondary text · 4×#666666on-surface-mutedMuted text and metadata · 16×#FFFFFFon-primaryText and icons on primaryAccents
#4F5B93primary · --dark-blue-colorPrimary buttons and calls to action · 2×#90A0D0secondaryAccent · 2×Borders
#336699outlineBorders and dividers · 63×#793862outline-variant · --dark-magenta-colorSecondary dividers · 25×PHP fonts and type scale
One family carries the whole interface.
Contrast
Text on #333333
7.8:112.6:19.7:12.2:1Spacing
8px grid · 97% of values fit
sm8pxmd16pxlg24pxxl48pxgutter32pxBreakpoints: 425px 465px 480px 540px 760px 767px 768px 784px 979px 980px 992px 1200px 1500px 1548px
Shapes
Corner radii, most used first.
Depth
PHP UI components
Rebuilt from the measured CSS.
Motion
Interface transitions
0.25s0.2sease-outease
Do’s and don’ts
Rules written from the measurements, so a coding agent stays on style.
- Use #333333 for the page.
- Keep text in 4 levels: #CCCCCC, #FFFFFF, #DBE1FF, #666666.
- Reserve #4F5B93 for primary actions and key highlights.
- Keep spacing on the 8px grid.
- Use 30px corners on most elements; larger surfaces also use 8px.
- Use #666666 for body text; it reaches 2.20:1 on #333333. Keep it for large text or metadata.
- Introduce new font families beyond Fira Sans.
- Use #4F5B93 for large backgrounds or body text.
- Make interface transitions slower than 0.25s.
---
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).
Fonts
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.
- AaFira Sans · 400, 600
Colors
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
Tech stack
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
What you can build with it
Landing pages, pricing tables, dashboards: your AI coding agent builds them in this style, with these colors, fonts, spacing and buttons instead of its defaults.
Download DESIGN.md, put it in your project’s root folder, then ask your agent for a page.
Build a landing page for my product. Follow for every color, font, spacing value, corner and button.
Need a page behind a login?
The DESIGN.md generator Chrome extension makes one from any page you have open, including dashboards and pages behind a login.
More in Developer tools
All DESIGN.md examples →Not in the library? Make a DESIGN.md from any site.
FAQ
PHP design system questions
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.




