Components

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

Inputs

File upload

Choose or drop a local file and check it before continuing.

Anatomy

  1. Drop area
  2. Choose file action
  3. File requirements

Configuration

File selection

JSON, up to 1 MB

Choose a local JSON file to try the selection and validation states.

Design tokens used

CategoryTokenValueWhere it’s used
Colour--cc-foreground—Drop instructions, selected filename, and actions
--cc-muted-foreground—File requirements and quiet action
--cc-surface—Secondary button background
--cc-surface-muted—Drop area and secondary action on hover
--cc-border—Drop area outline and button border
--cc-primary-soft—Drop area when a file is over it
--cc-primary-soft-border—Active drop area outline
--cc-critical-soft-foreground—Validation error text
--cc-focus-ring—Keyboard focus ring