@kood/claude-code 0.4.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/index.js +69 -12
  2. package/package.json +2 -1
  3. package/templates/.claude/PARALLEL_AGENTS.md +737 -0
  4. package/templates/.claude/agents/analyst.md +416 -0
  5. package/templates/.claude/agents/architect.md +569 -0
  6. package/templates/.claude/agents/code-reviewer.md +132 -133
  7. package/templates/.claude/agents/dependency-manager.md +93 -94
  8. package/templates/.claude/agents/deployment-validator.md +64 -65
  9. package/templates/.claude/agents/designer.md +655 -0
  10. package/templates/.claude/agents/document-writer.md +500 -0
  11. package/templates/.claude/agents/explore.md +499 -0
  12. package/templates/.claude/agents/git-operator.md +74 -75
  13. package/templates/.claude/agents/implementation-executor.md +138 -109
  14. package/templates/.claude/agents/ko-to-en-translator.md +18 -22
  15. package/templates/.claude/agents/lint-fixer.md +250 -93
  16. package/templates/.claude/agents/planner.md +356 -0
  17. package/templates/.claude/agents/refactor-advisor.md +135 -136
  18. package/templates/.claude/commands/bug-fix.md +296 -207
  19. package/templates/.claude/commands/git-all.md +199 -46
  20. package/templates/.claude/commands/git-session.md +113 -57
  21. package/templates/.claude/commands/lint-fix.md +219 -153
  22. package/templates/.claude/commands/lint-init.md +113 -76
  23. package/templates/.claude/commands/pre-deploy.md +190 -124
  24. package/templates/.claude/commands/refactor.md +407 -162
  25. package/templates/.claude/commands/version-update.md +138 -37
  26. package/templates/.claude/instructions/context-engineering/ANTHROPIC_CONTEXT_ENGINEERING.md +178 -0
  27. package/templates/.claude/instructions/context-engineering/references/claude-4x.md +215 -0
  28. package/templates/.claude/instructions/context-engineering/references/core-principles.md +137 -0
  29. package/templates/.claude/instructions/context-engineering/references/examples.md +351 -0
  30. package/templates/.claude/instructions/context-engineering/references/techniques.md +162 -0
  31. package/templates/.claude/instructions/parallel-agent-execution.md +874 -0
  32. package/templates/.claude/skills/docs-creator/AGENTS.md +238 -0
  33. package/templates/.claude/{commands/docs-creator.md → skills/docs-creator/SKILL.md} +61 -75
  34. package/templates/.claude/skills/docs-refactor/AGENTS.md +270 -0
  35. package/templates/.claude/{commands/docs-refactor.md → skills/docs-refactor/SKILL.md} +30 -44
  36. package/templates/.claude/skills/execute/SKILL.md +451 -0
  37. package/templates/.claude/skills/figma-to-code/AGENTS.md +287 -0
  38. package/templates/.claude/skills/figma-to-code/SKILL.md +225 -225
  39. package/templates/.claude/skills/figma-to-code/references/design-tokens.md +75 -73
  40. package/templates/.claude/skills/figma-to-code/references/figma-mcp-tools.md +73 -73
  41. package/templates/.claude/skills/figma-to-code/references/layout-mapping.md +104 -104
  42. package/templates/.claude/skills/figma-to-code/references/responsive-design.md +99 -99
  43. package/templates/.claude/skills/figma-to-code/references/verification.md +91 -91
  44. package/templates/.claude/skills/global-uiux-design/AGENTS.md +317 -0
  45. package/templates/.claude/skills/global-uiux-design/SKILL.md +738 -0
  46. package/templates/.claude/skills/global-uiux-design/references/accessibility.md +401 -0
  47. package/templates/.claude/skills/global-uiux-design/references/color-system.md +275 -0
  48. package/templates/.claude/skills/global-uiux-design/references/design-philosophy.md +206 -0
  49. package/templates/.claude/skills/global-uiux-design/references/design-systems.md +446 -0
  50. package/templates/.claude/skills/korea-uiux-design/AGENTS.md +307 -0
  51. package/templates/.claude/skills/korea-uiux-design/SKILL.md +170 -0
  52. package/templates/.claude/skills/nextjs-react-best-practices/AGENTS.md +95 -116
  53. package/templates/.claude/skills/nextjs-react-best-practices/SKILL.md +134 -152
  54. package/templates/.claude/skills/nextjs-react-best-practices/rules/advanced-event-handler-refs.md +6 -6
  55. package/templates/.claude/skills/nextjs-react-best-practices/rules/advanced-use-latest.md +5 -5
  56. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-api-routes.md +5 -5
  57. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-defer-await.md +22 -22
  58. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-dependencies.md +5 -5
  59. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-parallel.md +4 -4
  60. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-suspense-boundaries.md +21 -21
  61. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-barrel-imports.md +18 -18
  62. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-conditional.md +4 -4
  63. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-defer-third-party.md +4 -4
  64. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-dynamic-imports.md +4 -4
  65. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-preload.md +5 -5
  66. package/templates/.claude/skills/nextjs-react-best-practices/rules/client-event-listeners.md +9 -9
  67. package/templates/.claude/skills/nextjs-react-best-practices/rules/client-swr-dedup.md +7 -7
  68. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-batch-dom-css.md +13 -13
  69. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-function-results.md +14 -14
  70. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-property-access.md +4 -4
  71. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-storage.md +10 -10
  72. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-combine-iterations.md +4 -4
  73. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-early-exit.md +7 -7
  74. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-hoist-regexp.md +6 -6
  75. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-index-maps.md +6 -6
  76. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-length-check-first.md +14 -14
  77. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-min-max-loop.md +16 -16
  78. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-set-map-lookups.md +4 -4
  79. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-tosorted-immutable.md +17 -17
  80. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-activity.md +4 -4
  81. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-animate-svg-wrapper.md +11 -11
  82. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-conditional-render.md +8 -8
  83. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-content-visibility.md +4 -4
  84. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-hoist-jsx.md +6 -6
  85. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-hydration-no-flicker.md +14 -14
  86. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-svg-precision.md +5 -5
  87. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-defer-reads.md +4 -4
  88. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-dependencies.md +7 -7
  89. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-derived-state.md +5 -5
  90. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-functional-setstate.md +34 -34
  91. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-lazy-state-init.md +15 -15
  92. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-memo.md +5 -5
  93. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-transitions.md +4 -4
  94. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-after-nonblocking.md +24 -24
  95. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-cache-lru.md +10 -10
  96. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-cache-react.md +4 -4
  97. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-parallel-fetching.md +5 -5
  98. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-serialization.md +6 -6
  99. package/templates/.claude/skills/plan/SKILL.md +594 -0
  100. package/templates/.claude/skills/prd/SKILL.md +496 -0
  101. package/templates/.claude/skills/ralph/AGENTS.md +393 -0
  102. package/templates/.claude/skills/ralph/SKILL.md +1035 -0
  103. package/templates/.claude/skills/tanstack-start-react-best-practices/AGENTS.md +100 -121
  104. package/templates/.claude/skills/tanstack-start-react-best-practices/SKILL.md +139 -157
  105. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-defer-await.md +22 -22
  106. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-dependencies.md +5 -5
  107. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-loader.md +7 -7
  108. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-parallel.md +4 -4
  109. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-barrel-imports.md +18 -18
  110. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-conditional.md +4 -4
  111. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-defer-third-party.md +4 -4
  112. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-lazy-routes.md +12 -12
  113. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-preload.md +5 -5
  114. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/client-event-listeners.md +9 -9
  115. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/client-tanstack-query.md +12 -12
  116. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-batch-dom-css.md +13 -13
  117. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-function-results.md +14 -14
  118. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-property-access.md +4 -4
  119. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-storage.md +10 -10
  120. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-combine-iterations.md +4 -4
  121. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-early-exit.md +7 -7
  122. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-hoist-regexp.md +6 -6
  123. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-index-maps.md +6 -6
  124. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-length-check-first.md +14 -14
  125. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-min-max-loop.md +16 -16
  126. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-set-map-lookups.md +4 -4
  127. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-tosorted-immutable.md +17 -17
  128. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-animate-svg-wrapper.md +11 -11
  129. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-conditional-render.md +8 -8
  130. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-content-visibility.md +4 -4
  131. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-hoist-jsx.md +6 -6
  132. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-svg-precision.md +5 -5
  133. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-defer-reads.md +4 -4
  134. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-dependencies.md +7 -7
  135. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-derived-state.md +5 -5
  136. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-functional-setstate.md +34 -34
  137. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-lazy-state-init.md +15 -15
  138. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-memo.md +5 -5
  139. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-transitions.md +4 -4
  140. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-cache-lru.md +12 -12
  141. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-deferred-data.md +14 -14
  142. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-parallel-fetching.md +9 -9
  143. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-serialization.md +6 -6
  144. package/templates/.claude/commands/agent-creator.md +0 -370
  145. package/templates/.claude/commands/command-creator.md +0 -524
  146. package/templates/.claude/commands/execute.md +0 -469
  147. package/templates/.claude/commands/git.md +0 -98
  148. package/templates/.claude/commands/plan.md +0 -526
  149. package/templates/.claude/commands/prd.md +0 -629
@@ -0,0 +1,206 @@
1
+ # Design Philosophy
2
+
3
+ ## Core Principles
4
+
5
+ ### 1. Clarity Over Complexity
6
+
7
+ **Good:**
8
+ - White space guides attention
9
+ - One primary action per screen
10
+ - Visual hierarchy through size and weight
11
+
12
+ **Bad:**
13
+ - Cluttered interfaces with competing elements
14
+ - Multiple CTAs at same prominence
15
+ - Equal visual weight for all elements
16
+
17
+ ### 2. Consistency Builds Trust
18
+
19
+ **Platform Consistency:**
20
+ - iOS apps use iOS patterns (bottom sheets, swipe gestures)
21
+ - Web apps use web patterns (hover states, URL navigation)
22
+ - Don't force mobile patterns onto desktop or vice versa
23
+
24
+ **Internal Consistency:**
25
+ - Same action = same location (e.g., save always top-right)
26
+ - Same component = same behavior across app
27
+ - Design tokens ensure visual consistency
28
+
29
+ ### 3. Performance is UX
30
+
31
+ **Perceived Performance:**
32
+ - Optimistic UI updates (update immediately, sync in background)
33
+ - Skeleton screens instead of spinners
34
+ - Instant feedback on interactions (<100ms)
35
+
36
+ **Actual Performance:**
37
+ - 60fps animations
38
+ - Core Web Vitals: LCP <2.5s, FID <100ms, CLS <0.1
39
+ - Lazy load below-the-fold content
40
+
41
+ ### 4. Accessibility is Not Optional
42
+
43
+ **Universal Design:**
44
+ - High contrast benefits everyone in bright sunlight
45
+ - Keyboard navigation helps power users
46
+ - Clear labels help non-native speakers
47
+
48
+ **Legal Requirements:**
49
+ - WCAG 2.2 AA is minimum (soon legally required in EU, US)
50
+ - Accessibility lawsuits are increasing
51
+ - Design accessible from the start (retrofitting is expensive)
52
+
53
+ ## Anti-Patterns
54
+
55
+ ### Don't Do
56
+
57
+ ❌ **Rely on color alone**
58
+ ```tsx
59
+ {/* Bad: Only color differentiates */}
60
+ <span className="text-red-500">Error</span>
61
+ <span className="text-green-500">Success</span>
62
+ ```
63
+
64
+ ✅ **Use icons + color**
65
+ ```tsx
66
+ {/* Good: Icon + color + text */}
67
+ <div className="flex items-center gap-2 text-red-600">
68
+ <svg className="w-5 h-5" />
69
+ <span>Error: Invalid input</span>
70
+ </div>
71
+ ```
72
+
73
+ ❌ **Tiny touch targets**
74
+ ```tsx
75
+ {/* Bad: 24px icon without padding */}
76
+ <button><svg className="w-6 h-6" /></button>
77
+ ```
78
+
79
+ ✅ **44px minimum**
80
+ ```tsx
81
+ {/* Good: Icon centered in 44px button */}
82
+ <button className="w-11 h-11 flex items-center justify-center">
83
+ <svg className="w-6 h-6" />
84
+ </button>
85
+ ```
86
+
87
+ ❌ **Generic error messages**
88
+ ```
89
+ Error: Something went wrong
90
+ ```
91
+
92
+ ✅ **Actionable feedback**
93
+ ```
94
+ Email address is invalid. Please use format: name@example.com
95
+ ```
96
+
97
+ ❌ **Disable buttons without explanation**
98
+ ```tsx
99
+ <button disabled>Submit</button>
100
+ ```
101
+
102
+ ✅ **Show why it's disabled**
103
+ ```tsx
104
+ <button disabled className="opacity-50 cursor-not-allowed">
105
+ Submit
106
+ </button>
107
+ <p className="text-sm text-gray-500 mt-2">
108
+ Complete all required fields to submit
109
+ </p>
110
+ ```
111
+
112
+ ## Design System Selection
113
+
114
+ **Choose based on:**
115
+
116
+ | Type | Recommended System |
117
+ |------|-------------------|
118
+ | B2B SaaS | Carbon, Ant Design, Lightning |
119
+ | Consumer apps | Material 3, Apple HIG |
120
+ | E-commerce | Polaris, custom with strong brand |
121
+ | Internal tools | Ant Design, Atlassian |
122
+ | Creative tools | Spectrum 2, custom |
123
+
124
+ **Don't:**
125
+ - Mix design systems (pick one as foundation)
126
+ - Copy competitors exactly (users expect some consistency)
127
+ - Ignore platform conventions (iOS users expect iOS patterns)
128
+
129
+ ## Mobile-First Mindset
130
+
131
+ **Start mobile:**
132
+ 1. Forces prioritization (limited space)
133
+ 2. Ensures touch targets are adequate
134
+ 3. Progressive enhancement to desktop
135
+
136
+ **Desktop-first problems:**
137
+ - Hover states don't translate to mobile
138
+ - Dense layouts become unusable
139
+ - Assumptions about mouse precision
140
+
141
+ ## Progressive Disclosure
142
+
143
+ **Show essential, hide advanced:**
144
+ ```tsx
145
+ {/* Good: Advanced options collapsed */}
146
+ <form>
147
+ <input type="email" required />
148
+ <input type="password" required />
149
+ <button type="submit">Sign in</button>
150
+
151
+ <details className="mt-4">
152
+ <summary className="text-sm text-gray-600 cursor-pointer">
153
+ Advanced options
154
+ </summary>
155
+ <div className="mt-2 space-y-2">
156
+ {/* Advanced fields */}
157
+ </div>
158
+ </details>
159
+ </form>
160
+ ```
161
+
162
+ **Benefits:**
163
+ - Reduces cognitive load
164
+ - Faster for common cases
165
+ - Power users can still access everything
166
+
167
+ ## Feedback Loops
168
+
169
+ **Immediate → Ongoing → Completion**
170
+
171
+ 1. **Immediate:** Button press animation (<100ms)
172
+ 2. **Ongoing:** Progress indicator for long operations
173
+ 3. **Completion:** Success/error state with clear next action
174
+
175
+ ```tsx
176
+ {/* Example: File upload */}
177
+ <button onClick={upload} className="relative">
178
+ {uploading && <Spinner className="absolute inset-0" />}
179
+ Upload
180
+ </button>
181
+
182
+ {progress > 0 && (
183
+ <div className="w-full bg-gray-200 rounded-full h-2">
184
+ <div className="bg-blue-600 h-2 rounded-full" style={{width: `${progress}%`}} />
185
+ </div>
186
+ )}
187
+
188
+ {complete && (
189
+ <div className="text-green-600">
190
+ ✓ Upload complete. <a href="/files">View files</a>
191
+ </div>
192
+ )}
193
+ ```
194
+
195
+ ## Context Matters
196
+
197
+ **Different contexts = different patterns:**
198
+
199
+ | Context | Pattern |
200
+ |---------|---------|
201
+ | High-stakes (banking) | Confirmation dialogs, clear labels, conservative design |
202
+ | Creative work | Expansive canvas, minimal chrome, keyboard shortcuts |
203
+ | Data entry | Keyboard-first, tab order, inline validation |
204
+ | Consumption (news) | Comfortable reading, minimal distractions |
205
+
206
+ Don't use the same design for all contexts.
@@ -0,0 +1,446 @@
1
+ # Leading Design Systems - Comparison & Best Practices
2
+
3
+ ## Overview
4
+
5
+ | System | Org | License | Best For |
6
+ |--------|-----|---------|----------|
7
+ | Material Design 3 | Google | Apache 2.0 | Android apps, cross-platform consistency |
8
+ | Apple HIG | Apple | Proprietary | iOS/macOS apps, premium feel |
9
+ | Fluent 2 | Microsoft | MIT | Windows apps, enterprise, Office integration |
10
+ | Carbon | IBM | Apache 2.0 | Enterprise B2B, data-heavy interfaces |
11
+ | Ant Design | Ant Group | MIT | Admin dashboards, internal tools |
12
+ | Polaris | Shopify | MIT | E-commerce, merchant tools |
13
+ | Lightning | Salesforce | Custom | CRM, business apps |
14
+ | Spectrum 2 | Adobe | Apache 2.0 | Creative tools, content-focused |
15
+ | Atlassian DS | Atlassian | Custom | Collaboration tools, project management |
16
+ | Chakra UI | Community | MIT | Accessible React apps, rapid prototyping |
17
+
18
+ ---
19
+
20
+ ## Material Design 3 (Google)
21
+
22
+ **URL:** https://m3.material.io/
23
+
24
+ ### Key Features
25
+
26
+ - **Dynamic Color:** Generate entire palette from single source color
27
+ - **Material You:** Adapts to user's wallpaper (Android 12+)
28
+ - **Component States:** Clearly defined hover, focus, active, disabled
29
+ - **Elevation:** Uses shadow and tonal surfaces
30
+
31
+ ### Philosophy
32
+
33
+ - **Expressive:** Bold, intentional, vibrant
34
+ - **Adaptable:** Scales across devices and contexts
35
+ - **Inclusive:** Accessibility built-in
36
+
37
+ ### When to Use
38
+
39
+ ✅ Android apps (native integration)
40
+ ✅ Cross-platform apps (consistent Google ecosystem feel)
41
+ ✅ Apps targeting international/diverse audiences
42
+
43
+ ❌ iOS-first apps (users expect iOS patterns)
44
+ ❌ High-end luxury brands (too "tech company")
45
+
46
+ ### Code Example
47
+
48
+ ```tsx
49
+ {/* Material 3 button */}
50
+ <button className="
51
+ h-10 px-6
52
+ rounded-full
53
+ bg-primary-600 hover:bg-primary-700
54
+ text-white font-medium
55
+ shadow-sm hover:shadow-md
56
+ transition-all duration-200
57
+ ">
58
+ Action
59
+ </button>
60
+ ```
61
+
62
+ ### Resources
63
+
64
+ - Design Kit: Figma Community (Material 3 Design Kit)
65
+ - Components: material-web (Web Components)
66
+ - Icons: Material Symbols (variable font)
67
+
68
+ ---
69
+
70
+ ## Apple Human Interface Guidelines
71
+
72
+ **URL:** https://developer.apple.com/design/human-interface-guidelines/
73
+
74
+ ### Key Features (2026)
75
+
76
+ - **Liquid Glass:** Translucency, depth, fluid motion
77
+ - **SF Symbols:** 5000+ symbols, auto-weight matching
78
+ - **Dynamic Type:** User-controlled text sizing
79
+ - **Dark Mode:** System-wide, automatic switching
80
+
81
+ ### Philosophy
82
+
83
+ - **Clarity:** Content is paramount
84
+ - **Deference:** UI doesn't compete with content
85
+ - **Depth:** Layers and motion provide hierarchy
86
+
87
+ ### When to Use
88
+
89
+ ✅ iOS/macOS apps (platform expectation)
90
+ ✅ Premium consumer products
91
+ ✅ Content-focused apps (reading, media)
92
+
93
+ ❌ Web apps (iOS patterns don't translate well)
94
+ ❌ Android-first apps (use Material instead)
95
+
96
+ ### Code Example
97
+
98
+ ```tsx
99
+ {/* iOS-style button */}
100
+ <button className="
101
+ h-11 px-6
102
+ rounded-lg
103
+ bg-blue-500 hover:bg-blue-600
104
+ text-white font-semibold
105
+ active:scale-95
106
+ transition-all
107
+ ">
108
+ Continue
109
+ </button>
110
+
111
+ {/* iOS segment control */}
112
+ <div className="inline-flex p-1 bg-gray-100 rounded-lg">
113
+ <button className="px-4 py-2 rounded-md bg-white shadow-sm">All</button>
114
+ <button className="px-4 py-2 rounded-md text-gray-600">Active</button>
115
+ </div>
116
+ ```
117
+
118
+ ### Resources
119
+
120
+ - SF Symbols app (macOS)
121
+ - Design resources: developer.apple.com/design/resources
122
+ - SF Pro font family (system font)
123
+
124
+ ---
125
+
126
+ ## Fluent 2 (Microsoft)
127
+
128
+ **URL:** https://fluent2.microsoft.design/
129
+
130
+ ### Key Features
131
+
132
+ - **Design Tokens:** Platform-agnostic styling
133
+ - **Figma-Native:** Built in Figma from ground up
134
+ - **Cross-Platform:** Web, iOS, Windows, Android
135
+ - **Fluent 2 Web Components:** Framework-agnostic
136
+
137
+ ### Philosophy
138
+
139
+ - **Effortless:** Natural, intuitive interactions
140
+ - **Warm:** Friendly, approachable
141
+ - **Inclusive:** Accessible to all
142
+
143
+ ### When to Use
144
+
145
+ ✅ Windows apps (native feel)
146
+ ✅ Office integrations
147
+ ✅ Enterprise B2B (professional, familiar)
148
+
149
+ ❌ Consumer mobile apps (better options exist)
150
+ ❌ Branding-heavy products (Fluent is very "Microsoft")
151
+
152
+ ### Code Example
153
+
154
+ ```tsx
155
+ {/* Fluent button */}
156
+ <button className="
157
+ h-8 px-3
158
+ rounded
159
+ bg-blue-500 hover:bg-blue-600
160
+ text-white text-sm font-medium
161
+ transition-colors
162
+ ">
163
+ Submit
164
+ </button>
165
+ ```
166
+
167
+ ### Resources
168
+
169
+ - UI Kit: Fluent 2 (Figma)
170
+ - Components: @fluentui/react-components
171
+ - Icons: @fluentui/react-icons
172
+
173
+ ---
174
+
175
+ ## Carbon Design System (IBM)
176
+
177
+ **URL:** https://carbondesignsystem.com/
178
+
179
+ ### Key Features
180
+
181
+ - **Token-Based:** Semantic naming (ui-01, text-01)
182
+ - **Accessibility-First:** WCAG AA minimum, AAA where possible
183
+ - **Data Visualization:** Comprehensive charting guidelines
184
+ - **Grid System:** 16-column grid, 16px base unit
185
+
186
+ ### Philosophy
187
+
188
+ - **Clarity:** Purpose-driven design
189
+ - **Efficiency:** Reduce cognitive load
190
+ - **Inclusivity:** Design for everyone
191
+
192
+ ### When to Use
193
+
194
+ ✅ Enterprise B2B SaaS
195
+ ✅ Data-heavy dashboards
196
+ ✅ Internal tools requiring consistency
197
+
198
+ ❌ Consumer apps (too corporate)
199
+ ❌ Marketing sites (not expressive enough)
200
+
201
+ ### Code Example
202
+
203
+ ```tsx
204
+ {/* Carbon button */}
205
+ <button className="
206
+ h-12 px-4
207
+ bg-blue-600 hover:bg-blue-700
208
+ text-white text-sm
209
+ border-none
210
+ transition-colors
211
+ ">
212
+ Primary button
213
+ </button>
214
+ ```
215
+
216
+ ### Resources
217
+
218
+ - Design Kit: Carbon Design Kit (Sketch, Figma)
219
+ - Components: @carbon/react
220
+ - Icons: @carbon/icons-react
221
+
222
+ ---
223
+
224
+ ## Ant Design (Ant Group)
225
+
226
+ **URL:** https://ant.design/
227
+
228
+ ### Key Features
229
+
230
+ - **Enterprise-Grade:** 60+ components
231
+ - **Internationalization:** Built-in i18n support
232
+ - **TypeScript:** First-class TypeScript support
233
+ - **Customizable:** Design token system
234
+
235
+ ### Philosophy
236
+
237
+ - **Natural:** Inspired by nature
238
+ - **Certain:** Reliable, predictable
239
+ - **Meaningful:** Every element has purpose
240
+
241
+ ### When to Use
242
+
243
+ ✅ Admin dashboards
244
+ ✅ Internal enterprise tools
245
+ ✅ B2B SaaS platforms
246
+ ✅ Data-heavy applications
247
+
248
+ ❌ Consumer-facing apps (too "admin panel")
249
+ ❌ Marketing sites (not expressive)
250
+
251
+ ### Code Example
252
+
253
+ ```tsx
254
+ import { Button, Table, Form } from 'antd';
255
+
256
+ {/* Ant Design usage */}
257
+ <Button type="primary" size="large">
258
+ Submit
259
+ </Button>
260
+
261
+ <Table
262
+ dataSource={data}
263
+ columns={columns}
264
+ pagination={{ pageSize: 10 }}
265
+ />
266
+ ```
267
+
268
+ ### Resources
269
+
270
+ - Design Kit: Ant Design (Figma, Sketch)
271
+ - Components: antd (React)
272
+ - Icons: @ant-design/icons
273
+
274
+ ---
275
+
276
+ ## Shopify Polaris (2026)
277
+
278
+ **URL:** https://polaris.shopify.com/
279
+
280
+ ### Key Features
281
+
282
+ - **Web Components:** Framework-agnostic (2026 update)
283
+ - **E-commerce Optimized:** Patterns for merchants
284
+ - **Auto-Updates:** CDN-delivered, always current
285
+ - **Accessibility:** WCAG 2.2 AA compliant
286
+
287
+ ### Philosophy
288
+
289
+ - **Merchant-First:** Design for business owners
290
+ - **Efficient:** Reduce time to completion
291
+ - **Trustworthy:** Clear, predictable
292
+
293
+ ### When to Use
294
+
295
+ ✅ E-commerce apps (Shopify ecosystem)
296
+ ✅ Merchant-facing tools
297
+ ✅ Sales/inventory management
298
+
299
+ ❌ General consumer apps
300
+ ❌ Non-commerce products
301
+
302
+ ### Code Example
303
+
304
+ ```html
305
+ <!-- Polaris Web Components (2026) -->
306
+ <polaris-button variant="primary" size="large">
307
+ Create product
308
+ </polaris-button>
309
+
310
+ <polaris-card>
311
+ <polaris-card-section>
312
+ Content
313
+ </polaris-card-section>
314
+ </polaris-card>
315
+ ```
316
+
317
+ ### Resources
318
+
319
+ - Design Kit: Polaris for Figma
320
+ - Components: @shopify/polaris (Web Components)
321
+
322
+ ---
323
+
324
+ ## Salesforce Lightning Design System 2
325
+
326
+ **URL:** https://www.lightningdesignsystem.com/
327
+
328
+ ### Key Features (2026)
329
+
330
+ - **SLDS 2:** Agentic design patterns
331
+ - **Styling Hooks:** Flexible customization
332
+ - **Cosmos Theme:** Modern, updated aesthetic
333
+ - **Backward Compatible:** Works with SLDS 1
334
+
335
+ ### When to Use
336
+
337
+ ✅ Salesforce integrations
338
+ ✅ CRM applications
339
+ ✅ Business/sales tools
340
+
341
+ ❌ Consumer apps
342
+ ❌ Non-CRM products
343
+
344
+ ---
345
+
346
+ ## Adobe Spectrum 2
347
+
348
+ **URL:** https://spectrum.adobe.com/
349
+
350
+ ### Key Features
351
+
352
+ - **Cross-App:** Consistent across 100+ Adobe apps
353
+ - **Scale System:** Adaptive sizing for different contexts
354
+ - **Creative-First:** Optimized for creative workflows
355
+
356
+ ### When to Use
357
+
358
+ ✅ Creative tools (design, video, photo)
359
+ ✅ Content management
360
+ ✅ Apps requiring Adobe integration
361
+
362
+ ❌ Business apps
363
+ ❌ E-commerce
364
+
365
+ ---
366
+
367
+ ## Atlassian Design System
368
+
369
+ **URL:** https://atlassian.design/
370
+
371
+ ### Key Features
372
+
373
+ - **4px Grid:** Strict spacing system
374
+ - **Collaboration-Optimized:** Team workflows
375
+ - **Design Tokens:** Theme-agnostic
376
+
377
+ ### When to Use
378
+
379
+ ✅ Project management tools
380
+ ✅ Collaboration platforms
381
+ ✅ Documentation sites
382
+
383
+ ---
384
+
385
+ ## Chakra UI
386
+
387
+ **URL:** https://chakra-ui.com/
388
+
389
+ ### Key Features
390
+
391
+ - **Accessible:** WAI-ARIA compliant
392
+ - **Composable:** Build with primitives
393
+ - **Style Props:** Inline utility props
394
+ - **Dark Mode:** Built-in support
395
+
396
+ ### When to Use
397
+
398
+ ✅ Rapid prototyping
399
+ ✅ Accessible React apps
400
+ ✅ Startups (fast development)
401
+
402
+ ### Code Example
403
+
404
+ ```tsx
405
+ import { Button, Box, Stack } from '@chakra-ui/react';
406
+
407
+ <Stack spacing={4}>
408
+ <Button colorScheme="blue" size="lg">
409
+ Primary
410
+ </Button>
411
+ <Box bg="gray.100" p={4} rounded="lg">
412
+ Content
413
+ </Box>
414
+ </Stack>
415
+ ```
416
+
417
+ ---
418
+
419
+ ## Decision Matrix
420
+
421
+ | Need | Recommended System |
422
+ |------|-------------------|
423
+ | Android app | Material Design 3 |
424
+ | iOS app | Apple HIG |
425
+ | Windows app | Fluent 2 |
426
+ | Admin dashboard | Ant Design, Carbon |
427
+ | E-commerce | Polaris |
428
+ | CRM/Sales | Lightning DS |
429
+ | Creative tool | Spectrum 2 |
430
+ | Collaboration | Atlassian DS |
431
+ | Rapid prototype | Chakra UI |
432
+ | Accessible web app | Chakra UI, Carbon |
433
+
434
+ ## Hybrid Approach
435
+
436
+ **Foundation:** Choose one system as base
437
+ **Customization:** Adapt colors, typography to brand
438
+ **Components:** Cherry-pick from others when needed
439
+
440
+ **Example:**
441
+ - Base: Material Design 3
442
+ - Brand colors: Custom palette
443
+ - Data tables: Borrow from Ant Design
444
+ - Form validation: Carbon patterns
445
+
446
+ **Warning:** Don't mix design languages randomly. Users get confused.