Typography

Headings: h1 to h6

The base style resets the margin of every element. Add class="typography" to a wrapper to give headings, paragraphs and lists article spacing.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Heading classes: h1 to h6 on any element

class="h1" to class="h6" give any element the size and weight of that heading, without changing the element. Use them when the page outline and the look differ: a section title that is an h2 but looks like an h4, or a card title that is a p or a div.

Class h1 on a paragraph

Class h2 on a paragraph

Class h3 on a paragraph

Class h4 on a paragraph

Class h5 on a paragraph

Class h6 on a paragraph

An h2 that looks like an h4

Paragraphs: lead, default, muted and small

Add data-variant="lead" or "muted" to a <p>. Use <small> for small text.

Lead paragraph. One or two sentences that open the page and say what it is for.

Paragraph. An order moves from Pending to Processing once payment is captured, and to Fulfilled once every item has shipped.

Muted paragraph. Extra detail for the text above.

Small text. Last edited Oct 2, 2026 at 02:39.

Inline text: strong, emphasis, link, mark, deleted, inserted, abbreviation, code, key, subscript and superscript

Strong for the most important text.

Emphasis stresses a word.

Link to another page.

Mark highlights a search match.

$39.00 $29.00 shows a change.

SKU is an abbreviation. Hover to see what it means.

order_status for field names, values or commands.

Press Ctrl K to search.

Subscript H2O and superscript m2.

Keyboard keys

Use class="kbd" outside .typography. Inside .typography, a plain <kbd> is enough.

⌘ ⇧ ⌥ ⌃
Ctrl + B

Unordered list, with a nested list

  • Products
  • Orders
    • Open carts
    • Returns
  • Customers

Ordered list

  1. Create the product.
  2. Add its variants.
  3. Set it to public.

Description list: terms and their values

<dt> is a grey label on the left. <dd> is the value on the right.

Method
Express
Source
Checkout Flow
Date
Sep 3, 2026 at 00:35

Blockquote

Tell us anything we should know when delivering your order.

Code block

<script src="https://payments.example.com/js/v1/payment.js?env_key=YOUR_ENV_KEY"></script>

Horizontal line

Text above the line.


Text below the line.

A full article

Shipping protection

Cover orders that are lost, stolen or damaged on the way to the customer.

How it works

Customers add protection at checkout for $2.99. If a parcel does not arrive, the customer opens a claim from the order status page and chooses a refund or a reshipment.

What is covered

  • Parcels marked as delivered that never arrived
  • Items damaged in transit
  • Parcels lost by the carrier

Claims can be opened within 30 days of the ship date.

Setting it up

  1. Open Settings and go to Shipping.
  2. Turn on protection and set the price.
  3. Save. A shipping-protection product is created for you.

Thai and Latin

Google Sans covers both scripts, so Thai and Latin share one baseline and line-height. Mark Thai text with lang="th".

คำสั่งซื้อ Orders

คำสั่งซื้อเปลี่ยนเป็น Fulfilled เมื่อจัดส่งสินค้าครบทุกรายการ

An order becomes Fulfilled once every item has shipped.

Attributes

Attribute / element Values Description
.typography class Wrapper for long content. Adds spacing between blocks and styles h1-h6, list markers, quotes, pre and hr.
p[data-variant] lead, muted (omit for default) lead: 16px grey, muted: grey. Used in .typography.
small 12px grey in .typography.
ul, ol, li Markers disc / circle (nested) / decimal in --muted.
dl > dt, dd Two columns: dt is a grey label, dd is the value.
blockquote 2px --line on the left, grey text.
pre > code Code block on --subtle. Scrolls horizontally.
code, mark, del, ins, abbr[title], sub, sup, a, strong Inline styles in .typography (underlined links, mark on --warning-bg).
hr 1px --line with 24px space above and below in .typography.
.kbd class Keyboard key that works anywhere. In .typography, a plain <kbd> works.

CSS variables

Variable Values Description
--font-sans "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif Main typeface for Thai and Latin (the same in every theme).
--font-mono ui-monospace, "SF Mono", Menlo, Consolas, monospace code, kbd, pre
--text-sm 0.75rem (12px) label, small, h5, h6, kbd
--text-base 0.875rem (14px) Body, h3, h4
--text-lg 1rem (16px) h2, lead
--text-xl 1.5rem (24px) h1, page title
--leading 1.55 Base line-height. Headings use 1.25.
--fg #12191d light
#e7eef0 dark
Main text colour.
--muted #5f6e75 light
#8b9ba2 dark
Secondary text colour: hints, captions, placeholders.