Skip to content

Search

Start typing to search.


Show all pages

Documentation

feedback

Progress

A bar that shows how far a task or a series has come.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

A native <progress> with value and max, and a label that also says the numbers.

14 of 20
HTML

Examples

With a hint

Point aria-describedby at a hint for details such as the size of an upload.

62%

62% of 4.8 MB

HTML

Guidance and accessibility

When to use

  • Use a progress bar for a task with a known end: an upload, a series of lessons, the steps of a long form.
  • Write the numbers in the label too, such as “14 of 20”, so people do not have to estimate the bar.
  • Always set value. Without it the bar has no value to draw.

Accessibility

  • It is a native <progress>: screen readers announce its value. Connect a <label> with for and id.
  • The text inside the element is a fallback for very old browsers.
  • In forced colors the skin’s drawing gives way to the native bar.

Classes

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

Classes of the progress component
ClassKindUse it for
ca-progressComponentA native <progress>; the skin draws the track and the value.

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.

14 of 20

Calaca skin

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

14 of 20

Proof skin

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

14 of 20

Crossview skin

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

14 of 20

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