界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

ios-design-system

ios-design-system

【设计与创意】Enforce design token usage in SwiftUI apps using iOS Human Interface Guidelines. Use when implementing design tokens, colors, or typography in SwiftUI.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: ios-design-system description: Enforce design token usage in SwiftUI apps using iOS Human Interface Guidelines. Use when implementing design tokens, colors, or typography in SwiftUI. metadata: triggers: files: - '/*View.swift' - '/Theme/' - '/DesignSystem/**' keywords: - Color - Font - SwiftUI - ViewModifier - Theme

iOS Design System (SwiftUI)

Priority: P2 (MEDIUM)

Enforce design token usage in SwiftUI. Follow Apple HIG for iOS-native feel.

Token Structure

Define tokens in Theme/ folder: Colors via Asset Catalog (Color("Name")), Spacing enum for all margins, Font extensions for typography. See Token Structure & Examples.

Anti-Patterns

  • No Hex Colors: Define in asset catalog, use Color("Name").
  • No Magic Spacing: Use Spacing.md not spacing: 16.
  • No System Colors for Brand: Use .appPrimary not Color.blue.

References

Canonical response anchors

When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:

  • /Theme/

  • Spacing.md

  • spacing: 16

  • Additional task-grounded exact anchors: Color("Name")

我的收藏