返回顶部
a

apple-hig苹果人机界面指南

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
574
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

apple-hig

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 Label
rgba(0,0,0,0.5) | rgba(255,255,255,0.55) | | Tertiary Label | rgba(0,0,0,0.25) | rgba(255,255,255,0.25) | | Quaternary Label | rgba(0,0,0,0.1) | rgba(255,255,255,0.1) | | Separator | rgba(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. 排版

字体栈

css
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 1
22px | Regular | Label | 区块标题 | | Title 2 | 17px | Regular | Label | 次要标题 | | Title 3 / Headline | 15px | Semibold | Label | 工具栏标题、卡片标题 | | Body | 13px | Regular | Label | 正文、控件默认 | | Callout | 12px | Regular | Label | 注释文字 | | Subheadline | 11px | Regular | Secondary Label | 辅助说明 | | Footnote | 10px | Regular | Tertiary Label | 脚注、时间戳 | | Caption 1 | 10px | Regular | Tertiary Label | 图片说明 | | Caption 2 | 10px | Medium | Tertiary Label | 表格表头 |

字号层级(iOS)

层级字号字重
Large Title34pxBold
Title 1
28px | Regular | | Title 2 | 22px | Regular | | Title 3 | 20px | Regular | | Headline | 17px | Semibold | | Body | 17px | Regular | | Callout | 16px | Regular | | Subheadline | 15px | Regular | | Footnote | 13px | Regular | | Caption 1 | 12px | Regular | | Caption 2 | 11px | Regular |

实战要点

  • - macOS 默认正文 13px,iOS 默认正文 17px — 差异大,不要混用
  • Section 标题用 11px font-medium text-black/40 降噪(macOS),禁止 uppercase tracking-wide font-bold
  • 静态数值(Slider 值、时间)用 12px font-mono text-black/50
  • 辅助说明 10-11px font-normal text-black/25~30

4. 控件规格

macOS 标准控件尺寸

控件高度内边距圆角
Button(Regular)22px12px 水平5px
Button(Large)
28px | 16px 水平 | 7px | | TextField | 22px | 4px 内 | 5px | | Checkbox | 14×14px | — | 3px | | Radio | 16×16px(circle) | — | 50% | | Switch(macOS Ventura+) | 20×34px | — | 10px | | Slider | 4px 轨道高 | — | 2px | | Segmented Control | 22px | 6px 水平 | 5px | | Popup Button | 22px | 内含箭头 | 5px |

iOS 标准控件

控件最小高度触控目标
Button44px44×44px
TextField
44px | — | | Navigation Bar | 44px | — | | Tab Bar | 49px | — | | Table Row | 44px | 全宽 |

⚠️ 触控目标铁律

最小触控目标:44×44pt(iOS) / 24×24px(macOS 鼠标)

即使视觉上更小,可点击区域也必须达到最小尺寸。

Segmented Control(macOS 仿真规格)

属性
底座色#e8e8ed
底座内距
p-[3px] | | 底座圆角 | rounded-lg | | 选中药丸 | bg-white rounded-[7px] | | 药丸阴影 | 0 1px 3px rgba(0,0,0,0.08), 0 0.5px 1px rgba(0,0,0,0.12) | | 文字 | text-[13px] font-medium | | 选中文字 | text-[#1d1d1f] | | 未选中文字 | text-black/50 | | 布局 | flex-1 平分等宽

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 apple-hig-1776284807 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 apple-hig-1776284807 技能

通过命令行安装

skillhub install apple-hig-1776284807

下载

⬇ 下载 apple-hig v1.0.0(免费)

文件大小: 6.46 KB | 发布时间: 2026-4-16 15:56

v1.0.0 最新 2026-4-16 15:56
Apple Human Interface Guidelines 实战参考。System Colors、排版层级、控件规格、macOS vs iOS 差异、HIG 审计 Checklist。

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部