teqo-backup/.agents/skills/ios-hig-design/references/typography.md
Francisco Ignácio Fontoura Solla b75daab498 Refactor campaign dashboard UX and add product discovery artifacts.
Extract dashboard cards into focused components (queues, upcoming plans, leadership status, recently visited, choropleth legend), compile the roadmap for outcome-oriented tracking, document the customer job and improve-app journey, and tighten roadmap skills with decision-quality gates.
2026-07-19 21:56:01 -03:00

1.7 KiB

iOS Typography Reference

SKILL.md section 2 covers the sizes, weights, and the six type rules (min 11pt, 1.3x line height, 35-50 chars, left-aligned, weight-over-size, 4.5:1). This file adds what it does not carry: exact light-mode color values and the Dark Mode color mapping.

System Font: San Francisco

iOS uses San Francisco (SF Pro) as the default typeface. Always reach the styles through semantic APIs (.font(.title), .font(.body), .font(.caption)) so Dynamic Type scaling and these colors apply automatically — never hardcode the point sizes or hex values below.

Light-Mode Color Values

The point sizes live in SKILL.md; these are the hex values iOS resolves each semantic style to in light mode.

Element Semantic style Color (light)
Large Title / Title / Body .largeTitle .title .body #000000 (label)
Secondary text .subheadline + .secondary #3C3C43 @ 60% (secondaryLabel)
Caption / Tertiary .caption + .secondary #3C3C43 @ 60%
Tab bar labels (unselected) 10pt #8A8A8E (tertiaryLabel)
Text("Caption")
    .font(.caption)
    .foregroundColor(.secondary)   // resolves to secondaryLabel in both modes

Dark Mode Color Mapping

Semantic styles flip automatically; this is the mapping they apply so you can verify a custom color matches it:

  • Primary text #000000 -> #FFFFFF (label)
  • Secondary/tertiary gray -> lighter gray at the same opacity (secondaryLabel/tertiaryLabel)
  • Backgrounds shift darker while preserving the relative hierarchy between layers

If you define a custom text color, put light/dark variants in the Asset Catalog so it follows this mapping instead of staying fixed.