Data display
Stat
Give one metric prominence and add context such as its change over time.
Anatomy
- Metric label
- Value
- Change
- Comparison period
Configuration
Change indicators
Tasks completed
128
+14%vs. last month
Use when the metric improves compared with the previous period.
Tasks completed
103
−8%vs. last month
Use when the metric worsens compared with the previous period.
Tasks completed
112
0%vs. last month
Use when the metric matches the previous period.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Metric value |
--cc-muted-foreground | — | Metric label, comparison period, and neutral change | |
--cc-surface-muted | — | Neutral change badge background | |
--cc-critical-soft | — | Negative change badge background | |
--cc-critical-soft-foreground | — | Negative change text and icon | |
--cc-success-soft | — | Positive change badge background | |
--cc-success-soft-foreground | — | Positive change text and icon |