Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

11 — Design System Mapping (Files Module)

Maps every Files screen/component to the shared design system. Tokens are authoritative in 00-shared/02_Design_Tokens, system mapping in 00-shared/04_Design_System_Mapping. This file adds only files-specific usage.


1. Token usage

Token groupFiles usage
Color — primaryUpload CTA fill, active progress bar
Color — dangerDelete dialog confirm, error progress, cancel emphasis
Color — successupload/download completion check
Color — surface/textfile tiles, detail sheet rows (surface-1 / text-primary-secondary)
Color — info"Large file" warnings
Typefile name = title-medium; metadata line = body-small + text-secondary
Spacinglist rows space-16; sheet padding space-24; card gaps space-8
Radiussheets/cards use radius-lg; progress card radius-md
Elevationbottom sheets per tokens; cards flat in list
Motionm-fast / m-base as per 10_Interaction_Specification.md
IconsFileTypeIcon uses the token icon set + mime map

2. Component → system mapping

Files componentSystem basis (00-shared/03)Files-specific extension
FileTileAppListTile+ FileTypeIcon, size/date subline, conditional menu items
UploadSheetAppBottomSheet + AppButton+ picker rows, preview card, validation
UploadProgressCardAppProgress + AppButton(text)+ bytes counter, cancel
DownloadManagerSheetAppBottomSheet + AppProgress+ per-task list (queued/active/done)
DeleteConfirmDialogAppDialog destructive+ file-name interpolated copy
EmptyFilesStateAppEmptyState+ attach CTA (conditional)
Permission stateAppEmptyState+ lock variant
OfflineAppOfflineBannerglobal, no module variant

3. Semantics by state (files-specific)

StateColorIconCopy pattern
uploadingprimaryprogress"Uploading name — 40%"
successsuccesscheck"Uploaded name" / "Downloaded name"
errordangeralert"Upload failed — retry"
emptyneutralfile-outline"No files yet"
lockedneutral dimlock"Ask an admin for file access"

4. Density & adaptive

  • Phones: full-width rows, bottom sheets.
  • Tablet/desktop: list + detail master-detail; sheets become centered dialogs; hover highlight on rows; larger hit areas for menu.
  • Landscape: sheet becomes dialog (per 05_Screen_Inventory.md keyboard/landscape note).

5. a11y mapping (baseline 00-shared/09)

  • Progress announced via live region (upload + download).
  • File rows: single combined semantics; menu actions exposed.
  • Contrast: danger on surface meets AA; progress text ≥ body-small AA.