One figure with its label, threshold status, detail line and sparkline, wrapping in a row.
<p class="cap-muted">Sparklines and tables: Enarratio's output, drawn when this page was built.</p>
<div class="cap-tiles">
<ul class="cap-tiles-list" aria-label="Overview figures">
<li>
<div class="cap-data" id="grid-sites-data">
<a class="cap-tile" href="#sites" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">6 <small>of 6</small></span><span class="cap-tile-label">Sites up</span><span class="cap-tile-word">All up</span></span>
<span class="cap-tile-detail">Watcher pass 40 seconds ago</span>
<span class="cap-tile-chart" role="img" aria-label="Sites up, last 7 days: 6 of 6 every day."><svg class="enarratio enarratio-sparkline" data-enarratio="sparkline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 22" width="96" height="22" role="img" aria-label="Sites up, last 7 days: 7 values, from 6 to 6; lowest 6, highest 6."><title>Sites up, last 7 days: 7 values, from 6 to 6; lowest 6, highest 6.</title><path d="M2.5,11L17.67,11L32.83,11L48,11L63.17,11L78.33,11L93.5,11" fill="none" stroke="var(--enarratio-series-1)" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><circle cx="93.5" cy="11" r="2.25" fill="var(--enarratio-series-1)"></circle></svg></span>
</a>
<div class="enarratio-data enarratio-visually-hidden"><table><caption class="enarratio-visually-hidden">Sites up by day</caption><thead><tr><th scope="col">Day</th><th scope="col">Sites up</th></tr></thead><tbody><tr><th scope="row">Thu, Sep 24</th><td>6</td></tr><tr><th scope="row">Fri, Sep 25</th><td>6</td></tr><tr><th scope="row">Sat, Sep 26</th><td>6</td></tr><tr><th scope="row">Sun, Sep 27</th><td>6</td></tr><tr><th scope="row">Mon, Sep 28</th><td>6</td></tr><tr><th scope="row">Tue, Sep 29</th><td>6</td></tr><tr><th scope="row">Wed, Sep 30</th><td>6</td></tr></tbody></table></div>
</div>
</li>
<li>
<button type="button" class="cap-tile" data-tone="warn">
<span class="cap-tile-line"><span class="cap-tile-figure">2 <small>jobs</small></span><span class="cap-tile-label">Blocked on you</span><span class="cap-tile-word"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M8 1.2 15.4 14H.6z" /><path fill="var(--surface)" d="M7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z" /></svg>Waiting on you</span></span>
<span class="cap-tile-detail">The oldest has waited 26 minutes</span>
</button>
</li>
<li>
<div class="cap-data">
<a class="cap-tile" href="#budget" data-tone="crit">
<span class="cap-tile-line"><span class="cap-tile-figure">2,140 <small>of 2,000</small></span><span class="cap-tile-label">Actions minutes</span><span class="cap-tile-word"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M5 1h6l4 4v6l-4 4H5l-4-4V5z" /><path fill="var(--surface)" d="M7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z" /></svg>Over limit</span></span>
<span class="cap-tile-detail">$4.10 of $10 model spend this month</span>
<span class="cap-tile-chart" role="img" aria-label="Actions minutes per day, last 7 days, rising: 260, 280, 310, 300, 330, 320, 340."><svg class="enarratio enarratio-sparkline" data-enarratio="sparkline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 22" width="96" height="22" role="img" aria-label="Actions minutes per day, last 7 days: 7 values, from 260 to 340; lowest 260, highest 340."><title>Actions minutes per day, last 7 days: 7 values, from 260 to 340; lowest 260, highest 340.</title><path d="M2.5,19.5L17.67,15.25L32.83,8.88L48,11L63.17,4.63L78.33,6.75L93.5,2.5" fill="none" stroke="var(--enarratio-series-1)" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><circle cx="93.5" cy="2.5" r="2.25" fill="var(--enarratio-series-1)"></circle></svg></span>
</a>
<div class="enarratio-data enarratio-visually-hidden"><table><caption class="enarratio-visually-hidden">Actions minutes by day</caption><thead><tr><th scope="col">Day</th><th scope="col">Minutes</th></tr></thead><tbody><tr><th scope="row">Thu, Sep 24</th><td>260</td></tr><tr><th scope="row">Fri, Sep 25</th><td>280</td></tr><tr><th scope="row">Sat, Sep 26</th><td>310</td></tr><tr><th scope="row">Sun, Sep 27</th><td>300</td></tr><tr><th scope="row">Mon, Sep 28</th><td>330</td></tr><tr><th scope="row">Tue, Sep 29</th><td>320</td></tr><tr><th scope="row">Wed, Sep 30</th><td>340</td></tr></tbody></table></div>
</div>
</li>
<li>
<a class="cap-tile" href="#backups" data-tone="nodata">
<span class="cap-tile-line"><span class="cap-tile-figure"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M5 8h6" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>No data</span><span class="cap-tile-label">Primary backup</span></span>
<span class="cap-tile-detail">The health route has not been read yet</span>
</a>
</li>
<li>
<button type="button" class="cap-tile" data-tone="warn">
<span class="cap-tile-line"><span class="cap-tile-figure">78% <small>of today's limit</small></span><span class="cap-tile-label">D1 rows read</span><span class="cap-tile-word"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M8 1.2 15.4 14H.6z" /><path fill="var(--surface)" d="M7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z" /></svg>Near limit</span></span>
<span class="cap-tile-detail">3.9 million of 5 million</span>
<span class="cap-tile-chart" role="img" aria-label="D1 rows read at this hour, last 7 days, rising: 52, 58, 61, 64, 70, 74 and 78 percent."><svg class="enarratio enarratio-sparkline" data-enarratio="sparkline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 22" width="96" height="22" role="img" aria-label="D1 rows read at this hour, percent of the limit, last 7 days: 7 values, from 52 to 78; lowest 52, highest 78."><title>D1 rows read at this hour, percent of the limit, last 7 days: 7 values, from 52 to 78; lowest 52, highest 78.</title><path d="M2.5,19.5L17.67,15.58L32.83,13.62L48,11.65L63.17,7.73L78.33,5.12L93.5,2.5" fill="none" stroke="var(--enarratio-series-1)" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><circle cx="93.5" cy="2.5" r="2.25" fill="var(--enarratio-series-1)"></circle></svg></span>
</button>
</li>
<li>
<a class="cap-tile" href="#findings" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">0</span><span class="cap-tile-label">Open findings</span><span class="cap-tile-word">None open</span></span>
<span class="cap-tile-detail">Watcher pass 40 seconds ago</span>
</a>
</li>
</ul>
</div>
Installation
// package.json: "capsomer": "github:DrDustinEdwards/capsomer#v0.152.2"
import "capsomer/tokens.css";
import "capsomer/base.css";
import "capsomer/stat-tile.css";import "capsomer/tokens.css";
import "capsomer/stat-tile.css";
import { StatTile, StaticStatTile, StatTiles } from "capsomer/react/stat-tile";Usage
<div class="cap-tiles">
<ul class="cap-tiles-list" aria-label="Overview figures">
<li>
<a class="cap-tile" href="/agents" data-tone="crit">
<span class="cap-tile-line">
<span class="cap-tile-figure">2,140 <small>of 2,000</small></span>
<span class="cap-tile-label">Actions minutes</span>
<span class="cap-tile-word">[crit glyph]Over limit</span>
</span>
<span class="cap-tile-detail">$4.10 of $10 model spend this month</span>
<span class="cap-tile-chart" role="img" aria-label="Actions minutes per day, last 7 days, rising: 260, 280, 310, 300, 330, 320, 340.">[Enarratio sparkline({ inline: true }) SVG]</span>
</a>
</li>
<li>
<a class="cap-tile" href="/backups" data-tone="nodata">
<span class="cap-tile-line">
<span class="cap-tile-figure">[dashed glyph]No data</span>
<span class="cap-tile-label">Primary backup</span>
</span>
<span class="cap-tile-detail">The health route has not been read yet</span>
</a>
</li>
</ul>
</div><div class="cap-tiles" data-layout="grid">
<ul class="cap-tiles-list" aria-label="Sequence figures">
<li>
<div class="cap-tile" data-variant="static" data-tone="ok">
<p class="cap-tile-label"><span class="cap-tile-icon" aria-hidden="true">[svg]</span>Open rate</p>
<p class="cap-tile-line">
<span class="cap-tile-figure">41%</span>
<span class="cap-tile-delta" data-tone="ok">[up arrow svg]+3 points</span>
</p>
<p class="cap-tile-detail">Against the 30 days before</p>
</div>
</li>
</ul>
</div>Examples
Static: a figure that leads nowhere
<p class="cap-muted">A label, a figure, a note and an optional delta and icon, in a row of equal columns. Not a link, not a button, no pointer.</p>
<div class="cap-tiles" data-layout="grid">
<ul class="cap-tiles-list" aria-label="Sequence figures">
<li>
<div class="cap-tile" data-variant="static">
<p class="cap-tile-label"><span class="cap-tile-icon" aria-hidden="true"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" aria-hidden="true" focusable="false"><rect x="1.8" y="3.2" width="12.4" height="9.6" rx="1.6"/><path d="m2.2 4.2 5.8 4.6 5.8-4.6"/></svg></span>Emails sent</p>
<p class="cap-tile-line"><span class="cap-tile-figure">12,480</span></p>
<p class="cap-tile-detail">In the last 30 days</p>
</div>
</li>
<li>
<div class="cap-tile" data-variant="static" data-tone="ok">
<p class="cap-tile-label">Open rate</p>
<p class="cap-tile-line"><span class="cap-tile-figure">41%</span> <span class="cap-delta" data-kind="moved" data-tone="good" data-direction="up"><span class="cap-delta-arrow" aria-hidden="true">▲</span><span class="cap-sr-only">up </span>8%</span></p>
<p class="cap-tile-detail">Against the 30 days before</p>
</div>
</li>
<li>
<div class="cap-tile" data-variant="static" data-tone="crit">
<p class="cap-tile-label">Unsubscribe rate</p>
<p class="cap-tile-line"><span class="cap-tile-figure">2.1%</span> <span class="cap-delta" data-kind="moved" data-tone="bad" data-direction="up"><span class="cap-delta-arrow" aria-hidden="true">▲</span><span class="cap-sr-only">up </span>24%</span></p>
<p class="cap-tile-detail">Up, and up is bad here</p>
</div>
</li>
<li>
<div class="cap-tile" data-variant="static">
<p class="cap-tile-label">Best step</p>
<p class="cap-tile-line"><span class="cap-tile-figure">Reminder 3</span></p>
<p class="cap-tile-detail">18% click rate</p>
</div>
</li>
<li>
<div class="cap-tile" data-variant="static" data-tone="warn">
<p class="cap-tile-label">Bounce rate</p>
<p class="cap-tile-line"><span class="cap-tile-figure">3.8%</span> <span class="cap-delta" data-kind="moved" data-tone="good" data-direction="down"><span class="cap-delta-arrow" aria-hidden="true">▼</span><span class="cap-sr-only">down </span>5%</span></p>
</div>
</li>
<li>
<div class="cap-tile" data-variant="static" data-tone="nodata">
<p class="cap-tile-label">Replies</p>
<p class="cap-tile-line"><span class="cap-tile-figure"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M5 8h6" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>No data</span></p>
<p class="cap-tile-detail">The inbox has not been connected yet</p>
</div>
</li>
</ul>
</div>
Static, large, in the family's accent
<div class="cap-tiles" data-layout="grid">
<ul class="cap-tiles-list" aria-label="Revenue figures">
<li>
<div class="cap-tile" data-variant="static" data-size="lg" data-tone="accent">
<p class="cap-tile-label">Monthly revenue</p>
<p class="cap-tile-line"><span class="cap-tile-figure">$12,400</span> <span class="cap-delta" data-kind="unchanged">no change</span></p>
<p class="cap-tile-detail">Since yesterday</p>
</div>
</li>
<li>
<div class="cap-tile" data-variant="static" data-size="lg">
<p class="cap-tile-label">Active customers</p>
<p class="cap-tile-line"><span class="cap-tile-figure">1,284 <small>of 1,500</small></span></p>
</div>
</li>
</ul>
</div>
Ok
<div class="cap-tiles">
<ul class="cap-tiles-list">
<li>
<a class="cap-tile" href="#mentions" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">3</span><span class="cap-tile-label">Mentions waiting</span><span class="cap-tile-word">Within a day</span></span>
<span class="cap-tile-detail">The oldest arrived 5 hours ago</span>
</a>
</li>
</ul>
</div>
Warning
<div class="cap-tiles">
<ul class="cap-tiles-list">
<li>
<a class="cap-tile" href="#kv" data-tone="warn">
<span class="cap-tile-line"><span class="cap-tile-figure">812 <small>of 1,000</small></span><span class="cap-tile-label">KV writes</span><span class="cap-tile-word"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M8 1.2 15.4 14H.6z" /><path fill="var(--surface)" d="M7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z" /></svg>Near limit</span></span>
<span class="cap-tile-detail">Resets at 00:00 UTC, in 7 hours</span>
</a>
</li>
</ul>
</div>
Critical
<div class="cap-tiles">
<ul class="cap-tiles-list">
<li>
<a class="cap-tile" href="#sites-down" data-tone="crit">
<span class="cap-tile-line"><span class="cap-tile-figure">4 <small>of 6</small></span><span class="cap-tile-label">Sites up</span><span class="cap-tile-word"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M5 1h6l4 4v6l-4 4H5l-4-4V5z" /><path fill="var(--surface)" d="M7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z" /></svg>2 down</span></span>
<span class="cap-tile-detail">example.org and members.example.org</span>
</a>
</li>
</ul>
</div>
No data
<div class="cap-tiles">
<ul class="cap-tiles-list">
<li>
<a class="cap-tile" href="#archive" data-tone="nodata">
<span class="cap-tile-line"><span class="cap-tile-figure"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M5 8h6" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>No data</span><span class="cap-tile-label">Archive backup</span></span>
<span class="cap-tile-detail">Its health route does not report a backup yet</span>
</a>
</li>
</ul>
</div>
Hover, pressed and keyboard focus
<div class="cap-tiles">
<ul class="cap-tiles-list">
<li>
<a class="cap-tile" href="#queue" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">3 <small>and 2 queued</small></span><span class="cap-tile-label">Running</span></span>
<span class="cap-tile-detail">Across 4 namespaces</span>
</a>
</li>
<li>
<a class="cap-tile" href="#queue" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">3 <small>and 2 queued</small></span><span class="cap-tile-label">Running</span></span>
<span class="cap-tile-detail">Across 4 namespaces</span>
</a>
</li>
<li>
<a class="cap-tile" href="#queue" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">3 <small>and 2 queued</small></span><span class="cap-tile-label">Running</span></span>
<span class="cap-tile-detail">Across 4 namespaces</span>
</a>
</li>
</ul>
</div>
Comfortable density
<div class="cap-tiles" data-density="comfortable">
<ul class="cap-tiles-list" aria-label="Comfortable figures">
<li>
<a class="cap-tile" href="#sites" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">6 <small>of 6</small></span><span class="cap-tile-label">Sites up</span><span class="cap-tile-word">All up</span></span>
<span class="cap-tile-detail">Watcher pass 40 seconds ago</span>
</a>
</li>
<li>
<button type="button" class="cap-tile" data-tone="warn">
<span class="cap-tile-line"><span class="cap-tile-figure">2 <small>jobs</small></span><span class="cap-tile-label">Blocked on you</span></span>
<span class="cap-tile-detail">The oldest has waited 26 minutes</span>
</button>
</li>
</ul>
</div>
Phone width: the row wraps onto more rows
<main class="specimen-page">
<h1>Overview</h1>
<div class="cap-tiles">
<ul class="cap-tiles-list" aria-label="Overview figures">
<li>
<a class="cap-tile" href="#sites" data-tone="ok">
<span class="cap-tile-line"><span class="cap-tile-figure">6 <small>of 6</small></span><span class="cap-tile-label">Sites up</span><span class="cap-tile-word">All up</span></span>
</a>
</li>
<li>
<a class="cap-tile" href="#queue" data-tone="warn">
<span class="cap-tile-line"><span class="cap-tile-figure">2</span><span class="cap-tile-label">Blocked on you</span><span class="cap-tile-word"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M8 1.2 15.4 14H.6z" /><path fill="var(--surface)" d="M7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z" /></svg>Waiting on you</span></span>
</a>
</li>
<li>
<a class="cap-tile" href="#budget" data-tone="crit">
<span class="cap-tile-line"><span class="cap-tile-figure">2,140 <small>of 2,000</small></span><span class="cap-tile-label">Actions minutes</span><span class="cap-tile-word"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M5 1h6l4 4v6l-4 4H5l-4-4V5z" /><path fill="var(--surface)" d="M7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z" /></svg>Over limit</span></span>
</a>
</li>
<li>
<a class="cap-tile" href="#backups" data-tone="nodata">
<span class="cap-tile-line"><span class="cap-tile-figure"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M5 8h6" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>No data</span><span class="cap-tile-label">Primary backup</span></span>
<span class="cap-tile-detail">The health route has not been read yet, so the age of the newest dump is not known</span>
</a>
</li>
</ul>
</div>
</main>
API reference
StatTile
| Prop | Type | Required | Does |
|---|---|---|---|
label | string | Yes | |
tone | StatTone | ||
word | string | Where the figure stands against its threshold: "Over limit", "Near limit", "All up". Shown with a status glyph when the tone is warn or crit. | |
detail | ReactNode | ||
chart | string | Enarratio's sparkline({ ..., inline: true }) output, an SVG string, placed in the chart slot as it comes: an inline primitive, role="img" named by a sentence with its numbers (its alt, or Enarratio's own from the values), so it needs no frame. | |
chartSummary | string | One sentence with the chart's numbers, "Actions minutes per day, last 7 days: 260 rising to 340.", when the SVG's own name is not it: the slot becomes the image, named by this. | |
chartTable | string | The chart's numbers as Enarratio's table markup (dataTableBlock(table, "Actions minutes by day"), or sparklineTable(options).markup), visually hidden for screen readers and AI agents, under the tile, outside the link. Markup, not the table, so a module with only static tiles never loads Enarratio. | |
href | string | Opens the view behind the figure: a link with href, or a button with onClick. | |
onClick | () => void | ||
renderLink | (props: StatTileLinkProps) => ReactNode | ||
figure | ReactNode | ||
unit | ReactNode |
StaticStatTile
| Prop | Type | Required | Does |
|---|---|---|---|
label | string | Yes | |
tone | StaticTone | ||
size | "lg" | "lg" for the one headline figure of a row. | |
icon | ReactNode | A drawing before the label: any inline SVG. Hidden from a screen reader. | |
delta | ReactNode | How the figure moved, beside it: Capsomer's Delta (<Delta current previous higherIsBetter />). | |
figureFirst | boolean | The figure above its label ("41%", then "Open rate"), for a row read by its numbers. Default: the label first. | |
detail | ReactNode | The note under the figure. | |
figure | ReactNode | ||
unit | ReactNode |
StatTiles
| Prop | Type | Required | Does |
|---|---|---|---|
label | string | Names the list for a screen reader: "Overview figures". | |
layout | "grid" | "grid": equal columns, two across on a phone (for a row of static tiles). The default is a row of tiles as wide as their text, wrapping onto more rows. | |
children | ReactNode | Yes |
CSS variables
| Variable | Default |
|---|---|
--tile-align | start |
--tile-detail-space | var(--tile-gap, var(--space-2)) |
--tile-figure-face | inherit |
--tile-figure-size | var(--fs-h3) |
--tile-figure-weight | var(--weight-semibold) |
--tile-gap | var(--space-2) |
--tile-icon-align | center |
--tile-icon-flow | row |
--tile-icon-size | 1.15em |
--tile-label-case | none |
--tile-label-face | inherit |
--tile-label-size | var(--fs-detail) |
--tile-label-tracking | normal |
--tile-label-weight | inherit |
--tile-pad | var(--pad-card) |
--tile-radius | var(--radius-l) |
--tile-shadow | none |
--tiles-columns | repeat(auto-fit, minmax(min(100%, 11rem), 1fr)) |
--tiles-gap | var(--space-3) |
Parts and data attributes
| Class | Is |
|---|---|
.cap-tile | its own class |
.cap-tile-chart | its own class |
.cap-tile-detail | its own class |
.cap-tile-figure | its own class |
.cap-tile-icon | its own class |
.cap-tile-label | its own class |
.cap-tile-line | its own class |
.cap-tile-word | its own class |
.cap-tiles | the root |
.cap-tiles-list | a part |
| Attribute | Values |
|---|---|
data-layout | grid |
data-size | lg |
data-tone | accent crit nodata ok warn |
data-variant | static |
| State | Read from |
|---|---|
:active | the platform |
:focus-visible | the platform |
:hover | the platform |
Accessibility
| Key | Does |
|---|---|
| Tab | Each tile in order |
| Enter on a link tile | Follows it |
| Enter or Space on a button tile | Activates it |
- A tile's accessible name is its text in reading order: figure, label, word, detail, then the sparkline's sentence with its numbers.
- The tiles sit in a list; name it (
aria-label="Overview figures") when the page has more than one. - The tile's border is decoration: the tile is identified by its text and shows a focus ring at 3:1. Hover and pressed change the background and the border; in forced colors the border is the button color and hover uses Highlight.
- Text reaches 4.5:1 in every tone on the tile's surface, its hover tint and its pressed tint.