Skip to content

Search

Start typing to search.


Show all pages

Documentation

type

Heading

A heading style in four sizes, independent of the heading level.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

Put the class on any heading level; the size modifier sets the look.

Plan a week of lessons

HTML

Examples

Sizes

Pick the size by importance on the page, not by the heading level.

Extra large

Large

Medium

Small

HTML

Guidance and accessibility

When to use

  • Use the heading style when a heading should look different from its level, such as an <h2> that is the visual title of a page section.
  • Keep sizes consistent across a page: one size per level of importance.

Accessibility

  • The level (<h1> to <h6>) carries the structure for screen readers; the class only changes the look. Keep levels in order without skipping.
  • Long headings wrap in balanced lines.

Classes

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

Classes of the heading component
ClassKindUse it for
ca-headingComponentDisplay font, weight and wrapping for headings.
ca-heading--xlSizePage titles.
ca-heading--lgSizeSection titles.
ca-heading--mdSizeSub-sections.
ca-heading--smSizeSmall titles, such as in panels.

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.

Plan a week of lessons

Calaca skin

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

Plan a week of lessons

Proof skin

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

Plan a week of lessons

Crossview skin

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

Plan a week of lessons

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" />