Skip to content

Search

Start typing to search.


Show all pages

Documentation

Block

Comparison

A heading and panels set against each other — before and after, us and them.

NewOne structure; the parts wrap as the container allows.

Examples

Before and after

Two panels of ca-check-list items: the paper diary versus the app.

The paper diary or the app

What changes when a driving school moves its planning online.

Paper diary

  • Students phone to move a lesson
  • Double bookings found at the kerb

The app

  • Students reschedule up to a day before
  • Every booking visible to the whole team
HTML

Guidance and accessibility

When to use

  • Use a comparison when the reader weighs two options: before and after, with or without, package A and B.
  • Give both panels the same shape — same heading level, same list length — so the difference is the content, not the layout.
  • Compose the panels from elements such as ca-check-list; which side is highlighted is a host decision.

Accessibility

  • Give the section an aria-labelledby pointing at the title.
  • Do not mark the favoured side with color alone — let the copy say which option wins.

Classes

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

Classes of the comparison block
ClassKindUse it for
ca-comparisonBlockSection with the header and the panels; they wrap as the container allows.
ca-comparison__headerPartTitle and lead above the panels.
ca-comparison__titlePartHeading of the block.
ca-comparison__leadPartOne sentence framing the comparison.
ca-comparison__panelsPartThe row that holds the panels.
ca-comparison__panelPartOne side of the comparison.
ca-comparison__panel-titlePartWhat the panel stands for.

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.

The paper diary or the app

What changes when a driving school moves its planning online.

Paper diary

  • Students phone to move a lesson
  • Double bookings found at the kerb

The app

  • Students reschedule up to a day before
  • Every booking visible to the whole team

Calaca skin

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

The paper diary or the app

What changes when a driving school moves its planning online.

Paper diary

  • Students phone to move a lesson
  • Double bookings found at the kerb

The app

  • Students reschedule up to a day before
  • Every booking visible to the whole team

Bloque skin

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

The paper diary or the app

What changes when a driving school moves its planning online.

Paper diary

  • Students phone to move a lesson
  • Double bookings found at the kerb

The app

  • Students reschedule up to a day before
  • Every booking visible to the whole team

Pliego skin

Example skin from the press sheet: cool ground, bond-paper sheets, rule-grey hairlines, one red mark.

The paper diary or the app

What changes when a driving school moves its planning online.

Paper diary

  • Students phone to move a lesson
  • Double bookings found at the kerb

The app

  • Students reschedule up to a day before
  • Every booking visible to the whole team

Framework notes

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

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