Components
Buttons, cards, forms, navigation: the building blocks every site is made of.
-
Accordion
Native <details>/<summary> — works with zero JavaScript.
-
Admin UI
The pieces the owner portal is built from, for any screen where someone edits data. They sit on the framework's own form controls (.field, .input, .choice, .btn, .modal); only what was missing was added. All text is set with textContent by
- Alert & Toast
-
Avatar group
Stacked overlapping avatars — social proof at a glance.
-
Badge
Compact status/metadata label. Variants .badge--brand|success|warn|danger; add .badge--dot for a leading status dot. (Supersedes the earlier plain .pill.)
-
Button
One base + one variant. One primary action per view.
-
Card
Surface for grouped content. Variant .card--featured. Sub-elements .card__title, .card__body.
-
Divider
Horizontal with optional label text. Vertical variant for inline separation.
-
Dropdown menu
Trigger button needs aria-haspopup="true" + aria-expanded; list is .menu__list[hidden]. Items .menu__item (.menu__item--danger), separator .menu__sep. JS handles toggle, outside-click, Escape, and initial focus.
-
Footer
The .site-footer component comes in two variants, so you can match the weight of the page:
-
Form field
Wraps a label, control, and message. Sub-elements: .field__label (.req for required marker), .field__hint, .field__error. Control: .input (works on input, select, textarea). Invalid state: add .field--invalid and aria-invalid="true" +
-
Icons
Dependency-free SVG sprite at assets/icons.svg. Reference a symbol with <use>:
-
Modal
Native <dialog> → focus trapping, Escape, and inertness for free. Open with data-open-modal="id"; close with data-close-modal. Backdrop click closes. Sub-elements: .modal__header, .modal__title, .modal__body, .modal__footer, .modal__close.
-
Navbar
The top .nav bar handles horizontal navigation. For in-page or cross-page wayfinding, the .sidenav component (used in the left column of this very page) provides a sticky vertical table of contents with active-state highlighting via
-
Progress bar
Set --progress as an inline custom property. Colour modifiers available.
-
Skip link
Keyboard-only accessibility aid. Invisible until focused — press Tab at the top of any page to reveal it. Add it as the very first element inside <body>.
-
Table
Wrap in .table-wrap for horizontal scroll on small screens. Variant .table--zebra. Always use <thead>, scope="col"/scope="row", and a <caption>.
-
Tabs
WAI-ARIA tablist: .tabs__list[role=tablist], .tabs__tab[role=tab] with aria-selected + aria-controls, .tabs__panel[role=tabpanel] with aria-labelledby. JS wires click + Left/Right arrow navigation and roving tabindex.