Which part for what
Figures
Stat and StatCard, Widget and WidgetGrid.
Stat and StatCard
A figure is a Stat in a Card, or a StatCard.
- The value is 24px with tabular digits, or 32px when it fills a tall box.
- The unit is 12px
text-3, and the label 12pxtext-2, with a signal at the right of the label. - In a box it fills, the label and figure stay at the top. A chart (
WidgetSparkline) or a meter takes the rest of the height. There is never a gap above the figure. This holds for afillcard with oneStatand forStatCard fill.
Cards in a row share edges and baselines.
Open the example ↗
Open the example ↗
Open the example ↗
Widget
A Widget shows a live value.
- Radius 20.
- One hue, the accent or a status colour. Only the moving part has the hue and its glow.
- With
fillin a grid cell, the title is at the top and a sparkline or list grows to fill the cell. A bar, strip or gauge goes at the bottom with the caption.
Open the example ↗
Open the example ↗
Open the example ↗
Open the example ↗
WidgetGrid
WidgetGrid is a page of widgets: 12 columns of 80px rows.
While editing, items drag and resize.
Outside editing it draws the stored layout compacted.
- Items in
empty, with nothing to show, take no space. - Each item is as tall as its content, up to its size. This is
fit, on by default. - Items of one height on one row end on one line.
- Everything moves up.
Cards on a WidgetGrid take the widget frame, with 18 or 20px padding and radius 20.
Open the example ↗
Open the example ↗
Open the example ↗
Open the example ↗
Edit on GitHub
Last updated on