A reference page for all the design tokens and markdown content elements used on this site.
Design tokens
Permalink to “Design tokens”Font families
Permalink to “Font families”The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Colours
Permalink to “Colours”Semantic colours resolved through light-dark() and dependent on the active theme:
Base palette of primitive colour tokens:
Font sizes
Permalink to “Font sizes”The quick brown fox
The quick brown fox
The quick brown fox
The quick brown fox
The quick brown fox
Font weights
Permalink to “Font weights”The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Line heights
Permalink to “Line heights”Observables represent a collection of events, or values, that arrive over time. Signals represent a single value that changes over time.
Observables represent a collection of events, or values, that arrive over time. Signals represent a single value that changes over time.
Observables represent a collection of events, or values, that arrive over time. Signals represent a single value that changes over time.
Letter spacing
Permalink to “Letter spacing”The quick brown fox
Spacing
Permalink to “Spacing”Border radius
Permalink to “Border radius”--token-border-radius-default: 3px
--token-border-radius-lg: 6px
Focus ring
Permalink to “Focus ring”--token-focus-ring-width: 3px, --token-focus-ring-offset: 2px
Content elements
Permalink to “Content elements”Headings
Permalink to “Headings”Sections in a post use ## for the top level and ### for subsections, as seen above. There's no # in the body: the layout renders its own <h1> from the front matter title, and the build fails if a Markdown file adds a second one.
Paragraphs and inline text
Permalink to “Paragraphs and inline text”A paragraph can hold bold text, italic text, inline code, and a link. Here's a second paragraph, so the spacing between paragraphs is visible too.
Lists
Permalink to “Lists”An unordered list:
- Tennis
- Rugby
- Soccer
An ordered list:
- First
- Second
- Third
Admonitions
Permalink to “Admonitions”Note
A note with the default title.
Custom title
A tip with a custom title and inline code.
Info
An info block with a link.
Warning
A warning block.
Danger
A danger block.
Horizontal rule
Permalink to “Horizontal rule”A paragraph before the rule.
A paragraph after the rule.
Tables
Permalink to “Tables”| State | Population | Capital |
|---|---|---|
| NSW | 8.641 M | Sydney |
| VIC | 7.121 M | Melbourne |
| TAS | 0.579 M | Hobart |
| ACT | 0.487 M | Canberra |
| SA | 1.910 M | Adelaide |
| WA | 3.076 M | Perth |
| NT | 0.267 M | Darwin |
| QLD | 5.712 M | Brisbane |
Maths
Permalink to “Maths”Inline LaTeX like sits within a sentence.
A block equation:
Inline code like const x = 1 sits within a sentence.
A fenced code block:
function debounce(fn, wait) {
let timeout;
return (...args) => {
clearTimeout(timeout);
timeout = setTimeout(() => fn(...args), wait);
};
}The same highlighter covers other languages used across posts:
.common-main-content blockquote {
border: 1px solid var(--color-border);
padding: var(--token-spacing-sm) var(--token-spacing-md);
}<button type="button" aria-pressed="false">Toggle</button>npx @11ty/eleventy --serve{ "name": "blog", "private": true }A line can be marked as highlighted, added, or removed. This block highlights line 2:
const els = document.querySelectorAll(".item");
els.forEach((el) => el.classList.add("active"));
console.log(els.length);This block marks line 2 as removed and line 3 as added:
const response = await fetch(url);
const data = await response.json().then((res) => res);
const data = await response.json();A unified diff, using Prism's diff language:
- axios.get("/users").then((res) => res.data);
+ fetch("/users").then((res) => res.json());