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 (Dashboard Module)

Token-to-component mapping for dashboard surfaces. All tokens authoritative in 00-shared/02 (Sp = spacing §3, Ty = typography §2, El = elevation §5, R = radius §4, Mo = motion §6); components in 00-shared/03 and 07_Component_Library.md; a11y baseline 00-shared/09.


1. Typography

RoleTokenUsage
Screen titleTy headlineSmall/titleLargeAppBar "Dashboard"
KPI valueTy headlineMedium (tabs) / numeric styleKpiCard.value
KPI labelTy bodySmall onSurfaceVariantKpiCard.label
TrendTy bodySmall (bold variant (planned))TrendIndicator
Chart titleTy titleMediumChartCard.title
Chart captionTy bodySmall onSurfaceVariantChartCard.caption (a11y text)
BannerTy bodyMediumStaleBanner, AppOfflineBanner
Empty stateTy titleMedium + bodyMediumAppEmptyState

2. Colour

RoleTokenUse
Card surfacessurfaceContainerLowKpiCard, ChartCard (both themes)
ValueonSurfaceKPI numbers
Trend up/downprimary/error (semantic success/error), neutral onSurfaceVariantTrendIndicator (planned) — glyphs accompany colour (09_User_Behaviour.md B-rule)
Chartsprimary, secondary, tertiaryAppCharts series
Overdue/attentionerror + errorContainer chipdues overdue chip
Zero hintonSurfaceVariantzero-state hints
Stale bannerinfo secondaryContainerStaleBanner
OfflineAppOfflineBanner shared tokensoffline

All pairs pass AA on light + dark (00-shared/09 §2); no module-specific colours added.

3. Spacing & layout

TokenUse
Sp 16 (phone) / 24 (tablet+)screen horizontal padding
Sp 12between KPI cards (row), chart-card padding
Sp 16chart-card inner padding
Sp 24section gaps
KPI rowhorizontal scroll phone; wrap grid tablet ≥840 dp; max 3 cols desktop ≤1200 width

4. Elevation & radius

TokenUse
El-e1resting cards (KpiCard, ChartCard)
El-e2desktop hover lift (06_Screen_Specifications.md §1.7)
El-1AppBar
R mdcards, banners, chips
R fulltrend chips, period segmented control

5. Motion

Per 10_Interaction_Specification.md §10: Mo-m-base routes/charts, Mo-m-fast shimmer/press/banners, 200 ms value swap. No custom curves.

6. Component → token table

ComponentContainerTextAccent
KpiCardsurfaceContainerLow, El-e1, R-mdvalue headlineMedium onSurface; label bodySmall onSurfaceVarianttrend primary/error
ChartCardsame as cardtitle titleMedium; caption bodySmallseries primary/secondary/tertiary
StaleBannersecondaryContainerbodyMedium onSecondaryContainerinfo
WidgetPaletteTile (planned)surfaceContainerLowtitle bodyLargeswitch primary
KpiRow— (layout only)

7. Dark/light & dynamic type

  • Token-only theming; both schemes derive from the same roles — no hard-coded hex anywhere (00-shared/02 §1).
  • Dynamic type 200%: KPI row falls back to vertical list; charts keep aspect but caption reflows; tested in 14_QA_Checklist.md §5.

8. Accessibility mapping

RequirementMapping
Contrast AAtokens above; chart series differ by luminance + pattern (planned)
Chart summariesChartCard.caption text row + semanticsLabel (06_Screen_Specifications.md §1.5)
Touch targets ≥ 48all cards, handles, switches
Colour independencetrend glyphs + labels
Live regionsKPI value updates ≥ 1%