elements
Start Docs Blog Demos UI Pricing
Elements Manual
  • Getting Started
  • CLI
  • Build
  • Browser
  • Packages
  • TypeScript
  • Elements HTML
  • Assets
  • RPC
  • Router
  • Session
  • Database
  • Migrations
  • LiveTable
  • Channel
  • Jobs
  • Email
  • Payments
  • JSON
  • Async
  • Style
    • Install
    • Tokens
    • Base elements
    • Typography
    • Layout
    • Components
      • Button
      • Form
      • Card
      • Callout
      • Pill
      • Tabs
      • Terminal
      • Native widgets
    • Utilities
    • Theming
    • Overriding
    • Email
    • Reference
  • UI
  • JSOC
  • Config
  • Tests
  • Logs
  • Deploy
  • Editors
  • Recipes
  • Licenses
  • Issues
  • Changelog
Manual / Style/ Components

Components

elements man style/components

On This Page

  • CSS-only scope
  • Bare elements are already styled
  • Component pages
  • Topics

The component classes are CSS-only families in @layer components. Each is a bare noun (.card, .callout, .pill, .tab, .terminal), its parts carry the family prefix (.card-head, .pill-dot, .tab-list), and its variants are is- modifiers (is-primary, is-active, is-error). See the naming rule (elements man style).

The components layer is declared after base and before templates, utilities and overrides. A rule in a later layer applies over a rule in an earlier layer, so a template's stylesheet, a utility class or your app's CSS each restyle a component without !important. See overriding (opens in a new tab) for the full layer order.

CSS-only scope

Everything here is styling applied to markup you write. The classes style each component and its states (is-active, is-copied, is-loading), and the event handlers in your template add and remove the state classes. The package carries no JavaScript so that behavior stays in the template, next to the state it reads. A tab bar is .tab buttons whose onclick sets the active tab, with e:if on each panel. A copy button is an onclick that writes to the clipboard and adds is-copied.

Bare elements are already styled

Bare <button>, <input>, <textarea>, <select>, checkbox and radio are styled by rules with zero specificity (their selectors are wrapped in :where()), so a rule with a class selector applies over them with no !important. To render any element as the design system's button, the same one <Button> renders, use the .button class:

Example
<button>Default chrome</button> <a class="button is-primary" href="/install">Install</a>

See base (opens in a new tab) for the bare-element principle in full.

Component pages

  • button (opens in a new tab): <button> / .button, intents, sizes, states, button groups, icon-only.
  • form (opens in a new tab): bare inputs, textarea, select, checkbox, radio, the .field wrapper, and the grid form.
  • card (opens in a new tab): .card with head/body/foot.
  • callout (opens in a new tab): .callout with status and accent intents.
  • pill (opens in a new tab): .pill with intents and an optional status dot.
  • tabs (opens in a new tab): .tabs / .tab-list / .tab / .tab-panel (you supply the toggle).
  • native (opens in a new tab): styled progress, meter, and details > summary.
  • terminal (opens in a new tab): the dark CLI bar, token rows, and inline CLI references (you supply the copy behavior).

Topics

style/components/button A bare button is a finished secondary button; is- modifiers change intent and size.style/components/form Self-styling inputs, the .field wrapper, and form.is-grid layout.style/components/card A bordered surface with optional head, body, and foot regions.style/components/callout A left-bordered notice block for tips, warnings, and status.style/components/pill A small rounded label for tags, statuses, and counts.style/components/tabs Underline-style tabs.style/components/terminal A dark command bar for CLI commands, plus inline CLI references.style/components/native Styling for progress, meter, and details/summary.
Prev LayoutNext Button
Product
Manual Pricing Compare
Company
History Contact
Legal
Privacy Policy Acceptable Use Terms License Agreement
© Elements Dev Corporation 2026