Skip to content
Sections
Fiesta

UI primitives

The shapes a component cannot be, because they wrap a body only the caller knows: cards, data grids, menus and the shells' own chrome.

Which card is which

rst-list and rst-card have no padding by design: they hold a run of rows, and each row pads itself. Put a form, a paragraph, a strip of links or anything else that is not a row straight into one and it renders flush against the border; the text touching the edge is the tell. The padded card for arbitrary content is rst-box, with its heading as a sibling rst-box-head before it.

Screens stack vertically

A screen is a column: page-header, then section-header + card, then the next section-header + card, in reading order. Horizontal arrangement is reserved for the idioms that ship it: rst-box-head, rst-field-row, rst-lbar, rst-lrow cells, rst-seg-tabs.

  • boxThe padded section card, and the heading that sits outside it.
  • buttonButtons come in four variants and three sizes, and a link can look like one. For the spinner a form shows while it submits, see form-foot.
  • form-layoutThe attributes that give a form its rhythm and its save bar. They wrap a run of fields you compose yourself.
  • stackA column that spaces its blocks by what each one is: close under a heading, wider before a section, and always clear above the buttons. Nothing inside it brings a margin of its own.
  • helpA bordered question mark linking to a help article. Its CSS tooltip is decoration; the link carries its own full-sentence label.
  • list-gridThe real data-table vocabulary: the card sets its columns once, rows only choose cells.
  • modalA modal is its own URL, not client state: the page underneath, marked inert, with the panel over it and a plain link to close.
  • selboxThe selection checkbox a list row wears in select mode. Its label restates the row's identity.
  • shell-sidebarThe sidebar shell's chrome on a content page: on a phone, one header row with a link back to the index, the app's name and the avatar.
  • shell-topbarThe topbar shell's own chrome, as markup. The whole page it belongs to is layout-topbar, under Shells.
  • stat-bandA row of stats across the top of a dashboard.
  • tblockA bordered card whose body reveals only while its switch is on, via :has(). The switch is authoritative; the reveal is a display convenience.