Apple hig

From CamilleScholtz/swmpc · View interactive version

Apple hig is an AI agent skill from the GitHub repository CamilleScholtz/swmpc. Apple Human Interface Guidelines as structured design values — system colors (incl. increased-contrast variants), the full Dynamic Type ramp, Liquid Glass rules and budgets, layout and hit-target metrics, SF Symbols, and HIG-to-SwiftUI component mappings. Use when styling or reviewing any Apple-plat

How to use this skill

Skill file

Apple refreshed the vivid system color palette on 2025-06-09 (WWDC25 / Liquid Glass). Model training data predates this and is wrong. systemBlue is #0088FF, not #007AFF. Never answer a color question from memory — read references/color.md.

Values here are provenance-tagged so you know what to trust:

| Tag | Meaning |

|---|---|

| apple-hig / apple-system | Apple-published fact. |

| wcag-aa | The 4.5:1 contrast rule. |

| figma-effect / community-bestpractice | Useful number Apple never published — a guardrail to confirm, not gospel. |

| convention | Common community practice, no Apple source. |

| verify: true | Beta-era name or value that shifts between releases; confirm in Xcode before shipping. |

Honest data beats confident data. When a reference says Apple publishes no number, say that rather than inventing one. Never promote a community heuristic to an Apple fact.

Non-negotiables

  1. Reference colors by name, never by hex. Color(.blue), Color(.label), Color(.secondarySystemBackground) are adaptive — they resolve per light/dark/increase-contrast automatically. Apple explicitly warns values "may fluctuate from release to release." Hex in the references is for design-tool work only; a hardcoded hex in shipping UI is a bug.
  2. Drive type from text styles, not point sizes. .font(.body), .font(.headline). Hardcoded sizes break Dynamic Type — and Body runs 17 → 53 pt (3.1×) from default to AX5. The point tables are for spec/design work.
  3. Design hit targets to 44×44pt on iOS/iPadOS. Apple publishes this as the default control size; the published minimum is 28×28pt — a floor for dense/secondary controls, not a license to shrink. macOS also has published sizes (28×28 default / 20×20 min), so "macOS has no rule" is wrong. Full 5-platform table in references/layout.md.
  4. Continuous corners, not circular — and on iOS 26+ prefer the real concentric APIs (ConcentricRectangle, .containerShape) over hand-computing outer = inner + padding.
  5. Any translucency needs a contrast plan. Text contrast ≥4.5:1 (≥3:1 at 18pt or bold), measured after blur against the real backdrop, in light and dark. Never rely on a blur for legibility.
  6. Supply light + dark + increased-contrast variants for every custom color — even in a single-appearance app. Liquid Glass adaptivity requires them.

Current OS status (verified 2026-07-20)

iOS 27 / WWDC26 changed less than you'd assume. Verified against live HIG change logs:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.