Components

Explore live examples and usage guidance for interface components styled with the active colour palette.

Inputs

Text field

Collect a short, single-line value with a visible label.

Anatomy

  1. Field label
  2. Text input
  3. Helper text

Configuration

Text field states

Hover over an enabled control or use Tab to see its hover and focus styles.

Design tokens used

CategoryTokenValueWhere it’s used
Colour--cc-foreground—Field label
--cc-muted-foreground—Read-only or disabled value
--cc-subtle-foreground—Placeholder text
--cc-surface-muted—Read-only or disabled field background
--cc-primary—Editable field border on focus
--cc-critical-soft-foreground—Validation message
--cc-critical-border—Invalid field border
--cc-field-background—Editable field background
--cc-field-foreground—Entered value
--cc-field-border—Field border
--cc-field-hover-border—Editable field border on hover
--cc-focus-ring—Keyboard focus ring