Appica UIUI 1.6.0

Heatmap

A heatmap recipe - tables of tinted cells built from Appica UI tokens, for cohorts and activity by day.

A heatmap shows a magnitude at each crossing of 2 dimensions as the depth of 1 color. It is a recipe without a chart library. A heatmap is read cell by cell, so it is a table, which is also what a screen reader expects.

Installation

Nothing to install beyond Appica UI. The tint is 1 hue mixed toward transparent by the cell's value, a fraction from 0 to 1 set as a CSS variable:

Examples

Cohort

A retention table: 1 row per signup cohort, 1 column per month since signup. The number stays in the cell and the tint carries the pattern, so the table reads with or without color.

Loading

Calendar

A contribution grid: 1 column per week, 1 row per weekday. The mix starts at 10%, the -subtle step, so an empty day still draws its cell. Each cell carries its value as visually hidden text and shows it in a Tooltip on hover.

Loading

Accessibility

  • Both examples are real tables with a visually hidden caption, column headers and row headers, so a screen reader announces each cell with its cohort and month, or its weekday.
  • In the cohort table the value is the cell's text. In the calendar every cell has visually hidden text with its count and date, since a hover tooltip alone never reaches a keyboard or a screen reader.
  • Depth of color is the only encoding of a calendar cell, so keep the "Less" to "More" scale beside it.
  • Use 1 hue for a magnitude. For values on both sides of a midpoint, mix --success-emphasis and --error-emphasis around --background-muted instead.

© 2026 Appica UI. A free component library, crafted by the Appica team.