跳到正文
cccskills
免费在 GitHub 公开

kika-design-system

Use when building or modifying SwiftUI views, settings windows, menu-bar UIs, or any surface for the KIKA app — or any calm, premium app you want to feel the same way. Encodes the KIKA Design System v2 (June 2026) — a calm, premium, modern dark UI with first-class light mode, inspired by Cursor, Linear, and high-quality dev tools — that you can adopt or adapt for your own app. Apply it to keep color, typography, spacing, and component styling consistent.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(8)

  • SKILL.md6.6 KB
  • assets/SettingsView.swift9.3 KB
  • references/colors.md4.5 KB
  • references/components.md2.8 KB
  • references/menus.md9.0 KB
  • references/settings-window.md3.5 KB
  • references/spacing-layout.md2.4 KB
  • references/typography.md2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

KIKA Design System v2 (June 2026)

Calm, minimal, premium, modern dark UI with excellent light mode support. Inspired by Cursor, Linear, and high-quality dev tools.

When to Use

Use this skill for any work touching KIKA's UI:

  • Building or refactoring a SwiftUI view
  • Designing a settings window, menu bar, or popover
  • Adding a new component (button, row, card, divider)
  • Designing a right-click context menu or the macOS main menu bar (File / Edit / View)
  • Reviewing UI for consistency with the design system
  • Generating new screens that should match the existing app

Do not use it for non-UI logic, backend, or app architecture decisions.

Built for the KIKA app, but the tokens and approach are reusable: adopt or adapt the same palette, type scale, spacing, and components for your own calm, premium Apple-platform app.

Philosophy

  • Calm over loud. Accent color is restrained. Borders are thin or absent.
  • Elevation over borders. Subtle background changes carry hierarchy.
  • Generous spacing. Three gap values (12pt, 16pt, 20pt) carry the whole layout. (8pt exists for internal component padding only — never as a gap.)
  • One font family. SF Pro. No custom imports.
  • Dark first, light equally. Every token has a dark and light value.
  • Icons over text. Always reach for SF Symbols first. Labels stay on actions; chrome stays symbol-only.
  • No subtitles. If a label and a description feel needed, the description is the label — rewritten, not stacked.
  • No visual clutter. No drop shadows, no decorative gradients, no colored icon fills, no multi-color palettes. Restraint is a feature.

Workflow

  1. Read the relevant reference. Pick the slice of the design system that applies:
  2. Resolve tokens once. Use KikaTheme.resolve(scheme:) (see the asset) — never hard-code hex per call site.
  3. Compose from building blocks. KikaSectionHeader, KikaDivider, KikaRow, KikaPrimaryButtonStyle, KikaSecondaryButtonStyle are provided in SettingsView.swift.
  4. Honor system color scheme. Don't force light or dark. Let macOS / iOS decide and resolve tokens accordingly.
  5. Self-review against anti-patterns. Each reference ends with a "Anti-Patterns" list. Run through it before declaring the view done.

Quick Reference

Color tokens (one-line summary)

TokenDarkLight
background#0D0D0D#F8F8F8
surface#161616#FFFFFF
elevated#1F1F1F#F0F0F0
dividerwhite.opacity(0.08)#E5E5E5
textPrimary#D9D9D9#1A1A1A
textSecondary#BFBFBF#4A4A4A
textTertiary#8C8C8C#6B6B6B
accent#6D80A6#5A6E94
border#2A2A2A#E0E0E0

divider and border are intentionally distinct. Use divider for one-line separators and border for control outlines (e.g. secondary button stroke). Don't substitute one for the other.

Type scale

RoleSizeWeight
Title18ptsemibold
Body13ptregular
Caption11ptregular
Icon14ptregular

The 18/13/11/14 numbers above are the canonical values. The wider 17–20 / 13–14 / 11–12 ranges in Typography describe where it is acceptable to deviate, e.g. for a hero display or a one-off dense caption — not defaults to use casually.

Spacing

TokenValueUse for
xs8ptInternal component padding only (e.g. button vertical)
sm12ptTight stacks, between related items
md16ptDefault vertical/horizontal rhythm
lg20ptBetween sections, page-level padding

For layout gaps between elements, pick from sm / md / lg. xs is reserved for internal component padding (button vertical, dense row internals) — using it for gap rhythm would fragment the 3-value system.

Assets

  • SettingsView.swift — Complete SwiftUI reference implementation: token resolution, theme environment, KikaSectionHeader, KikaDivider, KikaRow, primary/secondary button styles, General tab, About tab, and a working SettingsView scene. Copy and adapt.

References

  • Colors — Full dark/light color palette with rules and token mapping
  • Typography — SF Pro scale, weights, line height, anti-patterns
  • Spacing & Layout — Gap scale, padding, rhythm, anti-patterns
  • Components — Surfaces, buttons, dividers, section headers, settings rows
  • Settings Window — General and About tab layout specs
  • Menus — Right-click context menus, the macOS main menu bar, icon catalog

Parse-Safe Notes

When generating code from this design system:

  • SwiftUI's Color(hex:) initializer shown in the asset uses UInt32 — keep the 0x prefix on literals
  • Color.white.opacity(0.08) is the canonical divider in dark mode; do not substitute #1A1A1A or similar
  • Font.system(size:weight:) is the only font constructor — do not introduce .font(.body) shortcuts that may resolve to a non-SF-Pro system font in some contexts
  • The accent color is intentionally desaturated (#6D80A6 / #5A6E94). Do not "brighten" it.

Out of Scope

  • App architecture, networking, persistence
  • Non-UI Swift / Swift API design
  • Cross-platform (web, Android) styling — KIKA-born, but Apple-platform (SwiftUI) only; the tokens themselves can inform other platforms

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when creating a new project folder, starter pack, app scaffold, or agent-ready workspace — AGENTS.md, README, TASKS, DECISIONS, PROMPTS, an idempotent bootstrap script, and starter-pack modes.

中文简介正在准备中。当前显示原文说明。

aka-kika/akakika-skills112026年9月12日 更新

Use when designing or implementing states for AI agent tasks, background jobs, local model runs, queues, and notifications — one shared set of states, only legal transitions, and a recovery path out of every failure.

中文简介正在准备中。当前显示原文说明。

aka-kika/akakika-skills112026年9月12日 更新

Use when exposing app features to App Intents, Shortcuts, Siri, Spotlight, widgets, controls, or system actions — small safe AppIntents, AppShortcutsProvider, AppEnum/AppEntity, parameters, and open-vs-background behavior.

中文简介正在准备中。当前显示原文说明。

aka-kika/akakika-skills112026年9月12日 更新

Use when designing, reviewing, or implementing a command-palette / ⌘K layer for an Apple-platform app — keyboard-first global search, ranked and grouped results, native floating panel, and protected destructive commands.

中文简介正在准备中。当前显示原文说明。

aka-kika/akakika-skills112026年9月12日 更新

Use when designing or implementing empty, first-run, no-result, offline, error, or waiting states in Apple-platform apps — every empty state explains what is missing, why it matters, and what to do next.

中文简介正在准备中。当前显示原文说明。

aka-kika/akakika-skills112026年9月12日 更新

Use when designing or implementing feedback, status, progress, alerts, errors, success states, and live activity indicators in Apple-platform apps — inline status, banners, alerts, notifications, and loading states.

中文简介正在准备中。当前显示原文说明。

aka-kika/akakika-skills112026年9月12日 更新

查看 aka-kika 的全部技能

报告此技能的问题