Apple Design 标志

Apple Design

组织
XOVIET-GAME
apple-design

完整的 Apple 人机界面指南(HIG)和 Apple 设计系统标准。设计、构建或审核 iOS、iPadOS、macOS、watchOS、visionOS,或采用 Apple 风格的 Web 和移动应用 UI/UX 时使用。

Add to TypingMind

概览

发布者XOVIET-GAME
代码仓库apple-design-skill
技能名称apple-design
星标数
5
复刻数
0
附带文件
190
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 190 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 XOVIET-GAME 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Apple Design AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/XOVIET-GAME/apple-design-skill/tree/main
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/XOVIET-GAME/apple-design-skill.git \
  .claude/skills/apple-design
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Apple Design,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Apple Design。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Apple Design 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Apple Design System & Human Interface Guidelines (HIG)

This skill equips AI coding agents with the exact principles, visual specifications, component architectures, typography metrics, color tokens, motion curves, and automated compliance auditing defined by Apple's Human Interface Guidelines (HIG) across iOS, iPadOS, macOS, watchOS, visionOS, and modern Apple-grade Web UI.


🎯 Operational Modes

Mode 1 — Design & Build from Scratch

When tasked with creating new screens, apps, or web interfaces in Apple style:

  1. Choose the platform-native navigation paradigm (e.g. Bottom Tab Bar for iOS, Sidebar for macOS/iPad, Ornaments for visionOS).
  2. Establish the 8pt spatial grid and continuous squircle curvature (G2 continuity).
  3. Apply the SF Pro / New York typography scale with optical tracking rules.
  4. Implement semantic Dynamic Colors (Light & OLED Dark mode) and Liquid Frosted Glass materials.
  5. Apply Apple spring physics (cubic-bezier(0.25, 1, 0.5, 1)) and tactile active feedback (scale(0.97)).

Mode 2 — Apple HIG Compliance Audit & Scoring

When reviewing an existing codebase, mockup, or component:

  1. Run the audit tool node skills/apple-design/scripts/audit-apple-design.mjs to perform automated static scanning with a 0–100 Scoring Rubric.
  2. Perform exact mathematical WCAG contrast checks and 44×44pt touch-target validations.
  3. Fill out the Apple HIG Audit Scorecard across the 5 core pillars.
  4. Deliver prioritized findings with Confidence Tagging:
    • 🟢 Tool-verified: Statistically measured via CLI tool (e.g., contrast ratio, button dimension, static CSS rules).
    • 🟡 Needs device test: Requires hardware interaction (e.g., Dynamic Type at 300%, Reduce Transparency toggle, VoiceOver speech hierarchy).
    • 🔴 Assumed: Contextual design trade-off or subjective aesthetic evaluation.

🛠️ The Apple HIG Compliance CLI Engine

The built-in audit engine (skills/apple-design/scripts/audit-apple-design.mjs) provides four subcommands:

bash
# 1. Full Codebase Static Scan with 0-100 Scorecard (Default)
npm run audit
# or: node skills/apple-design/scripts/audit-apple-design.mjs [path]

# 2. WCAG Relative Luminance Contrast Ratio Check
node skills/apple-design/scripts/audit-apple-design.mjs contrast "#8E8E93" "#FFFFFF"
# -> Contrast Ratio: 3.26:1 [🔴 FAILED - Needs >= 4.5:1]

# 3. Tap Target Sizing Validation (44x44 pt minimum)
node skills/apple-design/scripts/audit-apple-design.mjs target 32 32
# -> Tap Target: 32x32 pt [🔴 FAILED - Minimum 44x44 pt]

# 4. Batch JSON Automated Verification
node skills/apple-design/scripts/audit-apple-design.mjs batch audit.json

Audit Scoring Rubric:

  • Base score: 100 points.
  • Point deduction: -10 points per violation.
  • Scorecard Classification:
    • 🟢 90 – 100 pts: Ship (Sẵn sàng phát hành) — Đạt chuẩn xuất sắc.
    • 🟡 70 – 89 pts: Cần sửa trước khi release (Fix before release) — Cần khắc phục trước khi đưa lên App Store / production.
    • 🔴 < 70 pts: Cần thiết kế lại (Systematic redesign required) — Vi phạm nghiêm trọng kiến trúc hoặc khả năng tiếp cận.

1. Core Design Philosophy

Apple interfaces are built upon three primary pillars:

  1. Clarity:

    • Text is legible at every size; icons are precise, distinct, and universally understood.
    • Adornments are subtle and purposeful. Content always takes visual priority over decorative Chrome.
    • Negative space (whitespace) provides breathing room and clarifies visual hierarchy.
  2. Deference:

    • Fluid motion, translucent materials, and crisp typography elevate content without competing with it.
    • Backgrounds defer to content; chrome recedes when the user is engaged in primary tasks.
  3. Depth:

    • Distinct visual layers, realistic lighting, specular highlights, and physical spring physics convey spatial hierarchy and tactile realism.
    • Elevations and materials communicate interactive affordances without harsh dropped shadows or abrasive outlines.

2. Universal Apple Design Tenets & Critical Rules

🚫 Forbidden Anti-Patterns (Never Do These)

  • NO Purple/Violet On Dark Themes: Never use purple fonts or violet accent buttons on dark backgrounds. Use Apple System Blue (#0A84FF) or semantic system tints.
  • NO Harsh Drop Shadows: Never use dense black un-diffused box shadows (box-shadow: 0 4px 10px rgba(0,0,0,0.5)). Use multi-layered ambient diffusion (box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04)).
  • NO Sharp / Geometric Corners: Never leave interactive controls, cards, or inputs with 0px radius or arbitrary non-continuous corners.
  • NO Untracked Large Typography: Never render large headings (>24px) without tight letter-spacing (-0.02em to -0.03em / -0.5px to -1.2px).
  • NO Non-Standard Touch Targets: Never create clickable elements smaller than 44×44 pt (iOS standard) or 28×28 pt (macOS compact pointer).
  • NO Plain Static CSS Transitions: Never use ease-in-out for physical UI interactions; always use fluid spring physics or Apple easing curves.

3. Visual Foundations

A. Typography System (San Francisco & New York)

  • Primary Interface Font: SF Pro (-apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif)
  • Monospace Font: SF Mono (ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace)
  • Serif Font: New York ("New York", ui-serif, Georgia, Cambria, serif)
Typographic Scale & Optical Sizing Rules:
StyleSize (pt/px)WeightLine HeightTracking / Letter Spacing
Large Title34pxBold (700)41px-0.022em (-0.75px)
Title 128pxBold / SemiBold34px-0.020em (-0.56px)
Title 222pxBold / SemiBold28px-0.018em (-0.40px)
Title 320pxSemiBold (600)25px-0.015em (-0.30px)
Headline17pxSemiBold (600)22px-0.012em (-0.20px)
Body17pxRegular (400)22px-0.010em (-0.17px)
Callout16pxRegular (400)21px-0.008em (-0.13px)
Subheadline15pxRegular (400)20px-0.005em (-0.08px)
Footnote13pxRegular (400)18px0.000em (0.00px)
Caption 112pxRegular (400)16px0.005em (+0.06px)
Caption 211pxRegular / Medium13px0.010em (+0.11px)

4. Materials, Translucency & Specular Glass

Apple materials blur underlying content to create visual grounding while maintaining vibrancy:

css
/* Authentic Apple Ultra-Thin Frosted Glass Material */
.apple-material-ultrathin {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

@media (prefers-color-scheme: dark), [data-theme="dark"] {
  .apple-material-ultrathin {
    background: rgba(28, 28, 30, 0.75);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(255, 255, 255, 0.05) inset;
  }
}

5. Animation Physics (Apple Spring Curves)

Never use linear or standard ease curves for interactive UI. Use authentic Apple spring physics:

Spring Parameters Reference:

  • Interactive / Tap feedback: mass: 1, stiffness: 350, damping: 35 (CSS approx: cubic-bezier(0.25, 1, 0.5, 1))
  • Sheet Presentation / Modal Slide: mass: 1.2, stiffness: 280, damping: 28 (CSS approx: cubic-bezier(0.32, 0.72, 0, 1))
  • Snappy Switch / Toggle: mass: 0.8, stiffness: 450, damping: 30
css
/* Apple Native Motion Classes */
.apple-spring-interactive {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.25s ease;
}

.apple-spring-interactive:active {
  transform: scale(0.965);
}

6. Bundled Resources & Full Apple HIG Library

  • Master HIG Documentation Catalog (skills/apple-design/references/INDEX.md): Full searchable index of all 172 guideline topics.
  • Apple HIG Audit Scorecard Template: Standard 5-pillar evaluation scorecard.
  • Assets & Presets:
    • skills/apple-design/assets/apple-tokens.css: Complete CSS variable design token stylesheet.
    • skills/apple-design/assets/apple-components.css: Ready-to-use CSS components (Buttons, Glass cards, Segmented, Sheets).
    • skills/apple-design/assets/tailwind.preset.apple.js: Tailwind configuration preset.
    • skills/apple-design/assets/swiftui-cheat-sheet.md: Idiomatic SwiftUI patterns.
  • CLI Automation Tools:
    • npm run audit: Scans codebases for Apple HIG violations and generates a 0–100 score.
    • npm run fetch-hig: Fetches/updates the entire Apple HIG documentation and illustrations from Apple CDN.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

还有 130 个文件。

常见问题

Apple Design AI 技能有什么作用?

完整的 Apple 人机界面指南(HIG)和 Apple 设计系统标准。设计、构建或审核 iOS、iPadOS、macOS、watchOS、visionOS,或采用 Apple 风格的 Web 和移动应用 UI/UX 时使用。

为什么在 TypingMind 中使用 Apple Design?

因为您只需安装一次,就能搭配任何模型使用。Apple Design 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Apple Design?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/XOVIET-GAME/apple-design-skill/tree/main。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Apple Design?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Apple Design 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Apple Design 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Apple Design AI 技能免费吗?

是的。XOVIET-GAME 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇