Skip to content
Home Theme Gallery

Components

Home-UI ships 48 hui-* elements and one stylesheet. The inventory, and what is deliberately left to the host, is UI-CONTRACT-003.

The pages here are grouped with the vocabulary of atomic design. The split describes how much of a host’s page an element accounts for, not how the source happens to be arranged. An element changes group only when its role changes, and its URL moves with it.

  • Atoms are the controls a page is spelled from: a button, an input, a checkbox. Each does one thing - holds a value, or triggers an action - and none is built from another Home-UI element.
  • Molecules bind a few atoms into one small unit: a field with its label and its error, a search box with its clear button, a date picker with its calendar. They own a gesture or a piece of form furniture the host would otherwise wire itself.
  • Organisms are the larger, self-contained regions a page is assembled from: a dialog, a data table, a sidebar, a carousel. They still hold no application state - the host does - but they own enough structure to be a landmark on a page.
  • Charts sit outside the three. The data-visualisation elements ship in their own file (ENH-009), and a reader looking for a chart looks for the word.