Ios design system

From pproenca/dot-skills · View interactive version

Ios design system is an AI agent skill from the GitHub repository pproenca/dot-skills. Clinic-architecture-aligned iOS design system engineering for SwiftUI (iOS 26 / Swift 6.2) covering token architecture, color/typography/spacing systems, component style libraries, asset governance, and theming. Enforces @Equatable on views and keeps design-system usage compatible with Feature-to-Do

How to use this skill

Skill file

Airbnb iOS Design System Best Practices

Opinionated, strict design system engineering for SwiftUI iOS 26 / Swift 6.2 apps. Contains 50 rules across 8 categories, prioritized by impact. Derived from Airbnb's Design Language System (DLS), Airbnb Swift Style Guide, Apple Human Interface Guidelines, and WWDC sessions. Mandates @Equatable on every view, @Observable for state, and style protocols as the primary component API.

Mandated Architecture Alignment

This skill is designed to work alongside swift-ui-architect. All code examples follow the same non-negotiable constraints:

Scope & Relationship to Sibling Skills

This skill is the infrastructure layer — it teaches how to BUILD the design system itself. When loaded alongside sibling skills:

| Sibling Skill | Its Focus | This Skill's Focus |

|---------------|-----------|-------------------|

| swift-ui-architect | Architecture (modular MVVM-C, route shells, protocol boundaries) | Design system infrastructure (tokens, styles, governance) |

| ios-design | Using design primitives (semantic colors, typography) | Engineering the token system that provides those primitives |

| ios-ui-refactor | Auditing/fixing visual quality issues | Preventing those issues via governance and automation |

| ios-hig | HIG compliance patterns | Asset and component infrastructure that makes compliance easy |

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

When to Apply

Reference these guidelines when:

Rule Categories by Priority

| Priority | Category | Impact | Prefix | Rules |

|----------|----------|--------|--------|-------|

| 1 | Token Architecture | CRITICAL | token- | 6 |

| 2 | Color System Engineering | CRITICAL | color- | 7 |

| 3 | Component Style Library | CRITICAL | style- | 10 |

| 4 | Typography Scale | HIGH | type- | 5 |

| 5 | Spacing & Sizing System | HIGH | space- | 5 |

| 6 | Consistency & Governance | HIGH | govern- | 7 |

| 7 | Asset Management | MEDIUM-HIGH | asset- | 5 |

| 8 | Theme & Brand Infrastructure | MEDIUM | theme- | 5 |

Quick Reference

1. Token Architecture (CRITICAL)

2. Color System Engineering (CRITICAL)

3. Component Style Library (CRITICAL)

4. Typography Scale (HIGH)

5. Spacing & Sizing System (HIGH)

6. Consistency & Governance (HIGH)

7. Asset Management (MEDIUM-HIGH)

8. Theme & Brand Infrastructure (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

| File | Description |

|------|-------------|

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

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.