- ds
- Foundations
- Tones and status
Tones and status
Seven tones for diagrams, three states for health.
Tones
Seven tones tell things apart in diagrams: tenants, teams, planes, environments. Each has a line colour (--t-*) and a wash (--w-*). In a diagram a tone sets --tc and --tw on the element, and the node, zone or link picks them up.
tone=purple … tone=pink on components, rendered by topo
Use tones for meaning the reader needs a legend for. Two or three per diagram is plenty. Red is a tone like any other here; for health, use status.
Status
Three states, used for health and incidents. They have their own tokens so a tone and a status never collide.
Operational
Degraded
Down
okwarndown
Code
<span class="status"><span class="status-dot"></span>Operational</span>
<span class="status"><span class="status-dot warn"></span>Degraded</span>
<span class="status"><span class="status-dot down"></span>Down</span>
<span class="badge ok">ok</span><span class="badge warn">warn</span><span class="badge down">down</span>