Skip to content

Search

Start typing to search.


Show all pages

Documentation

layout

Stack

Puts children in a column with even space between them.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

A stack spaces its children evenly; the size picks how much.

First lesson planned

Theory exam booked

Interim test on 25 November

HTML

Examples

Sizes

The skin sets each size, so every product keeps its own rhythm.

Smallspace
Mediumspace
Largespace
HTML

Guidance and accessibility

When to use

  • Use a stack for content that reads top to bottom, such as form fields, cards in a list or sections of a panel.
  • Nest stacks: a large stack between groups, a small one inside each group.

Accessibility

  • A stack only adds space. The order in the markup is the reading order; do not reorder children with CSS.

Classes

Generated from the component contract. Parts use __, modifiers use --.

Classes of the stack component
ClassKindUse it for
ca-stackComponentA column; the space between children comes from the size.
ca-stack--smSizeTight space, for related items.
ca-stack--mdSizeDefault space.
ca-stack--lgSizeWide space, between groups.

Skins

The same markup, dressed by each skin. Structure and behavior stay the same; only the look changes.

Base skin

Neutral grayscale starting point; product skins extend it and change what differs.

First lesson planned

Theory exam booked

Interim test on 25 November

Calaca skin

The Calaca UI brand: hueso paper and tinta ink, cempasúchil marigold, rosa and jade.

First lesson planned

Theory exam booked

Interim test on 25 November

Proof skin

Pilot skin pushed far from base: square, heavy, offset shadows, larger targets.

First lesson planned

Theory exam booked

Interim test on 25 November

Crossview skin

The CrossView proofing table: cool ground, bond-paper sheets, rule-grey hairlines, one red mark.

First lesson planned

Theory exam booked

Interim test on 25 November

Framework notes

Link the prebuilt stylesheet of your skin next to your brand theme. No build step.

HTML
<link rel="stylesheet" href="theme.css" />
<link rel="stylesheet" href="ca-base.css" />