Apple Hig Designer 标志

Apple Hig Designer

社区
axiaoge2
apple-hig-designer

按照 Human Interface Guidelines 设计 Apple 风格的 iOS/macOS 界面。创建符合 HIG 规范的组件,使用 SF Symbols、San Francisco 字体,并提供完善的无障碍支持。还可选择添加现代效果。适用于设计 Apple 风格 UI、iOS/macOS 界面、符合 HIG 规范的组件,或实现设计系统规范。

Add to TypingMind

概览

发布者axiaoge2
代码仓库Apple-Hig-Designer
技能名称apple-hig-designer
星标数
208
复刻数
23
附带文件
7
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 7 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/axiaoge2/Apple-Hig-Designer.git \
  .claude/skills/apple-hig-designer
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Apple HIG Designer

A professional-grade frontend design skill that enables Claude Code to create interfaces following Apple's Human Interface Guidelines (HIG), achieving the quality standards of Apple's design team.

When to Use This Skill

Activate this skill when users request:

  • Apple-style or iOS/macOS-style interfaces
  • HIG-compliant UI components
  • SF Symbols integration
  • San Francisco typography implementation
  • Modern glass effects (optional, user must explicitly request)

Trigger phrases:

  • "Design an Apple-style..."
  • "Create a HIG-compliant..."
  • "iOS/macOS style component"
  • "苹果风格的界面"
  • "符合 HIG 的设计"

Core Design Principles

The Four Pillars of Apple Design

  1. Clarity (清晰)

    • Every element has a purpose
    • Eliminate unnecessary complexity
    • Users understand immediately without instructions
    • Use clear visual hierarchy
  2. Deference (尊重内容)

    • UI elements support, not compete with content
    • Minimize chrome and visual noise
    • Let content be the hero
    • Use subtle backgrounds and borders
  3. Depth (层次)

    • Create clear visual hierarchy through layers
    • Use shadows, blur, and translucency purposefully
    • Motion reinforces spatial relationships
    • Z-axis communicates importance
  4. Consistency (一致性)

    • Familiar patterns across platforms
    • Predictable interactions
    • Unified visual language
    • Respect platform conventions

Design System Specifications

Typography System

Font Family: San Francisco (SF Pro)

css
/* System Font Stack for Web */
:root {
  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
}

/* Font Size Scale (iOS) */
--text-caption2: 11px;    /* Caption 2 */
--text-caption1: 12px;    /* Caption 1 */
--text-footnote: 13px;    /* Footnote */
--text-subhead: 15px;     /* Subheadline */
--text-body: 17px;        /* Body - Default */
--text-headline: 17px;    /* Headline (semibold) */
--text-title3: 20px;      /* Title 3 */
--text-title2: 22px;      /* Title 2 */
--text-title1: 28px;      /* Title 1 */
--text-large-title: 34px; /* Large Title */

Typography Rules:

  • Use SF Pro Display for sizes ≥ 20pt
  • Use SF Pro Text for sizes < 20pt
  • Maintain consistent line-height (1.2-1.5)
  • Use weight for hierarchy, not just size

Color System

css
/* Apple System Colors - Light Mode */
:root {
  /* Primary Colors */
  --system-blue: #007AFF;
  --system-green: #34C759;
  --system-indigo: #5856D6;
  --system-orange: #FF9500;
  --system-pink: #FF2D55;
  --system-purple: #AF52DE;
  --system-red: #FF3B30;
  --system-teal: #5AC8FA;
  --system-yellow: #FFCC00;

  /* Gray Scale */
  --system-gray: #8E8E93;
  --system-gray2: #AEAEB2;
  --system-gray3: #C7C7CC;
  --system-gray4: #D1D1D6;
  --system-gray5: #E5E5EA;
  --system-gray6: #F2F2F7;

  /* Semantic Colors */
  --label-primary: #000000;
  --label-secondary: rgba(60, 60, 67, 0.6);
  --label-tertiary: rgba(60, 60, 67, 0.3);
  --label-quaternary: rgba(60, 60, 67, 0.18);

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F2F2F7;
  --bg-tertiary: #FFFFFF;

  /* Separators */
  --separator: rgba(60, 60, 67, 0.29);
  --separator-opaque: #C6C6C8;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --system-blue: #0A84FF;
    --system-green: #30D158;
    --system-indigo: #5E5CE6;
    --system-orange: #FF9F0A;
    --system-pink: #FF375F;
    --system-purple: #BF5AF2;
    --system-red: #FF453A;
    --system-teal: #64D2FF;
    --system-yellow: #FFD60A;

    --system-gray: #8E8E93;
    --system-gray2: #636366;
    --system-gray3: #48484A;
    --system-gray4: #3A3A3C;
    --system-gray5: #2C2C2E;
    --system-gray6: #1C1C1E;

    --label-primary: #FFFFFF;
    --label-secondary: rgba(235, 235, 245, 0.6);
    --label-tertiary: rgba(235, 235, 245, 0.3);
    --label-quaternary: rgba(235, 235, 245, 0.18);

    --bg-primary: #000000;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;

    --separator: rgba(84, 84, 88, 0.6);
    --separator-opaque: #38383A;
  }
}

Spacing System

8pt Grid System:

css
:root {
  --space-1: 4px;   /* Extra small */
  --space-2: 8px;   /* Small */
  --space-3: 12px;  /* Medium-small */
  --space-4: 16px;  /* Medium */
  --space-5: 20px;  /* Medium-large */
  --space-6: 24px;  /* Large */
  --space-8: 32px;  /* Extra large */
  --space-10: 40px; /* 2X large */
  --space-12: 48px; /* 3X large */
}

Touch Target Requirements:

  • iOS: Minimum 44×44 points
  • visionOS: Minimum 60 points tap area
  • Always add sufficient padding for small visual elements

Border Radius (Concentric Design)

css
:root {
  /* Base radius values */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px; /* Capsule */
}

/* Concentric Rule: inner_radius + padding = outer_radius */
/* Example: 8px inner + 8px padding = 16px outer */

Component Patterns

The following components should follow Apple HIG conventions. For complete CSS implementations, see resources/design-tokens.css and resources/ui-patterns.md. For React component examples, see resources/components.jsx.

Buttons

  • Primary: Capsule shape (border-radius: 9999px), min-height: 44px, system-blue background, white text, 600 weight
  • Secondary: Same capsule shape, system-blue text on rgba(0, 122, 255, 0.1) background
  • Press feedback: scale(0.98) on :active

Glass Effect (Optional - Only When Requested)

  • Only use when user explicitly requests glass/frosted effects
  • Default designs should use solid backgrounds for readability and performance
  • backdrop-filter: blur(20px) saturate(180%) with semi-transparent background
  • Always provide non-glass fallback

Cards

  • Default: Solid background (--bg-tertiary), border-radius: 16px, subtle box-shadow
  • Grouped style: --bg-secondary outer with --bg-tertiary inner items, separated by --separator

Input Fields

  • min-height: 44px, --bg-secondary background, border-radius: 12px
  • Focus state: box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.3)

Tab Bars

  • Position fixed at bottom, height: 49px + safe-area padding
  • Minimum 44x44pt touch targets per tab
  • Always display text labels (never icon-only)
  • Use filled SF Symbols for selected state, outline for unselected
  • Support badge for notifications (red oval, white text)

Toolbars

  • Three sections: leading (back/title), center (tools), trailing (actions)
  • Maximum 3 item groups
  • Use SF Symbols without borders
  • Primary action uses .prominent style on trailing side
  • Back button: circular with symbol only (no text)

Sheets

  • Detents: large (100%), medium (50%)
  • Include grabber indicator (36x5px, centered)
  • Done button: top-right; Cancel button: top-left
  • Semi-transparent backdrop rgba(0,0,0,0.4)

Alerts

  • Use only for critical information (sparingly)
  • Maximum 3 buttons; use specific verb titles, avoid "OK"
  • Cancel: leading side; Destructive: only for unintended destructive actions
  • Width: 270px, border-radius: 14px

Lists and Tables

  • Minimum row height: 44px
  • Info button: reveals details without navigation
  • Disclosure indicator (>): navigates to subview
  • Grouped style: 10px border-radius, inset separators start at 60px

Animation Guidelines

Timing Functions

css
:root {
  /* Apple's preferred easing */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in: cubic-bezier(0.42, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);

  /* Spring-like easing */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

Duration Scale

css
:root {
  --duration-instant: 100ms;  /* Micro-interactions */
  --duration-fast: 200ms;     /* Hover, focus states */
  --duration-normal: 300ms;   /* Standard transitions */
  --duration-slow: 500ms;     /* Complex animations */
}

Interaction Feedback

css
/* Press feedback */
.interactive {
  transition: transform var(--duration-instant) var(--ease-out);
}

.interactive:active {
  transform: scale(0.97);
}

/* Hover glow */
.interactive:hover {
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

SF Symbols Integration

Rendering Modes

  1. Monochrome: Single color for all layers
  2. Hierarchical: Opacity variations for depth
  3. Palette: Custom colors per layer
  4. Multicolor: Apple's intrinsic symbol colors

Usage Guidelines

  • Toolbar/Navigation: Use outline variant
  • Tab Bar: Use fill variant
  • Match text size: Symbols auto-align with SF font
  • Provide text alternatives: Always include aria-label

Web Implementation (Icon Font Alternative)

html
<!-- Using SF Symbols via system font -->
<span class="sf-symbol" aria-label="Settings">􀣋</span>

<!-- Or use equivalent system icons -->
<svg class="icon" aria-hidden="true">
  <use href="#icon-gear"></use>
</svg>

Accessibility Requirements

Color Contrast

  • Normal text: 4.5:1 minimum (WCAG AA)
  • Large text: 3:1 minimum
  • Interactive elements: Clearly distinguishable states

Motion

css
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

Semantic HTML

html
<!-- Always use semantic elements -->
<button type="button">Action</button>
<nav aria-label="Main navigation">...</nav>
<main role="main">...</main>

Output Format

When generating Apple-style UI code, always include:

  1. Complete, runnable code (CSS/React/Vue)
  2. Light/Dark mode support via CSS custom properties
  3. Design rationale explaining HIG compliance
  4. Responsive breakpoints for different devices
  5. Accessibility attributes (aria-*, role, etc.)

Default Behavior

  • Use solid backgrounds by default for better readability
  • Glass/blur effects only when user explicitly requests
  • Always provide non-glass fallback for browsers without backdrop-filter support

Example Output Structure

jsx
/**
 * Apple HIG Compliant Component
 *
 * Design Decisions:
 * - Uses SF Pro system font stack for native feel
 * - 44pt minimum touch target for accessibility
 * - Capsule shape for primary actions (HIG recommendation)
 * - Solid background for optimal readability
 * - Supports prefers-color-scheme for auto theming
 */

const AppleButton = ({ children, variant = 'primary', ...props }) => {
  return (
    <button
      className={`btn btn-${variant}`}
      {...props}
    >
      {children}
    </button>
  );
};

Best Practices Checklist

Before finalizing any design output, verify:

  • Typography: Using SF Pro with correct size thresholds
  • Colors: System colors with Light/Dark variants
  • Spacing: Following 8pt grid
  • Touch targets: Minimum 44×44pt
  • Border radius: Concentric relationships maintained
  • Animations: Using Apple-standard easing curves
  • Accessibility: WCAG AA compliant, reduced motion support
  • Consistency: Matches platform conventions
  • Backgrounds: Solid by default, glass only when requested

Additional Resources

Local References (read these for detailed implementations)

External References


This skill ensures Claude Code produces interfaces that meet Apple's exacting design standards, creating cohesive, accessible, and beautiful user experiences.

附带文件

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

常见问题

Apple Hig Designer AI 技能有什么作用?

按照 Human Interface Guidelines 设计 Apple 风格的 iOS/macOS 界面。创建符合 HIG 规范的组件,使用 SF Symbols、San Francisco 字体,并提供完善的无障碍支持。还可选择添加现代效果。适用于设计 Apple 风格 UI、iOS/macOS 界面、符合 HIG 规范的组件,或实现设计系统规范。

为什么在 TypingMind 中使用 Apple Hig Designer?

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

如何在 TypingMind 中安装 Apple Hig Designer?

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

哪些 AI 模型可以使用 Apple Hig Designer?

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

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

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

Apple Hig Designer AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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