Inputs
File upload
Choose or drop a local file and check it before continuing.
Anatomy
- Drop area
- Choose file action
- File requirements
Configuration
File selection
JSON, up to 1 MB
Choose a local JSON file to try the selection and validation states.
Drop a palette JSON file here
JSON, up to 1 MB
Drop a file into the area or use the file picker.
Design tokens used
| Category | Token | Value | Where 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 |