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

Maps module semantics onto shared tokens (00-shared/02 design tokens, 00-shared/04 system mapping). No new tokens without a shared-doc change.


1. Semantic → token map

SemanticTokenComponent use
Publishedsuccess/primaryAnnouncementStatusBadge
Draftneutral/greyAnnouncementStatusBadge
Unreadaccent amber dotAnnouncementCard leading dot
Readdefault text/iconcheckmark on detail CTA
Audience roleinfo chipAudienceChip
Audience grade/sectioninfo chip variantAudienceChip
Audience customsecondary chipAudienceChip
Audience allprimary "Everyone" chipAudienceChip
Priority high (planned)error/alert accentfuture PriorityBadge — no schema field yet (announcement.schema.ts:31-53)
Expired (planned)muted + strikethrough titlefuture filter state

2. Component → token mapping (key ones)

Component (07)Tokens
AnnouncementCardsurface card, outline border, radius-m, space-3/4, shadow-1
AudienceChipchip tokens + per-type fill (map above)
AnnouncementStatusBadgeAppBadge token sets (success/neutral)
ReadReceiptBarprogress primary, track surface-variant
Compose formstandard AppTextField tokens; error = error color

Typography: title titleMedium, body bodyMedium/bodySmall (excerpt), audience chip labelSmall, timestamps labelSmall muted. All from shared type ramp — no module-local font sizes.

3. Status → color rules

  1. Color never carries meaning alone — always paired with text/label (00-shared/09): "Draft", "Published", "Unread" semantics.
  2. Unread amber is reserved for "has unread content" only (feed dot, thread badge).
  3. Error red = validation and failures only, not for "draft" or "expired".
  4. High-priority accents (planned) must contrast ≥ 4.5:1 and pass 00-shared/09 checks.

4. Iconography

IconMeaning
campaign / megaphoneannouncements hub, compose FAB
mark_email_read / check_circlemark-read CTA, read state
visibility / bar_chartread receipts (author)
attach_fileattachments
draft (document)draft badge
scheduleexpiry (planned)

Icons from the shared icon set (00-shared/02); no custom glyphs.

5. Density & layout

  • Feed rows: comfortable density (space-4 vertical); receipts rows: compact (space-2) — receipts are scanning surfaces.
  • Composer max width 640 dp on tablet/desktop (forms are hard to fill on wide panes — 00-shared/04).
  • Sheets: standard bottom-sheet radius/height rules; receipts sheet can be full-height (scroll-heavy).

6. Dark mode / contrast

All tokens are theme-aware (light/dark from shared tokens). Unread amber, success green, and muted grey all have dark-variant tokens — verify on both themes in QA (14_QA_Checklist.md §9).