Two small tiles for a board page. Both are static markup and CSS, with no script.
The pill
:::tile pill
status: blocked
label: Nightly build
:::
status is running, waiting, blocked, done or failed; anything else is a
build error that names the five. label is an optional short text before the word. The
word is always shown, so the color is never the only signal. Each state takes one theme
color, so light, dark and a site’s own overrides all apply.
The progress bar
Pages written 37 of 120 (30%)
:::tile progress
value: 37
max: 120
label: Pages written
status: running
:::
value is a whole number from 0 up to max, and max is the total, 100 when not
given. label and status are optional, and status takes the same five words as the
pill.
The numbers are written out (37 of 120 (30%), the percent rounded down). The width of
the bar is whole hundredths of a percent worked out with integers and rounded down, so a
bar is never fuller than its count: 1 of 3 is 33.33%. A value above max, and a number
that is not whole, are build errors that say so.