Communitygithub.com

COTA-App/LandingPage

Apple 人機介面設計準則的設計基礎。當使用者詢問關於「HIG 色彩」、「Apple 字體排版」、「SF Symbols」、深色模式指引、無障礙設計、Apple 設計基礎、應用程式圖示、佈局指南、材質、動態、隱私、從右到左 (RTL)、包容性設計、品牌、影像、空間佈局或寫作風格時,請使用此技能。

LandingPage 是什麼?

此技能提供 Apple 人機介面設計準則 (HIG) 中關於「設計基礎」的完整指引,涵蓋色彩、字體排版、圖示、材質、動態、隱私等核心面向。它匯集了 Apple 官方設計原則的詳細參考資料,並說明這些原則如何交互作用以打造一致、無障礙且具平台特色的使用者體驗。技能支援所有 Apple 平台 (iOS、iPadOS、macOS、watchOS、visionOS),並提供 SwiftUI、UIKit 與 AppKit 的具體程式碼範例。透過引用對應的參考文件 (例如 color.md、typography.md、dark-mode.md),開發者可以獲得精確的實作建議,並確保應用程式符合 WCAG 無障礙標準。此技能特別適合需要解決深色模式色彩問題、選擇系統字體、實作動態字型、或設計與系統風格一致圖示的開發者。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/COTA-App/LandingPage/tree/HEAD/.claude/skills/hig-foundations

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Apple HIG:設計基礎

在提問前,請檢查 .claude/apple-design-context.md。使用現有上下文,僅詢問尚未涵蓋的資訊。

關鍵原則

  1. 將內容優先於裝飾。 減少視覺雜亂。使用系統提供的材質和微妙的分隔線,而不是厚重的邊框和背景。

  2. 從一開始就建立無障礙設計。 從第一天起就為 VoiceOver、動態字型、減少動態效果、增加對比度和切換控制進行設計。每個互動元件都需要一個無障礙標籤。

  3. 使用系統色彩和材質。 系統色彩會適應淺色/深色模式、增加對比度和鮮明度。優先使用語意色彩 (label、secondaryLabel、systemBackground),而非硬編碼數值。

  4. 使用平台字體和圖示。 預設使用 SF Pro、SF Compact、SF Mono。襯線字體使用 New York。遵循建議大小的字體階層。圖示使用 SF Symbols。

  5. 符合平台慣例。 使外觀和行為與系統標準一致。為每個動作提供直接、響應式的操作和清晰的反饋。

  6. 尊重隱私。 僅在必要時請求權限,清楚說明原因,在要求資料前先提供價值。設計以最小資料收集為目標。

  7. 支援國際化。 適應文字擴展、從右到左的腳本以及不同的日期/數字格式。針對動態內容尺寸使用 Auto Layout。

  8. 有目的地使用動態效果。 動畫應傳達意義和空間關係。透過提供交叉淡化替代方案來尊重「減少動態效果」。

參考索引

參考文件主題關鍵內容
accessibility.md無障礙設計VoiceOver、動態字型、色彩對比、動作無障礙、切換控制、語音描述
app-icons.md應用程式圖示圖示網格、平台特定尺寸、單一焦點、無透明度
branding.md品牌在 Apple 設計語言中整合品牌形象、低調的品牌、自訂色調
color.md色彩系統色彩、動態色彩、語意色彩、自訂調色盤、對比比率
dark-mode.md深色模式浮起表面、語意色彩、適應調色盤、鮮明度、兩種模式下測試
icons.md圖示字形圖示、SF Symbols 整合、自訂圖示設計、圖示粗細、光學對齊
images.md影像影像解析度、@2x/@3x 素材、向量素材、影像無障礙
immersive-experiences.md沉浸式體驗AR/VR 設計、空間沉浸、舒適區、漸進式沉浸等級
inclusion.md包容性多元呈現、非性別語言、文化敏感性、包容性預設值
layout.md佈局邊距、間距、對齊、安全區域、適應性佈局、可讀內容指南
materials.md材質鮮明度、模糊、半透明、系統材質、材質厚度
motion.md動態效果動畫曲線、轉場、連續性、減少動態效果支援、基於物理的動態效果
privacy.md隱私權限請求、用途描述、隱私營養標籤、最小資料收集
right-to-left.md從右到左RTL 佈局鏡像、雙向文字、會翻轉的圖示、例外情況
sf-symbols.mdSF Symbols符號類別、渲染模式、可變色彩、自訂符號、粗細匹配
spatial-layout.md空間佈局visionOS 視窗放置、深度、人體工學區域、Z 軸設計
typography.md字體排版SF Pro、動態字型大小、文字樣式、自訂字體、字體粗細階層、行距
writing.md寫作UI 文案指南、語氣、大小寫規則、錯誤訊息、按鈕標籤、簡潔性

整合應用基礎

考慮原則如何互動:

  1. 色彩 + 深色模式 + 無障礙設計 -- 自訂調色盤必須在兩種模式下都能運作,同時維持 WCAG 對比比率。從系統語意色彩開始。

  2. 字體排版 + 無障礙設計 + 佈局 -- 動態字型必須在不破壞佈局的情況下縮放。使用文字樣式和 Auto Layout 來處理所有範圍的字型大小。

  3. 圖示 + 品牌 + SF Symbols -- 自訂圖示應匹配 SF Symbols 的粗細和光學尺寸。品牌元素應整合而不覆蓋系統慣例。

  4. 動態效果 + 無障礙設計 + 反饋 -- 每個動畫都必須有「減少動態效果」的替代方案。動態效果應強化空間關係,而非裝飾。

  5. 隱私 + 寫作 + 入門引導 -- 權限請求需要清晰、特定的用途描述。在用戶能理解其益處時才提出。

輸出格式

  1. 引用特定的 HIG 基礎,包含檔案和章節。
  2. 註明平台差異,針對使用者的目標平台。
  3. 提供具體的程式碼模式 (SwiftUI/UIKit/AppKit)。
  4. 解釋無障礙影響 (對比比率、動態字型縮放、VoiceOver 行為)。

要提出的問題

  1. 您要針對哪些平台?
  2. 您有現有的品牌指南嗎?
  3. 您要達到的無障礙等級為何?(WCAG AA、AAA、Apple 基準?)
  4. 使用系統色彩還是自訂?

相關技能

  • hig-platforms -- 基礎如何跨平台應用 (例如,watchOS 與 macOS 的字型大小差異)
  • hig-patterns -- 寫作和無障礙設計等基礎至關重要的互動模式
  • hig-components-layout -- 實作佈局原則的結構性元件
  • hig-components-content -- 使用色彩、字體排版和影像的內容顯示

由 Raintree Technology 建置 · 更多開發者工具

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

COTA-App/LandingPage

>- Apple Human Interface Guidelines for content display components. Use this skill when the user asks about "charts component", "collection view", "image view", "web view", "color well", "image well", "activity view", "lockup", "data visualization", "content display", displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says "how should I display charts", "what's the best way to show images", "should I use a web view", "how do I build a grid of items", "what component shows media", or "how do I present a share sheet". Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.

COTA-App/LandingPage

>- Apple HIG guidance for selection and input controls including pickers, toggles, sliders, steppers, segmented controls, combo boxes, text fields, text views, labels, token fields, virtual keyboards, rating indicators, and gauges. Use this skill when the user says "picker or segmented control," "how should my form look," "what keyboard type should I use," "toggle vs checkbox," or asks about picker design, toggle, switch, slider, stepper, text field, text input, segmented control, combo box, label, token field, virtual keyboard, rating indicator, gauge, form design, input validation, or control state management. Cross-references: hig-components-menus, hig-components-dialogs, hig-components-search.

COTA-App/LandingPage

>- Apple Human Interface Guidelines for layout and navigation components. Use this skill when the user asks about "sidebar", "split view", "tab bar", "tab view", "scroll view", "window design", "panel", "list view", "table view", "column view", "outline view", "navigation structure", "app layout", "boxes", "ornaments", or organizing content hierarchically in Apple apps. Also use when the user says "how should I organize my app", "what navigation pattern should I use", "my layout breaks on iPad", "how do I build a sidebar", "should I use tabs or a sidebar", or "my app doesn't adapt to different screen sizes". Cross-references: hig-foundations for layout/spacing principles, hig-platforms for platform-specific navigation, hig-patterns for multitasking and full-screen, hig-components-content for content display.

COTA-App/LandingPage

>- Apple Human Interface Guidelines interaction and UX patterns. Use this skill when the user asks about "onboarding flow", "user onboarding", "app launch", "loading state", "drag and drop", "search pattern", "settings design", "notifications", "modality", "multitasking", "feedback pattern", "haptics", "undo redo", "file management", data entry, sharing, collaboration, full screen, audio, video, haptic feedback, ratings, printing, help, or account management in Apple apps. Also use when the user says "how should onboarding work", "my app takes too long to load", "should I use a modal here", "how do I handle errors", "when should I ask for permissions", "how to show progress", or "what's the right way to confirm a delete". Cross-references: hig-foundations for underlying principles, hig-platforms for platform specifics, hig-components-layout for navigation, hig-components-content for data display.

相關技能