PBS
pbs.org · 5 days ago
SaveUnofficial A style guide made by SiteStyleGuide from xkcd.com’s public web pages. Not affiliated with or endorsed by xkcd. The real site is xkcd.com ↗
Unofficial style guide
xkcd’s website (xkcd.com) uses Lucida for its headings and body text. Its palette is led by Light Steel Blue (#96A8C8) and Slate Grey (#6E7B91), with #282B30 text on #96A8C8. Captured from the live site on 30 October 2026.
Identity & metadata
What browsers, search engines and social cards show before anyone reaches the page, from the homepage’s <head>.
In search results
xkcd: Gravitational Square Wave
When shared
xkcd.com
Gravitational Square Wave
Logo & favicons
Found as: image linked to the homepage. PNG, 185 × 83.
On white
On black
On Light Steel Blue
Light browser tab
Dark browser tab
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 (#282B30) and white, using WCAG 2 ratios: 4.5 for body text, 3 for large text.
By how often each colour appears in the site’s CSS, weighted by where (body, headings, buttons), not by area on the screen.
Background, text · .box, ul.comicNav li a
Text · #topLeft a
Border · .box
Border · ul.comicNav li a
Background, text · body, a
Background, text · ul.comicNav li a, ul.comicNav a:hover
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.
Lucida
System font, or not loaded on this page · weights 500 · body · shown in a stand-in if you don’t have it
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789 ! ? & @ % $ – ’ “ ”
The quick brown fox jumps over the lazy dog.
Read more about xkcd
Elements
The main button and link as the site’s CSS draws them, and the corner radii and shadows it uses most.
Link
a · #96A8C8
Corner radius
Shadows
Layout
Breakpoints from the site’s media queries and the widths its content is held to, with how often each appears.
No breakpoints or content widths could be read.
Notes
Plain checks on what was found. Worth fixing if you look after this site.
Questions
Quick answers, from the same capture as the rest of this guide.
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.
/* xkcd.com design tokens, from SiteStyleGuide (https://sitestyleguide.com/xkcd.com) */
:root {
/* Colours */
--text: #282B30;
--background: #96A8C8;
--colour-white: #FFFFFF;
--colour-cool-charcoal: #282B30;
--colour-cool-near-black: #071419;
--colour-charcoal: #333333;
--colour-light-steel-blue: #96A8C8;
--colour-slate-grey: #6E7B91;
/* Typefaces */
--font-body: 'Lucida', 'Helvetica', sans-serif;
/* Type scale */
--text-body: 16px;
--text-a: 16px;
/* Shape */
--radius-1: 12px;
--radius-2: 3px;
}
{
"site": "xkcd.com",
"source": "https://sitestyleguide.com/xkcd.com",
"text": "#282B30",
"background": "#96A8C8",
"colours": [
{
"name": "White",
"hex": "#FFFFFF",
"rgb": [
255,
255,
255
]
},
{
"name": "Cool Charcoal",
"hex": "#282B30",
"rgb": [
40,
43,
48
]
},
{
"name": "Cool Near Black",
"hex": "#071419",
"rgb": [
7,
20,
25
]
},
{
"name": "Charcoal",
"hex": "#333333",
"rgb": [
51,
51,
51
]
},
{
"name": "Light Steel Blue",
"hex": "#96A8C8",
"rgb": [
150,
168,
200
]
},
{
"name": "Slate Grey",
"hex": "#6E7B91",
"rgb": [
110,
123,
145
]
}
],
"fonts": [
{
"name": "Lucida",
"stack": "Lucida, Helvetica, sans-serif",
"weights": [
500
],
"source": "System font, or not loaded on this page"
}
]
}
pbs.org · 5 days ago
Save
mama.cn · 6 days ago
Save
anchor.fm · 3 days ago
Save
wunderground.com · 5 days ago
SaveCaptured from xkcd.com on 30 October 2026. SiteStyleGuide isn’t affiliated with or endorsed by xkcd; this guide describes the public website for reference.
Analytics cookies
We’d like to use Google Analytics cookies to count visits and see which pages are useful. Nothing is used for advertising.