Health index
On this page
Style
Health index is a combination of letter grades and severity colors. Severity colors communicate a positive or negative status. For example, green has a positive status and red has a negative status. To meet accessibility standards, letter grades are also used so that color is not the only element communicating the health of something. Health index does not include any interactive elements.
Anatomy
Variants
There are four available variants: Small
, Default
, Large
, and Extra large
. The only difference between the Large and Extra large variants is the size.
Theme
Health index is available in both light and dark themes.
Light theme
Dark theme
Configuration
Squares in the Default, Large, and Extra large variants are aligned horizontally.
Space
The spacer in the Default variant is the same for all viewport sizes.
States
Severity level
Depending on the theme and chosen variant, each severity level can have different colors and font styling.
# | Variant | Font weight | Text color | Fill color | Stroke/Emphasis color |
---|---|---|---|---|---|
1 | Small | Regular | green-70 |
green-20 |
Stroke: green-60 |
2 | Default | Regular | gray-95 |
N/A | N/A |
3 | Large | Medium | gray-95 |
red-10 |
|
4 | Extra large | Medium | gray-95 |
red-10 |
|
# | Variant | Font weight | Text color | Fill color | Stroke/Emphasis color |
---|---|---|---|---|---|
1 | Mini | Regular | white |
gray-95 |
Stroke: green-60 |
2 | Default | Regular | white |
N/A | N/A |
3 | Large | Medium | white |
gray-95 |
|
4 | Extra large | Medium | white |
gray-95 |
|
Interactive
Health index includes only text and is not interactive.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.