SiteStyleGuide

Unofficial A style guide made by SiteStyleGuide from php.net’s public web pages. Not affiliated with or endorsed by php.net. The real site is php.net ↗

php.net logo

Unofficial style guide

php.netstyle guide

php.net’s website (php.net) uses Fira Sans for its headings and body text. Its palette is led by Light Slate Blue (#4F5B93), Purple (#793862) and Pale Violet Red (#CF82B1), with #CCCCCC text on #333333. Captured from the live site on 1 November 2026.

Website
php.net
Typefaces
Fira Sans, Fira Mono, Source Code Pro
Palette
4 neutrals, 10 colours
Captured
1 Nov 2026 · added by @sitestyleguide
https://www.php.net/ Screenshot
Screenshot of the php.net homepage on a desktop screen
Screenshot of php.net on a 1440 px desktop screen, 1 Nov 2026.

Identity & metadata

What browsers, search engines and social cards show before anyone reaches the page, from the homepage’s <head>.

Title &
description

Page title
PHP
● 3 / 60 characters
Meta description
PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.
● 132 / 160 characters
og:description
PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.
Language
en

In search results

php.nethttps://www.php.net/

PHP

PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

When shared

The image php.net shares with links

php.net

PHP

PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular…

Back to top ↑

Colour

Read from the site’s stylesheets and weighted by where each colour is used. Names are the nearest standard colour name. Click a swatch to copy its hex code.

Contrast is against the site’s text colour (#CCCCCC) and white, using WCAG 2 ratios: 4.5 for body text, 3 for large text.

Colour

Balance

How much each colour is used
  • White 21%
  • Charcoal 16.3%
  • Off White 15.1%
  • Light Slate Blue 10.2%
  • Purple 9.8%
  • Light Grey 8.6%
  • Pale Violet Red 3.6%
  • Deep Steel Blue 3.5%
  • Royal Blue 2.4%
  • Deep Violet Red 2.4%
  • Olive Drab 1.9%
  • Light Steel Blue 1.9%
  • Deep Slate Blue 1.8%
  • Light Violet Red 1.3%

By how often each colour appears in the site’s CSS, weighted by where (body, headings, buttons), not by area on the screen.

Neutrals

Text, backgrounds and structure
  • White

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 0 0 0
    On text
    1.61:1 Fail
    On white
    —

    Text, background · .btn-primary, .headsup

  • Charcoal

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 0 0 80
    On text
    7.87:1 AAA
    On white
    12.63:1 AAA

    Text, background, border · html, h1

  • Off White

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 0 0 10
    On text
    1.29:1 Fail
    On white
    1.25:1 Fail

    Text, background, border · aside.tips h3, pre.info

  • Light Grey

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 0 0 20
    On text
    —
    On white
    1.61:1 Fail

    Text, border · html, aside.tips

Colours

Brand colours and accents, most used first
  • Light Slate Blue

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    46 38 0 42
    On text
    4.02:1 AA large
    On white
    6.46:1 AA

    Background, border, text · .navbar, .btn-primary

  • Purple

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 54 19 53
    On text
    5.12:1 AA
    On white
    8.22:1 AAA

    Text, background, border · h1.refname, .title a

  • Pale Violet Red

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 37 14 19
    On text
    1.75:1 Fail
    On white
    2.81:1 Fail

    Text, border · .layout-menu ul.child-menu-list li.current a, --light-magenta-color

  • Deep Steel Blue

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    24 20 0 4
    On text
    1.07:1 Fail
    On white
    1.72:1 Fail

    Text · .navbar__search-input::placeholder, .navbar__languages

  • Royal Blue

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    67 33 0 40
    On text
    3.73:1 AA large
    On white
    6.00:1 AA

    Text · .content-header .changelog, .methodname b

  • Deep Violet Red

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 67 33 40
    On text
    4.33:1 AA large
    On white
    6.95:1 AA

    Text · #flash-message .error a, .classsynopsisinfo .modifier

  • Olive Drab

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    33 0 67 40
    On text
    2.12:1 Fail
    On white
    3.40:1 AA large

    Text, border · .interfacename a, div.phpcode span.keyword

  • Light Steel Blue

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    12 10 0 13
    On text
    1.02:1 Fail
    On white
    1.64:1 Fail

    Background, border · .doctable th, td:before

  • Deep Slate Blue

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    51 39 0 49
    On text
    4.92:1 AA
    On white
    7.90:1 AAA

    Background · .navbar__search-form, .navbar__theme

  • Light Violet Red

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 54 19 32
    On text
    3.02:1 AA large
    On white
    4.85:1 AA

    Text, border · --medium-magenta-color, a:hover

Back to top ↑

Typography

Faces from Google Fonts are shown in the real thing. Others are licensed to the site, so they show in your device’s copy if you have one, or a stand-in if not.

Fira Sans

Aa 400 Aa 500

Fira Sans

Self-hosted · weights 400, 500 · body · shown in a stand-in if you don’t have it

Aa 400 Aa 700

Fira Mono

Self-hosted · weights 400, 700 · shown in a stand-in if you don’t have it

Aa 400

Source Code Pro

System font, or not loaded on this page · shown in a stand-in if you don’t have it

Aa 400

a

System font, or not loaded on this page · shown in a stand-in if you don’t have it

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789 ! ? & @ % $ – ’ “ ”

Type scale

From the site’s CSS
Heading 1 1.75rem · 28 px / 3rem weight 500

php.net

Heading 2 1.5rem · 24 px / 3rem weight 500

PHP

Heading 3 1.25rem · 20 px / 3rem weight 500

PHP

Heading 4 1.125rem · 18 px / 3rem weight 500

PHP

Heading 5 1rem · 16 px / 3rem weight 500

PHP

Heading 6 1rem · 16 px / 3rem weight 500

PHP

Body 1rem · 16 px / 1.5rem weight 400 · Fira Sans

PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

Paragraph 0.875rem · 14 px / 1.5rem

PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

Small 0.75rem · 12 px

PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

Button 100% / normal

Get started

Link 0.875rem · 14 px / 1.5rem weight bolder

Read more about php.net

Sizes in use

Most common across the site
  • 32pxline 1 · 2 rules
  • 28px1 rules
  • 24px2 rules
  • 20px4 rules
  • 18pxline 1.5rem · 8 rules
  • 16pxline 1.5rem · 6 rules
  • 14pxline 1.5rem · 15 rules
  • 12pxline 1rem · 4 rules

Back to top ↑

Elements

The main button and link as the site’s CSS draws them, and the corner radii and shadows it uses most.

Elements

Button

Get started

.btn-primary · #4F5B93

Corner radius

  • 0 0 2px 2px · 4×
  • 8px · 4×
  • 30px · 2×
  • 4px · 2×
  • .25rem · 2×
  • 5px · 1×

Shadows

  • 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1)
  • 0 2px 4px 0px rgba(0, 0, 0, 0.2)
  • 0 16px 48px rgba(0, 0, 0, 0.175)
  • 0 2px 4px 0px rgba(0,0,0,.2)

Back to top ↑

Layout

Breakpoints from the site’s media queries and the widths its content is held to, with how often each appears.

Grid

Breakpoints

425
767
768
979
980
992
1200
1500

On a scale of 0 to 1500 px.

Content widths (max-width)

560 px
540 px
350 px
300 px

Back to top ↑

Notes

Plain checks on what was found. Worth fixing if you look after this site.

Notes

  • ● FineThe title is 3 characters, short enough to show in full in search results.

Back to top ↑

Questions

Quick answers, from the same capture as the rest of this guide.

Questions

What font does php.net use?
php.net’s website uses two typefaces: Fira Sans (headings and body text), self-hosted; Fira Mono, self-hosted.
What are php.net’s brand colours?
The main colours on php.net are Light Slate Blue (#4F5B93), Purple (#793862), Pale Violet Red (#CF82B1), Deep Steel Blue (#B9C3F4), Royal Blue (#336699) and Deep Violet Red (#993366).
What colour is php.net’s text and background?
Body text is #CCCCCC on a #333333 background.
Where is php.net’s logo from?
The logo shown in this guide was found on php.net’s homepage. For official logo files and usage rules, check php.net’s own brand or press page.
Is this php.net’s official style guide?
No. SiteStyleGuide made it from php.net’s public web pages on 1 November 2026, and isn’t affiliated with php.net. Members can refresh a guide after 90 days to pick up changes.

Back to top ↑

Design tokens

Everything above as CSS variables, ready to paste into a project. Members can download the tokens as files for Figma (Tokens Studio), Style Dictionary and Tailwind.

Tokens

php-net-tokens.css

Download

Free with an account: sign up or sign in, and you’ll come straight back here.

/* php.net design tokens, from SiteStyleGuide (https://sitestyleguide.com/php.net) */
:root {
  /* Colours */
  --text: #CCCCCC;
  --background: #333333;
  --colour-white: #FFFFFF;
  --colour-charcoal: #333333;
  --colour-off-white: #E6E6E6;
  --colour-light-grey: #CCCCCC;
  --colour-light-slate-blue: #4F5B93;
  --colour-purple: #793862;
  --colour-pale-violet-red: #CF82B1;
  --colour-deep-steel-blue: #B9C3F4;
  --colour-royal-blue: #336699;
  --colour-deep-violet-red: #993366;
  --colour-olive-drab: #669933;
  --colour-light-steel-blue: #C4C9DF;
  --colour-deep-slate-blue: #404F82;
  --colour-light-violet-red: #AE508D;

  /* Typefaces */
  --font-body: 'Fira Sans', 'Source Sans Pro', ui-sans-serif, system-ui, -apple-system, blinkmacsystemfont;
  --font-other: 'Fira Mono', 'Source Code Pro', ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco';

  /* Type scale */
  --text-h1: 1.75rem;
  --leading-h1: 3rem;
  --text-h2: 1.5rem;
  --leading-h2: 3rem;
  --text-h3: 1.25rem;
  --leading-h3: 3rem;
  --text-h4: 1.125rem;
  --leading-h4: 3rem;
  --text-h5: 1rem;
  --leading-h5: 3rem;
  --text-h6: 1rem;
  --leading-h6: 3rem;
  --text-body: 1rem;
  --leading-body: 1.5rem;
  --text-p: 0.875rem;
  --leading-p: 1.5rem;
  --text-small: 0.75rem;
  --text-button: 100%;
  --leading-button: normal;
  --text-a: 0.875rem;
  --leading-a: 1.5rem;

  /* Shape */
  --radius-1: 0 0 2px 2px;
  --radius-2: 8px;
  --radius-3: 30px;
  --radius-4: 4px;
  --radius-5: .25rem;
  --radius-6: 5px;

  /* Layout (breakpoints can’t be used in media queries as variables; they’re here for reference) */
  --breakpoint-1: 425px;
  --breakpoint-2: 767px;
  --breakpoint-3: 768px;
  --breakpoint-4: 979px;
  --breakpoint-5: 980px;
  --breakpoint-6: 992px;
  --breakpoint-7: 1200px;
  --breakpoint-8: 1500px;
  --max-width-1: 560px;
  --max-width-2: 540px;
  --max-width-3: 350px;
  --max-width-4: 300px;
}

Back to top ↑

Share

Links open each service’s own share page. Nothing from them loads here.

Share

Run php.net?

Add the badge to your site

Link to this guide from your own site, so your team, designers and agencies can find your colours and fonts in one place.

View our style guide on SiteStyleGuide
<a href="https://sitestyleguide.com/php.net" title="php.net style guide on SiteStyleGuide"><img src="https://sitestyleguide.com/public/badge.svg" alt="View our style guide on SiteStyleGuide" width="200" height="44"></a>

Back to top ↑

Other websites using Fira Sans as their main typeface
Websites whose lead colour is closest to php.net’s

Captured from php.net on 1 November 2026. SiteStyleGuide isn’t affiliated with or endorsed by php.net; this guide describes the public website for reference.