Development only

Style guide

Every base style and layout utility in the theme, hard-coded with no modules. The red columns show the page grid (12 columns on desktop, 4 on mobile). Anything placed with the grid utilities should line up with them.

Typography

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Body copy. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Strong text, emphasis, inline code, small, sub and sup.

  • Unordered item
  • Unordered item
    • Nested item
  1. Ordered item
  2. Ordered item

Blockquote. Nulla facilisi. Aenean pulvinar nisl et vestibulum commodo.


pre / code block
  indented line

Paragraph with .h3

Links & buttons

Text link

.btn .btn-secondary .btn-lg .btn-secondary.btn-lg

Buttons in dark schemes are shown under Color schemes.

Color schemes

Each band uses style_classes() exactly as a module would. Full width, so it paints to the viewport edges while the text stays on the page column. Default adds no scheme classes.

Default · spacing--sm

Heading in Default

Body copy with a text link.

Blockquote

Primary Secondary

Default (dark) · spacing--sm scheme scheme--body-dark color-mode__dark

Heading in Default (dark)

Body copy with a text link.

Blockquote

Primary Secondary

Primary · spacing--sm scheme scheme--primary

Heading in Primary

Body copy with a text link.

Blockquote

Primary Secondary

Primary (dark) · spacing--sm scheme scheme--primary-dark color-mode__dark

Heading in Primary (dark)

Body copy with a text link.

Blockquote

Primary Secondary

Secondary · spacing--sm scheme scheme--secondary

Heading in Secondary

Body copy with a text link.

Blockquote

Primary Secondary

Secondary (dark) · spacing--sm scheme scheme--secondary-dark color-mode__dark

Heading in Secondary (dark)

Body copy with a text link.

Blockquote

Primary Secondary

Tertiary · spacing--sm scheme scheme--tertiary

Heading in Tertiary

Body copy with a text link.

Blockquote

Primary Secondary

Tertiary (dark) · spacing--sm scheme scheme--tertiary-dark color-mode__dark

Heading in Tertiary (dark)

Body copy with a text link.

Blockquote

Primary Secondary

In a partial column

Mimics two span6 drag-and-drop modules. A schemed module becomes a padded box and doesn't paint under its neighbor.

Primary (dark), span6

Body copy with a text link.

Button

Default, span6

Body copy with a text link.

Button

Spacing

The dashed outline is the module root. Shaded areas are its vertical padding.

.spacing--none None
.spacing--sm Small
.spacing--lg Large

Page grid: .u-grid

Two-up: columns 1–6 and 7–12, stacked on mobile

u-span-full u-md-start-1 u-md-span-6
u-span-full u-md-start-7 u-md-span-6

Offset: start at column 2, span 4

u-span-full u-md-start-2 u-md-span-4

Rail + content (3 / 9)

rail · u-md-span-3
content · u-md-start-4 u-md-span-9

Mobile spans: 1 + 3, then 2 + 2

u-span-1
u-span-3
u-span-2
u-span-2

Long unbroken content doesn't widen its column

Supercalifragilisticexpialidociouswithoutanybreakopportunity
Neighbor

Subgrid: .u-subgrid

A card spanning columns 1–6. Its image and text sit on page column lines. The text starts on the card's column 3, which is page column 3.

image · span 2
text · start 3, span 4
image · span 3
text · start 4, span 3

Card grid: .u-auto-grid

Not aligned to the page columns. Resize the window and the column count follows the available width.

Default (min 16rem, no max), 6 cards

Card 1
Card 2
Card 3
Card 4
Card 5
Card 6

Max 3 per row (--auto-grid-max: 3)

Card 1
Card 2
Card 3
Card 4
Card 5
Card 6

Two cards: auto-fit (default) stretches them

Card 1
Card 2

Two cards: .u-auto-grid--fill keeps card width

Card 1
Card 2

Container queries

The same component in three containers. It switches to two columns at @container (min-width: 40rem), based on its container's width, not the window's.

media
20rem container: always stacked
media
36rem container: stacked
media
Full content width: side by side once it's 40rem or wider

Full bleed: .u-bleed

Full + content children

.u-bleed-full: edge to edge
default child: content column

Half bleed left: image to the left edge through column 6, text on 8–12

full-start / col 7
col 8 / content-end

Half bleed right: text on 1–5, image from column 7 to the right edge

col 1 / col 6
col 7 / full-end

Subgrid inside a bleed

.u-bleed-full
u-subgrid › u-md-start-7 u-md-span-6

Forms & tables

Legend
HeaderHeaderHeader
CellCellCell
CellCell with longer content that wrapsCell
CellCellCell