Skip to Content
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 12px text-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 a fill card with one Stat and for StatCard fill.

Cards in a row share edges and baselines.

Rows of threeCards in a row share edges and baselines: each fills the row's height (`fill`), the meter at the bottom.
Open the example ↗
Stat cardIn a row the cards share its height with `fill`, so their edges line up.
Open the example ↗
Content stuck to the top of a boxCards given a height they do not fill: the empty half says nothing.
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 fill in 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.
ProgressOne hue per widget: the accent or a status colour. Only the moving part gets the hue and its glow.
Open the example ↗
Timer, sparkline, gauge and uptimeWidgets side by side share the row's height with `fill`: the sparkline grows into it, the uptime strip and its caption sit at the bottom.
Open the example ↗
Colour on the cardTinted cards with hue edges, one colour per kind: the grid turns into a patchwork and nothing on it reads as signal.
Open the example ↗
Colour on the tile behind an iconThe card stays neutral; its kind is a small coloured tile.
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.

A dashboard: cards that fill the cells they are givenWidgetGrid places each tile in a 12-column grid of 80px rows. Outside editing each tile is as tall as its content up to its size, tiles of one height in a row end on one line, and the alerts tile, with nothing to show, takes no space (raise one to see the page make room for it). Press Edit to see the stored layout, the alerts tile as a placeholder, and to drag and resize.
Open the example ↗
Only what has something to say, as tall as it needsThe same layout: the empty inbox and the all-clear checks render nothing and take no space, the list's cell shrinks to its two rows, and everything moves up. The stored layout is unchanged; editing shows it.
Open the example ↗
Holes, restated normal states and short content in tall cellsEvery cell keeps its stored size: the empty inbox leaves a hole, a widget says nothing is failing, and two rows sit at the top of a cell sized for six.
Open the example ↗
As tall as its contentTwo recent pages, a card that ends where they end.
Open the example ↗
Widget in the gallery ↗
Edit on GitHub

Last updated on

On this page