ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

apple-hig

Apple Human Interface Guidelines 实战参考。涵盖 macOS/iOS 设计规范、System Colors、排版层级、控件规格、布局间距、Dark Mode 适配、辅助功能和平台差异。适用于开发 macOS 桌面应用(Electron/SwiftUI/AppKit)和 iOS 应用时的 UI 设计决策。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bingfoon/apple-hig
Or

Apple Human Interface Guidelines 实战参考

从 Apple 官方 HIG 和生产级桌面应用实战中提炼的设计规范速查。

适用场景

  • macOS 桌面应用 UI 设计(Electron / SwiftUI / AppKit)
  • iOS 应用 UI 设计
  • 需要"原生感"的跨平台应用
  • 审计现有 UI 是否符合 Apple 设计语言

不适用

  • Android / Windows 应用(参考 Material Design / Fluent Design)
  • Web 专属设计(不追求 native 感)

1. 核心设计原则

Apple HIG 的三大支柱:

原则含义实践
Clarity(清晰)文字可读、图标清晰、功能一目了然用 SF 字体、标准图标、足够对比度
Deference(顺从)UI 服务内容,不喧宾夺主减少装饰、留白充足、动画克制
Depth(层次)通过视觉层级传达结构阴影、模糊、动画暗示前后关系

与其他平台的根本区别

Apple: 做减法,每一个像素都要有理由
Material: 做加法,用动效和色彩引导注意力
Fluent: 做透明,用 Acrylic/Mica 融入环境

2. 颜色系统

Apple System Colors

这些颜色在 Light/Dark 模式下自动适配,优先使用

颜色Light HEXDark HEX用途
Blue#007AFF#0A84FF主强调色、链接、可交互元素
Green#34C759#30D158成功、确认
Orange#FF9500#FF9F0A警告
Red#FF3B30#FF453A错误、危险操作、删除
Purple#AF52DE#BF5AF2辅助强调
Teal#5AC8FA#64D2FF次要信息
Yellow#FFCC00#FFD60A注意
Pink#FF2D55#FF375F情感、收藏
Indigo#5856D6#5E5CE6特殊强调

语义色

用途LightDark
Label(主文字)#000000#FFFFFF
Secondary Labelrgba(0,0,0,0.5)rgba(255,255,255,0.55)
Tertiary Labelrgba(0,0,0,0.25)rgba(255,255,255,0.25)
Quaternary Labelrgba(0,0,0,0.1)rgba(255,255,255,0.1)
Separatorrgba(0,0,0,0.1)rgba(255,255,255,0.1)
Background(窗口)#FFFFFF#1E1E1E
Secondary BG#F5F5F5#2C2C2E
Tertiary BG#FFFFFF#3A3A3C

使用原则

✅ 用 System Colors 做交互元素的强调色
✅ 用语义色做文字、背景、分隔线
❌ 不要硬编码 #007AFF — 在 Dark Mode 下它应该变成 #0A84FF
❌ 不要用 System Colors 做静态数据展示(如参数值 "0.3"、"18s")

铁律:主强调色严格保留给强交互元素(按钮、Checkbox 选中、Slider 填充段、Focus Ring),不用于静态文字/数值。


3. 排版

字体栈

font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;

macOS 上会自动使用 SF Pro,iOS 上使用 SF。不要手动指定 SF Pro 的 TTF 文件。

字号层级(macOS)

层级字号字重颜色用途
Large Title26pxBoldLabel页面大标题(iOS 常用,macOS 少用)
Title 122pxRegularLabel区块标题
Title 217pxRegularLabel次要标题
Title 3 / Headline15pxSemiboldLabel工具栏标题、卡片标题
Body13pxRegularLabel正文、控件默认
Callout12pxRegularLabel注释文字
Subheadline11pxRegularSecondary Label辅助说明
Footnote10pxRegularTertiary Label脚注、时间戳
Caption 110pxRegularTertiary Label图片说明
Caption 210pxMediumTertiary Label表格表头

字号层级(iOS)

Metadata

Author@bingfoon
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bingfoon-apple-hig": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.