Tooluck logoTooluck
SKILL.md

design-system

Agent skill fromrshankras/claude-code-apple-skills

Build-time design-system rules that keep an Apple app cheap to restyle — role-named tokens, text styles that carry case and tracking, shared components with a ContentStateView, small views, identifier-based UI tests, and SwiftLint enforcement with a shrinking baseline. iOS, iPadOS, macOS, watchOS. Use when starting an app's UI, setting up tokens, adopting a designer's Figma/Sketch system, or preparing for or doing a redesign.

How to install design-system

install design-system
# install the claude-code-apple-skills pack with the skills CLI
npx skills add rshankras/claude-code-apple-skills

# or add only this skill to Claude Code: copy the folder

skills/design/design-system/

# into

~/.claude/skills/design-system/ (all projects)

.claude/skills/design-system/ (one project)

skills/design/design-system/SKILL.md

MITFull file
1# Design System (build-time rules)
2
3How cheap a redesign is depends almost entirely on how styling was written,
4not on how big the app is. In a real ~45k-line SwiftUI app going through a
5full redesign, about a third of the estimate was **pure restyling** of screens
6that already worked — because of hand-set font sizes and colours, case applied
7at call sites, appearance-named tokens, per-screen loading/empty states,
83,000-line view files, and UI tests that matched visible text.
9
10This skill is the set of rules that prevents that. `design/typography` covers
11*choosing* type and Dynamic Type; `product/ux-spec` writes a
12`DESIGN_SYSTEM.md` spec. This skill is about how the code is written so the
13look can change in one place.
14
15## When This Skill Activates
16
17- Starting the UI of a new app (before the first screen)
18- Setting up colour/spacing/type tokens, or adopting a designer's system
19- A redesign is coming, or restyling is taking longer than it should
20- Reviewing UI code for restyle cost
21
22## Styling
23
241. **No raw style values in views.** Fonts, colours, spacing, radius and
25 shadow come from tokens. Allowed: `0`, and an icon-size token.
262. **Name tokens by role, mirroring the designer's variables.** `Text/Primary`
27 → `textPrimary`, `Action/Primary/Background` → `actionPrimaryBackground`.
28 Never by appearance (`label2`, `grey600`, `tagSemibold`) — appearance
29 names are exactly what a redesign changes.
303. **One text style = family + size + weight + line height + tracking +
31…

Excerpt shown under the repository's MIT license.

More skills in claude-code-apple-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates