Skip to content

Search

Start typing to search.


Show all pages

Documentation

Block

Hero

The opening section of a page, with a title, a short lead, actions and optional media.

3 layoutsOne structure; add one layout modifier to pick the arrangement.

Centered layout

ca-hero--centered: One column with text and actions centered. For short messages and launch pages.

Launch

Eyebrow, title, lead and two actions, the main action first.

New in version 2

Plan a week of lessons in minutes

Drag lessons into the week. Every student gets the new times on their phone, and nobody has to call.

HTML

Title and one action

Every part apart from ca-hero__content and the title is optional.

Your driving test, booked

HTML

Split layout

ca-hero--split: Content and media side by side, one column when the hero is narrow. For a product shown next to its pitch.

Product

The media part holds any markup; here a card shows the product itself.

For driving schools

One place for students, cars and lessons

See who drives when, which car is free and who is ready for the test.

Tuesday, 09:00

Confirmed

Highway practice with Sam in the blue car. Pick-up at the station.

HTML

Stacked layout

ca-hero--stacked: The title runs across the full width, lead and actions share the row below it, media spans last. For stories and long titles.

Story

Inline SVG, images and video fill ca-hero__media and keep their aspect ratio.

Our story

We started with one car and a paper diary

Twelve years later we plan four thousand lessons a week, and the diary is still on the shelf.

Lessons per week grew every year, from 40 in the first year to 4,000 now
HTML

Guidance and accessibility

When to use

  • Use one hero at the top of a page, to say what the page is for and what to do next.
  • Pick the layout for the arrangement you need. Changes in content, such as leaving out the eyebrow or the media, need no other class.
  • Keep one main action. A second action uses a quieter variant, such as outline or ghost.

Accessibility

  • When the hero opens the page, its title is the page’s <h1>. The examples here use <h2> because they sit inside this documentation page.
  • Label the section with aria-labelledby pointing to the title, so screen reader users can find it in the list of regions.
  • Every layout keeps the markup order as the reading order. Put the content before the media in the markup.
  • Media that carries meaning needs a text alternative: alt on images, or role="img" with a <title> on inline SVG. Decorative media gets alt="" or aria-hidden="true".
  • Actions that go to another page are links (<a> with ca-button); actions that do something on the page are buttons.

Classes

Generated from the block contract. Layouts are part of the core, so every skin gets all of them.

Classes of the hero block
ClassKindUse it for
ca-heroBlockSection with the hero's grid and spacing. Add exactly one layout.
ca-hero__contentPartWrapper for the eyebrow, title, lead and actions.
ca-hero__eyebrowPartShort label above the title, such as a category or release.
ca-hero__titlePartThe page's main heading. Use <h1> when the hero opens the page.
ca-hero__leadPartOne or two sentences below the title, kept to a readable line length.
ca-hero__actionsPartRow of links or buttons that wraps on narrow screens.
ca-hero__mediaPartImage, video, illustration or product preview.
ca-hero--centeredLayoutOne centered column.
ca-hero--splitLayoutContent and media side by side.
ca-hero--stackedLayoutFull-width title, then lead and actions side by side, then media.

Skins

The same markup, dressed by each skin. The arrangement stays; spacing, type and color change.

Base skin

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

New in version 2

Plan a week of lessons in minutes

Drag lessons into the week. Every student gets the new times on their phone, and nobody has to call.

Calaca skin

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

New in version 2

Plan a week of lessons in minutes

Drag lessons into the week. Every student gets the new times on their phone, and nobody has to call.

Proof skin

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

New in version 2

Plan a week of lessons in minutes

Drag lessons into the week. Every student gets the new times on their phone, and nobody has to call.

Crossview skin

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

New in version 2

Plan a week of lessons in minutes

Drag lessons into the week. Every student gets the new times on their phone, and nobody has to call.

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