Skip to content

Search

Start typing to search.


Show all pages

Documentation

data

Timeline

Events in order, each with a time and a title, such as the steps of a driving course.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

An ordered list of items. Mark the current step with aria-current="step".

  1. First lesson

    Getting to know the car and the controls.

  2. Theory exam passed

  3. Interim test

    A practice exam with a real examiner.

  4. Driving test

    Booked once your instructor marks you ready.

HTML

Examples

Guidance and accessibility

When to use

  • Use a timeline for a history or a sequence of steps where order and time matter.
  • Keep entries short; link to the details instead of putting them all in.
  • For a process people move through themselves, such as a checkout, a stepper fits better.

Accessibility

  • It is an ordered list, so screen readers announce the number of events and each position.
  • Put dates in <time datetime> so the machine-readable date is available.
  • The current step has aria-current="step"; the skin shows it with a filled and outlined marker, not by color alone.

Classes

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

Classes of the timeline component
ClassKindUse it for
ca-timelineComponentThe <ol> of events.
ca-timeline__itemPartOne event, with its marker on the line.
ca-timeline__timePartThe date or time, in a <time> element.
ca-timeline__titlePartWhat happened.
ca-timeline__descriptionPartOptional detail.

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.

  1. First lesson

    Getting to know the car and the controls.

  2. Theory exam passed

  3. Interim test

    A practice exam with a real examiner.

  4. Driving test

    Booked once your instructor marks you ready.

Calaca skin

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

  1. First lesson

    Getting to know the car and the controls.

  2. Theory exam passed

  3. Interim test

    A practice exam with a real examiner.

  4. Driving test

    Booked once your instructor marks you ready.

Proof skin

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

  1. First lesson

    Getting to know the car and the controls.

  2. Theory exam passed

  3. Interim test

    A practice exam with a real examiner.

  4. Driving test

    Booked once your instructor marks you ready.

Crossview skin

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

  1. First lesson

    Getting to know the car and the controls.

  2. Theory exam passed

  3. Interim test

    A practice exam with a real examiner.

  4. Driving test

    Booked once your instructor marks you ready.

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