[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEC2J14MJ283RXWK7M6439":3,"skill-same:01M6FEC2J14MJ283RXWK7M6439":50},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M6FEC2J14MJ283RXWK7M6439","ios-design-system",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-design-system\u002FSKILL.md",[],[18,19,20,21,22],"design","design system","ios","system","ios design system","2026-11-10 10:12:30",false,"# Airbnb iOS Design System Best Practices\n\nOpinionated, strict design system engineering for SwiftUI iOS 26 \u002F 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.\n\n## Mandated Architecture Alignment\n\nThis skill is designed to work alongside `swift-ui-architect`. All code examples follow the same non-negotiable constraints:\n\n- Feature modules depend on `Domain` + `DesignSystem`; no direct `Data` dependency\n- `@Observable` for mutable UI state, `ObservableObject` \u002F `@Published` never\n- `@Equatable` macro on every view\n- Style protocols as the primary component styling API (Airbnb DLS pattern)\n- Asset catalog as the source of truth for color values\n- Local SPM package for design system module boundary\n\n## Scope & Relationship to Sibling Skills\n\nThis skill is the **infrastructure layer** — it teaches how to BUILD the design system itself. When loaded alongside sibling skills:\n\n| Sibling Skill | Its Focus | This Skill's Focus |\n|---------------|-----------|-------------------|\n| `swift-ui-architect` | **Architecture** (modular MVVM-C, route shells, protocol boundaries) | **Design system infrastructure** (tokens, styles, governance) |\n| `ios-design` | **Using** design primitives (semantic colors, typography) | **Engineering** the token system that provides those primitives |\n| `ios-ui-refactor` | **Auditing\u002Ffixing** visual quality issues | **Preventing** those issues via governance and automation |\n| `ios-hig` | **HIG compliance** patterns | **Asset and component infrastructure** that makes compliance easy |\n\n\n## Clinic Architecture Contract (iOS 26 \u002F Swift 6.2)\n\nAll guidance in this skill assumes the clinic modular MVVM-C architecture:\n\n- Feature modules import `Domain` + `DesignSystem` only (never `Data`, never sibling features)\n- App target is the convergence point and owns `DependencyContainer`, concrete coordinators, and Route Shell wiring\n- `Domain` stays pure Swift and defines models plus repository, `*Coordinating`, `ErrorRouting`, and `AppError` contracts\n- `Data` owns SwiftData\u002Fnetwork\u002Fsync\u002Fretry\u002Fbackground I\u002FO and implements Domain protocols\n- Read\u002Fwrite flow defaults to stale-while-revalidate reads and optimistic queued writes\n- ViewModels call repository protocols directly (no default use-case\u002Finteractor layer)\n\n## When to Apply\n\nReference these guidelines when:\n- Setting up a design system for a new iOS app\n- Building token architecture (colors, typography, spacing, sizing)\n- Creating reusable component styles (ButtonStyle, LabelStyle, custom DLS protocols)\n- Organizing asset catalogs (colors, images, icons)\n- Migrating from ad-hoc styles to a governed token system\n- Preventing style drift and enforcing consistency via automation\n- Building theming infrastructure for whitelabel or multi-brand apps\n- Reviewing PRs for ungoverned colors, hardcoded values, or shadow tokens\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix | Rules |\n|----------|----------|--------|--------|-------|\n| 1 | Token Architecture | CRITICAL | `token-` | 6 |\n| 2 | Color System Engineering | CRITICAL | `color-` | 7 |\n| 3 | Component Style Library | CRITICAL | `style-` | 10 |\n| 4 | Typography Scale | HIGH | `type-` | 5 |\n| 5 | Spacing & Sizing System | HIGH | `space-` | 5 |\n| 6 | Consistency & Governance | HIGH | `govern-` | 7 |\n| 7 | Asset Management | MEDIUM-HIGH | `asset-` | 5 |\n| 8 | Theme & Brand Infrastructure | MEDIUM | `theme-` | 5 |\n\n## Quick Reference\n\n### 1. Token Architecture (CRITICAL)\n\n- [`token-three-layer-hierarchy`](references\u002Ftoken-three-layer-hierarchy.md) - Use Raw → Semantic → Component token layers\n- [`token-enum-over-struct`](references\u002Ftoken-enum-over-struct.md) - Use caseless enums for token namespaces\n- [`token-single-file-per-domain`](references\u002Ftoken-single-file-per-domain.md) - One token file per design domain\n- [`token-shapestyle-extensions`](references\u002Ftoken-shapestyle-extensions.md) - Extend ShapeStyle for dot-syntax colors\n- [`token-asset-catalog-source`](references\u002Ftoken-asset-catalog-source.md) - Source color tokens from asset catalog\n- [`token-avoid-over-abstraction`](references\u002Ftoken-avoid-over-abstraction.md) - Avoid over-abstracting beyond three layers\n\n### 2. Color System Engineering (CRITICAL)\n\n- [`color-organized-xcassets`](references\u002Fcolor-organized-xcassets.md) - Organize color assets with folder groups by role\n- [`color-complete-pairs`](references\u002Fcolor-complete-pairs.md) - Define both appearances for every custom color\n- [`color-limit-palette`](references\u002Fcolor-limit-palette.md) - Limit custom colors to under 20 semantic tokens\n- [`color-no-hex-in-views`](references\u002Fcolor-no-hex-in-views.md) - Never use Color literals or hex in view code\n- [`color-system-first`](references\u002Fcolor-system-first.md) - Prefer system colors before custom tokens\n- [`color-tint-not-brand-everywhere`](references\u002Fcolor-tint-not-brand-everywhere.md) - Set brand color as app tint, don't scatter it\n- [`color-audit-script`](references\u002Fcolor-audit-script.md) - Audit for ungoverned colors with a build script\n\n### 3. Component Style Library (CRITICAL)\n\n- [`style-dls-protocol-pattern`](references\u002Fstyle-dls-protocol-pattern.md) - Define custom style protocols for complex DLS components\n- [`style-equatable-views`](references\u002Fstyle-equatable-views.md) - Apply @Equatable to every design system view\n- [`style-accessibility-first`](references\u002Fstyle-accessibility-first.md) - Build accessibility into style protocols, not individual views\n- [`style-protocol-over-wrapper`](references\u002Fstyle-protocol-over-wrapper.md) - Use Style protocols instead of wrapper views\n- [`style-static-member-syntax`](references\u002Fstyle-static-member-syntax.md) - Provide static member syntax for custom styles\n- [`style-environment-awareness`](references\u002Fstyle-environment-awareness.md) - Make styles responsive to environment values\n- [`style-view-for-containers-modifier-for-styling`](references\u002Fstyle-view-for-containers-modifier-for-styling.md) - Views for containers, modifiers for styling\n- [`style-catalog-file`](references\u002Fstyle-catalog-file.md) - One style catalog file per component type\n- [`style-configuration-over-parameters`](references\u002Fstyle-configuration-over-parameters.md) - Prefer configuration structs over many parameters\n- [`style-preview-catalog`](references\u002Fstyle-preview-catalog.md) - Create a preview catalog for all styles\n\n### 4. Typography Scale (HIGH)\n\n- [`type-scale-enum`](references\u002Ftype-scale-enum.md) - Define a type scale enum wrapping system styles\n- [`type-system-styles-first`](references\u002Ftype-system-styles-first.md) - Use system text styles before custom ones\n- [`type-custom-font-registration`](references\u002Ftype-custom-font-registration.md) - Register custom fonts with a centralized extension\n- [`type-max-styles-per-screen`](references\u002Ftype-max-styles-per-screen.md) - Limit typography variations to 3-4 per screen\n- [`type-avoid-font-design-mixing`](references\u002Ftype-avoid-font-design-mixing.md) - Use one font design per app\n\n### 5. Spacing & Sizing System (HIGH)\n\n- [`space-token-enum`](references\u002Fspace-token-enum.md) - Define spacing tokens as a caseless enum\n- [`space-radius-tokens`](references\u002Fspace-radius-tokens.md) - Define corner radius tokens by component type\n- [`space-no-magic-numbers`](references\u002Fspace-no-magic-numbers.md) - Zero hardcoded numbers in view layout code\n- [`space-insets-pattern`](references\u002Fspace-insets-pattern.md) - Use EdgeInsets constants for composite padding\n- [`space-size-tokens`](references\u002Fspace-size-tokens.md) - Define size tokens for common dimensions\n\n### 6. Consistency & Governance (HIGH)\n\n- [`govern-naming-conventions`](references\u002Fgovern-naming-conventions.md) - Enforce consistent naming conventions across all tokens\n- [`govern-spm-package-boundary`](references\u002Fgovern-spm-package-boundary.md) - Isolate the design system as a local SPM package\n- [`govern-single-source-of-truth`](references\u002Fgovern-single-source-of-truth.md) - Every visual value has one definition point\n- [`govern-lint-for-tokens`](references\u002Fgovern-lint-for-tokens.md) - Use SwiftLint rules to enforce token usage\n- [`govern-design-system-directory`](references\u002Fgovern-design-system-directory.md) - Isolate tokens in a dedicated directory\n- [`govern-migration-incremental`](references\u002Fgovern-migration-incremental.md) - Migrate to tokens incrementally\n- [`govern-prevent-local-tokens`](references\u002Fgovern-prevent-local-tokens.md) - Prevent feature modules from defining local tokens\n\n### 7. Asset Management (MEDIUM-HIGH)\n\n- [`asset-separate-catalogs`](references\u002Fasset-separate-catalogs.md) - Separate asset catalogs for colors, images, icons\n- [`asset-sf-symbols-first`](references\u002Fasset-sf-symbols-first.md) - Use SF Symbols before custom icons\n- [`asset-icon-export-format`](references\u002Fasset-icon-export-format.md) - Use PDF\u002FSVG vectors, never multiple PNGs\n- [`asset-image-optimization`](references\u002Fasset-image-optimization.md) - Use compression and on-demand resources\n- [`asset-naming-convention`](references\u002Fasset-naming-convention.md) - Consistent naming convention for all assets\n\n### 8. Theme & Brand Infrastructure (MEDIUM)\n\n- [`theme-environment-key`](references\u002Ftheme-environment-key.md) - Use EnvironmentKey for theme propagation\n- [`theme-dont-over-theme`](references\u002Ftheme-dont-over-theme.md) - Avoid building a theme system unless needed\n- [`theme-tint-for-brand`](references\u002Ftheme-tint-for-brand.md) - Use .tint() as primary brand expression\n- [`theme-light-dark-only`](references\u002Ftheme-light-dark-only.md) - Use ColorScheme for light\u002Fdark, not custom theming\n- [`theme-brand-layer-separation`](references\u002Ftheme-brand-layer-separation.md) - Separate brand identity from system mechanics\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fios-design-system",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ios-design-system",{"tool":42,"command":43},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ios-design-system",{"tool":45,"command":46},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ios-design-system","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-design-system\u002FSKILL.md",true,[],[51,60,69,78,84,90],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":23},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[57,58,59],"model","model hierarchy","model hierarchy skill",{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":23},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[66,67,68],"MCP","zoom","zoom mcp",{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":23},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[75,76,77,67],"sdk","zoom apps sdk","apps",{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":23},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[80],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":23},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[86],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":23},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[92]]