A reference page for all the design tokens and markdown content elements used on this site.
Design tokens #
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 #
Semantic colours resolved through light-dark() and dependent on the active theme:
Base palette of primitive colour tokens:
Font sizes #
The quick brown fox
The quick brown fox
The quick brown fox
The quick brown fox
The quick brown fox
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.
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.
Spacing #
Border radius #
--token-border-radius-default: 3px
Content elements #
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 .common-main-content h1 is hidden by CSS to prevent a second one.
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 #
An unordered list:
- Tennis
- Rugby
- Soccer
An ordered list:
- First
- Second
- Third
Blockquotes #
An observable is a collection whose values arrive over time, or in other words, an asynchronous collection.
Horizontal rule #
A paragraph before the rule.
A paragraph after the rule.
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 #
Inline LaTeX like sits within a sentence.
A block equation:
Code #
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());