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
- Ordered item
- Ordered item
Blockquote. Nulla facilisi. Aenean pulvinar nisl et vestibulum commodo.
pre / code block
indented line
Paragraph with .h3
Links & buttons
.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.
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.
Spacing
The dashed outline is the module root. Shaded areas are its vertical padding.
.spacing--none None.spacing--sm Small.spacing--lg LargePage grid: .u-grid
Two-up: columns 1–6 and 7–12, stacked on mobile
Offset: start at column 2, span 4
Rail + content (3 / 9)
Mobile spans: 1 + 3, then 2 + 2
Long unbroken content doesn't widen its column
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.
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
Max 3 per row (--auto-grid-max: 3)
Two cards: auto-fit (default) stretches them
Two cards: .u-auto-grid--fill keeps card width
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.
Full bleed: .u-bleed
Full + content children
Half bleed left: image to the left edge through column 6, text on 8–12
Half bleed right: text on 1–5, image from column 7 to the right edge
Subgrid inside a bleed
Forms & tables
| Header | Header | Header |
|---|---|---|
| Cell | Cell | Cell |
| Cell | Cell with longer content that wraps | Cell |
| Cell | Cell | Cell |
