@prestyj/cli 5.32.2 → 5.33.0

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 (481) hide show
  1. package/assets/motion/skills/motion/SKILL.md +1 -1
  2. package/assets/skills/bulletproof/SKILL.md +72 -131
  3. package/assets/skills/bulletproof/references/agent-surface.md +22 -1
  4. package/assets/skills/bulletproof/references/audit-protocol.md +23 -6
  5. package/assets/skills/bulletproof/references/platform-playbooks.md +12 -0
  6. package/assets/skills/bulletproof/references/provenance.md +19 -2
  7. package/assets/skills/bulletproof/references/secure-defaults.md +13 -1
  8. package/assets/skills/bulletproof/references/supply-chain.md +8 -5
  9. package/assets/skills/bulletproof/references/threat-landscape.md +46 -57
  10. package/assets/skills/compliance-guard/SKILL.md +59 -212
  11. package/assets/skills/compliance-guard/references/artifacts.md +14 -1
  12. package/assets/skills/compliance-guard/references/eu-uk.md +17 -7
  13. package/assets/skills/compliance-guard/references/exposure-triage.md +16 -0
  14. package/assets/skills/compliance-guard/references/full-review.md +155 -0
  15. package/assets/skills/compliance-guard/references/lawsuit-vectors.md +14 -2
  16. package/assets/skills/compliance-guard/references/provenance.md +33 -2
  17. package/assets/skills/compliance-guard/references/sector-gates.md +15 -1
  18. package/assets/skills/compliance-guard/references/security-baseline.md +21 -34
  19. package/assets/skills/compliance-guard/references/trigger-map.md +15 -1
  20. package/assets/skills/compliance-guard/references/us.md +32 -8
  21. package/assets/skills/durable/SKILL.md +22 -29
  22. package/assets/skills/durable/references/agent-db-safety.md +2 -2
  23. package/assets/skills/durable/references/backups-and-runtime.md +6 -6
  24. package/assets/skills/durable/references/migrations-and-schema.md +5 -4
  25. package/assets/skills/lean/SKILL.md +36 -50
  26. package/assets/skills/lean/references/playbooks.md +9 -7
  27. package/dist/app-sidecar/app-settings.d.ts +5 -0
  28. package/dist/app-sidecar/app-settings.js +13 -0
  29. package/dist/app-sidecar/app-settings.js.map +1 -1
  30. package/dist/app-sidecar/auth-routes.js +45 -2
  31. package/dist/app-sidecar/auth-routes.js.map +1 -1
  32. package/dist/app-sidecar/desktop-guidance.d.ts +1 -0
  33. package/dist/app-sidecar/desktop-guidance.js +27 -0
  34. package/dist/app-sidecar/desktop-guidance.js.map +1 -0
  35. package/dist/app-sidecar/history-routes.d.ts +6 -0
  36. package/dist/app-sidecar/history-routes.js +57 -2
  37. package/dist/app-sidecar/history-routes.js.map +1 -1
  38. package/dist/app-sidecar/history.d.ts +17 -0
  39. package/dist/app-sidecar/history.js.map +1 -1
  40. package/dist/app-sidecar/http.d.ts +1 -1
  41. package/dist/app-sidecar/http.js +2 -2
  42. package/dist/app-sidecar/http.js.map +1 -1
  43. package/dist/app-sidecar/integration-routes.js +4 -0
  44. package/dist/app-sidecar/integration-routes.js.map +1 -1
  45. package/dist/app-sidecar/prompt-routes.js +28 -5
  46. package/dist/app-sidecar/prompt-routes.js.map +1 -1
  47. package/dist/app-sidecar/route-context.d.ts +10 -1
  48. package/dist/app-sidecar/run-control-routes.js +9 -2
  49. package/dist/app-sidecar/run-control-routes.js.map +1 -1
  50. package/dist/app-sidecar/session-routes.js +8 -0
  51. package/dist/app-sidecar/session-routes.js.map +1 -1
  52. package/dist/app-sidecar/shell-routes.d.ts +12 -0
  53. package/dist/app-sidecar/shell-routes.js +133 -0
  54. package/dist/app-sidecar/shell-routes.js.map +1 -0
  55. package/dist/app-sidecar/shell-runs.d.ts +103 -0
  56. package/dist/app-sidecar/shell-runs.js +268 -0
  57. package/dist/app-sidecar/shell-runs.js.map +1 -0
  58. package/dist/app-sidecar/shell-suggestions.d.ts +33 -0
  59. package/dist/app-sidecar/shell-suggestions.js +152 -0
  60. package/dist/app-sidecar/shell-suggestions.js.map +1 -0
  61. package/dist/app-sidecar/usage.js +26 -2
  62. package/dist/app-sidecar/usage.js.map +1 -1
  63. package/dist/app-sidecar-sessions.js +13 -3
  64. package/dist/app-sidecar-sessions.js.map +1 -1
  65. package/dist/app-sidecar.js +231 -60
  66. package/dist/app-sidecar.js.map +1 -1
  67. package/dist/chat-agents/index.d.ts +1 -1
  68. package/dist/chat-agents/index.js +1 -1
  69. package/dist/chat-agents/index.js.map +1 -1
  70. package/dist/chat-agents/shared.d.ts +4 -0
  71. package/dist/chat-agents/shared.js +8 -1
  72. package/dist/chat-agents/shared.js.map +1 -1
  73. package/dist/cli.js +28 -6
  74. package/dist/cli.js.map +1 -1
  75. package/dist/config.d.ts +22 -2
  76. package/dist/config.js +40 -97
  77. package/dist/config.js.map +1 -1
  78. package/dist/core/agent-session.d.ts +100 -11
  79. package/dist/core/agent-session.js +734 -165
  80. package/dist/core/agent-session.js.map +1 -1
  81. package/dist/core/ask-user.d.ts +6 -0
  82. package/dist/core/ask-user.js +20 -5
  83. package/dist/core/ask-user.js.map +1 -1
  84. package/dist/core/autopilot-gate.js +2 -3
  85. package/dist/core/autopilot-gate.js.map +1 -1
  86. package/dist/core/bundled-agents.js +9 -29
  87. package/dist/core/bundled-agents.js.map +1 -1
  88. package/dist/core/cache-diagnostics.d.ts +4 -0
  89. package/dist/core/cache-diagnostics.js +4 -1
  90. package/dist/core/cache-diagnostics.js.map +1 -1
  91. package/dist/core/cache-expiry.d.ts +2 -0
  92. package/dist/core/cache-expiry.js +6 -0
  93. package/dist/core/cache-expiry.js.map +1 -1
  94. package/dist/core/checklist-items.d.ts +0 -8
  95. package/dist/core/checklist-items.js +0 -8
  96. package/dist/core/checklist-items.js.map +1 -1
  97. package/dist/core/checkpoint-store.d.ts +17 -0
  98. package/dist/core/checkpoint-store.js +72 -0
  99. package/dist/core/checkpoint-store.js.map +1 -1
  100. package/dist/core/claude-code/complete.d.ts +33 -0
  101. package/dist/core/claude-code/complete.js +112 -0
  102. package/dist/core/claude-code/complete.js.map +1 -0
  103. package/dist/core/claude-code/events.d.ts +65 -0
  104. package/dist/core/claude-code/events.js +434 -0
  105. package/dist/core/claude-code/events.js.map +1 -0
  106. package/dist/core/claude-code/live-session.d.ts +92 -0
  107. package/dist/core/claude-code/live-session.js +519 -0
  108. package/dist/core/claude-code/live-session.js.map +1 -0
  109. package/dist/core/claude-code/loop.d.ts +9 -0
  110. package/dist/core/claude-code/loop.js +15 -0
  111. package/dist/core/claude-code/loop.js.map +1 -0
  112. package/dist/core/claude-code/session-sync.d.ts +28 -0
  113. package/dist/core/claude-code/session-sync.js +53 -0
  114. package/dist/core/claude-code/session-sync.js.map +1 -0
  115. package/dist/core/claude-code/tool-bridge.d.ts +49 -0
  116. package/dist/core/claude-code/tool-bridge.js +352 -0
  117. package/dist/core/claude-code/tool-bridge.js.map +1 -0
  118. package/dist/core/claude-code-version.d.ts +1 -1
  119. package/dist/core/claude-code-version.js +1 -1
  120. package/dist/core/claude-code-version.js.map +1 -1
  121. package/dist/core/code-retrieval.d.ts +1 -1
  122. package/dist/core/code-retrieval.js +2 -2
  123. package/dist/core/code-retrieval.js.map +1 -1
  124. package/dist/core/compaction/compactor.d.ts +25 -1
  125. package/dist/core/compaction/compactor.js +137 -7
  126. package/dist/core/compaction/compactor.js.map +1 -1
  127. package/dist/core/compaction/policy.d.ts +18 -0
  128. package/dist/core/compaction/policy.js +24 -5
  129. package/dist/core/compaction/policy.js.map +1 -1
  130. package/dist/core/compaction/tool-result-pruner.d.ts +10 -0
  131. package/dist/core/compaction/tool-result-pruner.js +14 -0
  132. package/dist/core/compaction/tool-result-pruner.js.map +1 -1
  133. package/dist/core/env-delta.d.ts +3 -3
  134. package/dist/core/env-delta.js +4 -5
  135. package/dist/core/env-delta.js.map +1 -1
  136. package/dist/core/goals-store.d.ts +9 -0
  137. package/dist/core/goals-store.js +111 -50
  138. package/dist/core/goals-store.js.map +1 -1
  139. package/dist/core/internal-diagnostics.d.ts +17 -0
  140. package/dist/core/internal-diagnostics.js +45 -0
  141. package/dist/core/internal-diagnostics.js.map +1 -1
  142. package/dist/core/language-detector.d.ts +2 -3
  143. package/dist/core/language-detector.js.map +1 -1
  144. package/dist/core/local-endpoint-store.d.ts +4 -0
  145. package/dist/core/local-endpoint-store.js +31 -15
  146. package/dist/core/local-endpoint-store.js.map +1 -1
  147. package/dist/core/logger.d.ts +5 -0
  148. package/dist/core/logger.js +10 -2
  149. package/dist/core/logger.js.map +1 -1
  150. package/dist/core/lsp/edit-telemetry.js +3 -1
  151. package/dist/core/lsp/edit-telemetry.js.map +1 -1
  152. package/dist/core/lsp/manager.d.ts +15 -0
  153. package/dist/core/lsp/manager.js +31 -0
  154. package/dist/core/lsp/manager.js.map +1 -1
  155. package/dist/core/mcp/deferred-catalog.d.ts +1 -1
  156. package/dist/core/mcp/deferred-catalog.js +1 -1
  157. package/dist/core/openrouter-catalog-store.d.ts +24 -0
  158. package/dist/core/openrouter-catalog-store.js +140 -0
  159. package/dist/core/openrouter-catalog-store.js.map +1 -0
  160. package/dist/core/plan-delta.d.ts +23 -0
  161. package/dist/core/plan-delta.js +36 -0
  162. package/dist/core/plan-delta.js.map +1 -0
  163. package/dist/core/process-gate.d.ts +17 -0
  164. package/dist/core/process-gate.js +24 -0
  165. package/dist/core/process-gate.js.map +1 -1
  166. package/dist/core/project-discovery.js +2 -2
  167. package/dist/core/project-discovery.js.map +1 -1
  168. package/dist/core/project-files.js +1 -1
  169. package/dist/core/project-files.js.map +1 -1
  170. package/dist/core/prompt-commands.js +41 -75
  171. package/dist/core/prompt-commands.js.map +1 -1
  172. package/dist/core/radio-players.d.ts +28 -0
  173. package/dist/core/radio-players.js +133 -0
  174. package/dist/core/radio-players.js.map +1 -0
  175. package/dist/core/radio.js +20 -3
  176. package/dist/core/radio.js.map +1 -1
  177. package/dist/core/runtime-mode.d.ts +9 -0
  178. package/dist/core/runtime-mode.js +26 -0
  179. package/dist/core/runtime-mode.js.map +1 -1
  180. package/dist/core/session-history.d.ts +7 -0
  181. package/dist/core/session-history.js +34 -2
  182. package/dist/core/session-history.js.map +1 -1
  183. package/dist/core/session-manager.d.ts +5 -1
  184. package/dist/core/session-manager.js +36 -7
  185. package/dist/core/session-manager.js.map +1 -1
  186. package/dist/core/session-preview.js +2 -2
  187. package/dist/core/session-preview.js.map +1 -1
  188. package/dist/core/session-summary-index.d.ts +18 -4
  189. package/dist/core/session-summary-index.js +28 -8
  190. package/dist/core/session-summary-index.js.map +1 -1
  191. package/dist/core/settings-manager.d.ts +7 -0
  192. package/dist/core/settings-manager.js +53 -7
  193. package/dist/core/settings-manager.js.map +1 -1
  194. package/dist/core/shell.d.ts +4 -0
  195. package/dist/core/shell.js +15 -1
  196. package/dist/core/shell.js.map +1 -1
  197. package/dist/core/skills.d.ts +8 -0
  198. package/dist/core/skills.js +15 -5
  199. package/dist/core/skills.js.map +1 -1
  200. package/dist/core/steering.d.ts +4 -0
  201. package/dist/core/steering.js +8 -1
  202. package/dist/core/steering.js.map +1 -1
  203. package/dist/core/stream-diag-level.d.ts +3 -0
  204. package/dist/core/stream-diag-level.js +24 -0
  205. package/dist/core/stream-diag-level.js.map +1 -0
  206. package/dist/core/subagent-manager.d.ts +11 -0
  207. package/dist/core/subagent-manager.js +16 -4
  208. package/dist/core/subagent-manager.js.map +1 -1
  209. package/dist/core/subagent-policy.d.ts +6 -0
  210. package/dist/core/subagent-policy.js +22 -3
  211. package/dist/core/subagent-policy.js.map +1 -1
  212. package/dist/core/subagent-receipt.d.ts +3 -3
  213. package/dist/core/subagent-receipt.js +6 -9
  214. package/dist/core/subagent-receipt.js.map +1 -1
  215. package/dist/core/trophies/catalog-more.js +16 -36
  216. package/dist/core/trophies/catalog-more.js.map +1 -1
  217. package/dist/core/trophies/engine.js +0 -4
  218. package/dist/core/trophies/engine.js.map +1 -1
  219. package/dist/core/trophies/types.d.ts +1 -1
  220. package/dist/core/trophies/types.js +0 -2
  221. package/dist/core/trophies/types.js.map +1 -1
  222. package/dist/core/user-shell-context.d.ts +8 -0
  223. package/dist/core/user-shell-context.js +12 -0
  224. package/dist/core/user-shell-context.js.map +1 -0
  225. package/dist/core/verify-commands.d.ts +1 -1
  226. package/dist/goals-agent/goal-team.js +3 -4
  227. package/dist/goals-agent/goal-team.js.map +1 -1
  228. package/dist/goals-agent/goals-agent.d.ts +1 -1
  229. package/dist/goals-agent/goals-agent.js +4 -3
  230. package/dist/goals-agent/goals-agent.js.map +1 -1
  231. package/dist/modes/acp-mode.d.ts +1 -1
  232. package/dist/modes/acp-mode.js +4 -5
  233. package/dist/modes/acp-mode.js.map +1 -1
  234. package/dist/modes/agent-home-mode.js +5 -5
  235. package/dist/modes/agent-home-mode.js.map +1 -1
  236. package/dist/modes/json-mode.js +5 -0
  237. package/dist/modes/json-mode.js.map +1 -1
  238. package/dist/modes/serve-mode.js +5 -5
  239. package/dist/modes/serve-mode.js.map +1 -1
  240. package/dist/motion-agent/motion-agent.d.ts +12 -5
  241. package/dist/motion-agent/motion-agent.js +24 -9
  242. package/dist/motion-agent/motion-agent.js.map +1 -1
  243. package/dist/subagent-entry.d.ts +1 -0
  244. package/dist/subagent-entry.js +50 -0
  245. package/dist/subagent-entry.js.map +1 -0
  246. package/dist/system-prompt.d.ts +6 -3
  247. package/dist/system-prompt.js +24 -15
  248. package/dist/system-prompt.js.map +1 -1
  249. package/dist/tools/ask-user.js +3 -2
  250. package/dist/tools/ask-user.js.map +1 -1
  251. package/dist/tools/bash.d.ts +7 -0
  252. package/dist/tools/bash.js +23 -8
  253. package/dist/tools/bash.js.map +1 -1
  254. package/dist/tools/checklist.js +6 -11
  255. package/dist/tools/checklist.js.map +1 -1
  256. package/dist/tools/debug.js +6 -9
  257. package/dist/tools/debug.js.map +1 -1
  258. package/dist/tools/document-text.d.ts +6 -0
  259. package/dist/tools/document-text.js +154 -0
  260. package/dist/tools/document-text.js.map +1 -0
  261. package/dist/tools/enter-plan.js +4 -7
  262. package/dist/tools/enter-plan.js.map +1 -1
  263. package/dist/tools/find.d.ts +9 -0
  264. package/dist/tools/find.js +38 -1
  265. package/dist/tools/find.js.map +1 -1
  266. package/dist/tools/generate-image.d.ts +18 -0
  267. package/dist/tools/generate-image.js +208 -17
  268. package/dist/tools/generate-image.js.map +1 -1
  269. package/dist/tools/goals.d.ts +2 -2
  270. package/dist/tools/index.d.ts +5 -2
  271. package/dist/tools/index.js +5 -13
  272. package/dist/tools/index.js.map +1 -1
  273. package/dist/tools/operations.js +1 -1
  274. package/dist/tools/operations.js.map +1 -1
  275. package/dist/tools/overflow.d.ts +2 -0
  276. package/dist/tools/overflow.js +10 -0
  277. package/dist/tools/overflow.js.map +1 -1
  278. package/dist/tools/prompt-hints.d.ts +2 -0
  279. package/dist/tools/prompt-hints.js +16 -9
  280. package/dist/tools/prompt-hints.js.map +1 -1
  281. package/dist/tools/read.js +25 -10
  282. package/dist/tools/read.js.map +1 -1
  283. package/dist/tools/routine-output.d.ts +10 -1
  284. package/dist/tools/routine-output.js +79 -1
  285. package/dist/tools/routine-output.js.map +1 -1
  286. package/dist/tools/screenshot.js +6 -10
  287. package/dist/tools/screenshot.js.map +1 -1
  288. package/dist/tools/side-web-search.d.ts +35 -0
  289. package/dist/tools/side-web-search.js +147 -0
  290. package/dist/tools/side-web-search.js.map +1 -0
  291. package/dist/tools/skill.d.ts +2 -0
  292. package/dist/tools/skill.js +33 -6
  293. package/dist/tools/skill.js.map +1 -1
  294. package/dist/tools/steroids.d.ts +7 -6
  295. package/dist/tools/steroids.js +193 -87
  296. package/dist/tools/steroids.js.map +1 -1
  297. package/dist/tools/subagent-control.js +66 -10
  298. package/dist/tools/subagent-control.js.map +1 -1
  299. package/dist/tools/subagent-shared.d.ts +19 -2
  300. package/dist/tools/subagent-shared.js +35 -10
  301. package/dist/tools/subagent-shared.js.map +1 -1
  302. package/dist/tools/subagent.js +23 -7
  303. package/dist/tools/subagent.js.map +1 -1
  304. package/dist/tools/tool-search.js +7 -1
  305. package/dist/tools/tool-search.js.map +1 -1
  306. package/dist/tools/tool-tiers.d.ts +3 -2
  307. package/dist/tools/tool-tiers.js +7 -5
  308. package/dist/tools/tool-tiers.js.map +1 -1
  309. package/dist/tools/truncate.js +4 -8
  310. package/dist/tools/truncate.js.map +1 -1
  311. package/dist/tools/web-fetch.d.ts +8 -0
  312. package/dist/tools/web-fetch.js +123 -17
  313. package/dist/tools/web-fetch.js.map +1 -1
  314. package/dist/tools/web-search.d.ts +3 -2
  315. package/dist/tools/web-search.js +25 -1
  316. package/dist/tools/web-search.js.map +1 -1
  317. package/dist/ui/App.js +37 -37
  318. package/dist/ui/App.js.map +1 -1
  319. package/dist/ui/components/Footer.js +4 -1
  320. package/dist/ui/components/Footer.js.map +1 -1
  321. package/dist/ui/components/SkillsOverlay.js +2 -1
  322. package/dist/ui/components/SkillsOverlay.js.map +1 -1
  323. package/dist/ui/hooks/useAgentLoop.d.ts +3 -0
  324. package/dist/ui/hooks/useAgentLoop.js +54 -4
  325. package/dist/ui/hooks/useAgentLoop.js.map +1 -1
  326. package/dist/ui/hooks/useContextCompaction.js +1 -0
  327. package/dist/ui/hooks/useContextCompaction.js.map +1 -1
  328. package/dist/ui/language-pack-update.d.ts +25 -0
  329. package/dist/ui/language-pack-update.js +19 -0
  330. package/dist/ui/language-pack-update.js.map +1 -0
  331. package/dist/ui/terminal-history.js +3 -1
  332. package/dist/ui/terminal-history.js.map +1 -1
  333. package/dist/utils/http-body.d.ts +5 -0
  334. package/dist/utils/http-body.js +5 -0
  335. package/dist/utils/http-body.js.map +1 -1
  336. package/dist/utils/image.d.ts +11 -0
  337. package/dist/utils/image.js +34 -1
  338. package/dist/utils/image.js.map +1 -1
  339. package/dist/utils/plan-steps.d.ts +1 -0
  340. package/dist/utils/plan-steps.js +10 -0
  341. package/dist/utils/plan-steps.js.map +1 -1
  342. package/dist/utils/prompt-enhancer.d.ts +3 -1
  343. package/dist/utils/prompt-enhancer.js +21 -16
  344. package/dist/utils/prompt-enhancer.js.map +1 -1
  345. package/package.json +24 -7
  346. package/assets/skills/clarify/SKILL.md +0 -39
  347. package/assets/skills/code-review/SKILL.md +0 -88
  348. package/assets/skills/code-review/references/agent-diffs.md +0 -27
  349. package/assets/skills/code-review/references/tests.md +0 -19
  350. package/assets/skills/evidence-led-ui/LICENSES.md +0 -80
  351. package/assets/skills/evidence-led-ui/SKILL.md +0 -100
  352. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/LICENSE +0 -21
  353. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airbnb/DESIGN.md +0 -545
  354. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airtable/DESIGN.md +0 -554
  355. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/apple/DESIGN.md +0 -562
  356. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/binance/DESIGN.md +0 -634
  357. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw/DESIGN.md +0 -544
  358. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw-m/DESIGN.md +0 -503
  359. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bugatti/DESIGN.md +0 -454
  360. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cal/DESIGN.md +0 -542
  361. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/claude/DESIGN.md +0 -589
  362. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clay/DESIGN.md +0 -541
  363. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clickhouse/DESIGN.md +0 -544
  364. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cohere/DESIGN.md +0 -451
  365. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/coinbase/DESIGN.md +0 -570
  366. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/composio/DESIGN.md +0 -506
  367. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cursor/DESIGN.md +0 -537
  368. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/dell-1996/DESIGN.md +0 -632
  369. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/elevenlabs/DESIGN.md +0 -504
  370. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/expo/DESIGN.md +0 -526
  371. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ferrari/DESIGN.md +0 -531
  372. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/figma/DESIGN.md +0 -578
  373. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/framer/DESIGN.md +0 -544
  374. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hashicorp/DESIGN.md +0 -575
  375. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hp/DESIGN.md +0 -670
  376. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ibm/DESIGN.md +0 -550
  377. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/intercom/DESIGN.md +0 -546
  378. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/kraken/DESIGN.md +0 -125
  379. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lamborghini/DESIGN.md +0 -288
  380. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/linear.app/DESIGN.md +0 -548
  381. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lovable/DESIGN.md +0 -298
  382. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mastercard/DESIGN.md +0 -365
  383. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/meta/DESIGN.md +0 -683
  384. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/minimax/DESIGN.md +0 -746
  385. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mintlify/DESIGN.md +0 -852
  386. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/miro/DESIGN.md +0 -825
  387. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mistral.ai/DESIGN.md +0 -773
  388. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mongodb/DESIGN.md +0 -767
  389. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nike/DESIGN.md +0 -575
  390. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nintendo-2001/DESIGN.md +0 -649
  391. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/notion/DESIGN.md +0 -821
  392. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nvidia/DESIGN.md +0 -640
  393. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ollama/DESIGN.md +0 -539
  394. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/opencode.ai/DESIGN.md +0 -521
  395. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/pinterest/DESIGN.md +0 -597
  396. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/playstation/DESIGN.md +0 -661
  397. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/posthog/DESIGN.md +0 -690
  398. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/raycast/DESIGN.md +0 -669
  399. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/renault/DESIGN.md +0 -589
  400. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/replicate/DESIGN.md +0 -616
  401. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/resend/DESIGN.md +0 -585
  402. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/revolut/DESIGN.md +0 -636
  403. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/runwayml/DESIGN.md +0 -244
  404. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sanity/DESIGN.md +0 -357
  405. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sentry/DESIGN.md +0 -551
  406. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/shopify/DESIGN.md +0 -516
  407. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/slack/DESIGN.md +0 -482
  408. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spacex/DESIGN.md +0 -363
  409. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spotify/DESIGN.md +0 -246
  410. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/starbucks/DESIGN.md +0 -580
  411. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/stripe/DESIGN.md +0 -487
  412. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/supabase/DESIGN.md +0 -462
  413. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/superhuman/DESIGN.md +0 -448
  414. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/tesla/DESIGN.md +0 -286
  415. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/theverge/DESIGN.md +0 -339
  416. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/together.ai/DESIGN.md +0 -633
  417. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/uber/DESIGN.md +0 -636
  418. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vercel/DESIGN.md +0 -736
  419. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vodafone/DESIGN.md +0 -538
  420. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/voltagent/DESIGN.md +0 -521
  421. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/warp/DESIGN.md +0 -526
  422. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/webflow/DESIGN.md +0 -588
  423. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wired/DESIGN.md +0 -497
  424. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wise/DESIGN.md +0 -544
  425. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/x.ai/DESIGN.md +0 -465
  426. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/zapier/DESIGN.md +0 -537
  427. package/assets/skills/evidence-led-ui/data/corpus-manifest.json +0 -768
  428. package/assets/skills/evidence-led-ui/data/observations.json +0 -47053
  429. package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
  430. package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
  431. package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
  432. package/assets/skills/evidence-led-ui/references/direction.md +0 -124
  433. package/assets/skills/evidence-led-ui/references/methodology.md +0 -72
  434. package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
  435. package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
  436. package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
  437. package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
  438. package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
  439. package/assets/skills/refactoring/SKILL.md +0 -87
  440. package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
  441. package/assets/skills/refactoring/references/legacy.md +0 -70
  442. package/assets/skills/refactoring/references/smells.md +0 -71
  443. package/assets/skills/root-cause/SKILL.md +0 -46
  444. package/assets/skills/shared-language/SKILL.md +0 -32
  445. package/assets/skills/tdd/SKILL.md +0 -42
  446. package/dist/core/setup-history.d.ts +0 -6
  447. package/dist/core/setup-history.js +0 -55
  448. package/dist/core/setup-history.js.map +0 -1
  449. package/dist/core/style-packs/index.d.ts +0 -18
  450. package/dist/core/style-packs/index.js +0 -60
  451. package/dist/core/style-packs/index.js.map +0 -1
  452. package/dist/core/style-packs/packs.d.ts +0 -8
  453. package/dist/core/style-packs/packs.js +0 -188
  454. package/dist/core/style-packs/packs.js.map +0 -1
  455. package/dist/interactive.d.ts +0 -2
  456. package/dist/interactive.js +0 -257
  457. package/dist/interactive.js.map +0 -1
  458. package/dist/motion-agent/motion-review-coverage.d.ts +0 -12
  459. package/dist/motion-agent/motion-review-coverage.js +0 -33
  460. package/dist/motion-agent/motion-review-coverage.js.map +0 -1
  461. package/dist/motion-agent/motion-review-session.d.ts +0 -65
  462. package/dist/motion-agent/motion-review-session.js +0 -422
  463. package/dist/motion-agent/motion-review-session.js.map +0 -1
  464. package/dist/tools/code-nav.d.ts +0 -29
  465. package/dist/tools/code-nav.js +0 -299
  466. package/dist/tools/code-nav.js.map +0 -1
  467. package/dist/tools/code-skeleton.d.ts +0 -28
  468. package/dist/tools/code-skeleton.js +0 -115
  469. package/dist/tools/code-skeleton.js.map +0 -1
  470. package/dist/tools/search-code.d.ts +0 -10
  471. package/dist/tools/search-code.js +0 -90
  472. package/dist/tools/search-code.js.map +0 -1
  473. package/dist/ui/stores/index.d.ts +0 -2
  474. package/dist/ui/stores/index.js +0 -3
  475. package/dist/ui/stores/index.js.map +0 -1
  476. package/dist/utils/format.d.ts +0 -16
  477. package/dist/utils/format.js +0 -159
  478. package/dist/utils/format.js.map +0 -1
  479. package/dist/utils/shell.d.ts +0 -2
  480. package/dist/utils/shell.js +0 -8
  481. package/dist/utils/shell.js.map +0 -1
@@ -1,110 +0,0 @@
1
- # Slop Tells and Replacement Moves
2
-
3
- ## Contents
4
-
5
- 1. How to use this list
6
- 2. Composition tells
7
- 3. Colour, type, and surface tells
8
- 4. Content and copy tells
9
- 5. Motion and interaction tells
10
- 6. Craft regressions
11
- 7. Calibration: the default clusters
12
- 8. Final slop review
13
-
14
- ## 1. How to use this list
15
-
16
- A tell is not a ban. It is a choice that appears whatever the subject, so it signals "nobody decided this". Where the user's brief or the existing product pins down a direction, follow it exactly, even if it matches a tell. Where an axis is free, do not spend it on a tell.
17
-
18
- For each tell found in a plan or render, apply the replacement move, or keep it only if the "Keep when" condition holds and you write one sentence: **"This belongs because…"** naming the product, audience, or content reason. "Modern", "premium", "clean", "engaging", or "on brand" is not a reason.
19
-
20
- Run the list twice: on the written design thesis before code, and on desktop + mobile screenshots after.
21
-
22
- ## 2. Composition tells
23
-
24
- | Tell | Replacement move | Keep when |
25
- | --- | --- | --- |
26
- | Centered gradient hero: oversized centered headline, violet/blue glow, two CTAs, floating screenshot below | Open with the most characteristic thing in the subject's world: real product state, real data, a working demo, a strong photograph, or a plain typographic claim. Choose alignment after content. | The brand owns the gradient/light, the page has one conversion job, and the centered pause serves the narrative. |
27
- | Three equal icon-title-copy feature cards | Rank the content; give the main point more space; show the feature working; use a list or table for true peers. | Exactly three peer choices exist and comparison is the task. |
28
- | Bento grid by default | Map module size to priority and reading order; use a sequence or list otherwise. | A genuine overview of heterogeneous modules that users scan or rearrange. |
29
- | SaaS card kit: everything in identical rounded cards, one radius, same soft grey shadow | Group with whitespace and alignment. Containers only for real objects (selectable, draggable, separate records). Radius varies by role. | The items really are separate records. |
30
- | Decorative eyebrow: tracked ALL-CAPS or mono label above every heading | Delete it. | It names real taxonomy, step, status, or technical context. |
31
- | Numbered markers (01 / 02 / 03) on non-sequential content | Remove numbers. | The content is a real sequence: steps, timeline, ranking. |
32
- | Big-number stat strip ("10x faster", "99.9%", "50k+") | Show a sourced metric with unit, time frame, and consequence, or remove it. | The metric is auditable and central to the screen's decision. |
33
- | Floating tilted screenshot or fake dashboard mockup | Real UI at readable scale, cropped to the part that proves the adjacent claim. | Spatial overview matters, the image is current, perspective hides nothing. |
34
- | Fake terminal or code theatre | Real, copyable, versioned commands and output, or ordinary product evidence. | The user's task is genuinely code/CLI. |
35
- | Pills everywhere: nav, buttons, filters, badges, inputs | Pills for toggles/tags only; a small radius vocabulary elsewhere. | The product already uses a capsule motif deliberately. |
36
- | Icon medallion: line icon in the same tinted square above every section | Remove icons that repeat the heading. | Icons speed navigation, status scanning, or a real category system. |
37
- | Logo wall of invented or unlicensed customers | Real, permitted logos, or no social proof. | Supplied and approved. |
38
-
39
- ## 3. Colour, type, and surface tells
40
-
41
- | Tell | Replacement move | Keep when |
42
- | --- | --- | --- |
43
- | Purple/indigo/violet gradient as the default brand; Tailwind `indigo-500`/`violet-600` primary | Derive the hue from the subject, materials, or existing brand; build an OKLCH ramp (`references/direction.md` § Colour). | The existing brand is that hue. |
44
- | Out-of-box shadcn/Tailwind look: `slate`/`zinc` greys, `rounded-lg` everywhere, `ring-2 ring-offset-2`, default button set | Keep primitives for behaviour; restyle tokens: neutrals tinted toward the brand hue, a deliberate radius scale, the project's own focus treatment. | The project already ships that look; then preserve it. |
45
- | Inter, Geist, or bare `system-ui` as the whole aesthetic; Arial/Helvetica by neglect | Choose a family or pairing for this subject (`references/direction.md` § Type). | The existing system uses it, native fidelity is the goal, webfonts are prohibited, or it is dense app chrome. |
46
- | One headline word accented in gradient, italic, or colour | Let the whole headline carry the treatment, or make emphasis carry meaning (a value, a name). | The accented word is data. |
47
- | Glass cards: blurred translucent panels over colour blobs | One clear material model (flat, tonal, bordered, or measured elevation), one reason per layer. | Content sits over live media/map/video, or translucency is the local platform material. |
48
- | Dark equals premium; near-black `#0B0B0B`/`#111` with one acid-green or vermilion accent | Choose theme from environment, task duration, and media. If dark, tune OKLCH neutrals and measure contrast in both themes. | Media needs darkness, low-light use, or a tested dark-first brand. |
49
- | Warm cream (~`#F4F1EA`) + high-contrast serif + terracotta (~`#D97757`) | Anthropic names this its own Claude-interaction look; on a user's brief it reads as a tell. Choose another direction. | The brief asks for it. |
50
- | Broadsheet pastiche: hairline rules, zero radius, dense columns | Editorial structure only for editorial content. | The surface is editorial. |
51
- | Soft semantic tint-on-tint (low-opacity hue bg + same-hue text/icon/border) | `references/craft-rulings.md` § No soft semantic tint-on-tint. This one is a binding default, not a style preference. | The user requests it or scope requires reusing an existing variant. |
52
- | Huge type (96–160px) as the only idea | Build contrast from wording, measure, weight, width, and placement before size. | Campaign/editorial, short phrase, localization tested, type is the signature. |
53
- | Monospace for small data labels by reflex | Mono only for code and IDs; tabular numerals of the body face for figures. | Technical context the user reads as code. |
54
-
55
- ## 4. Content and copy tells
56
-
57
- | Tell | Replacement move | Keep when |
58
- | --- | --- | --- |
59
- | Lorem ipsum or "Feature one / Feature two" in review | Write real copy first (content-first rule in SKILL.md). | Never in review; label fixtures as fixtures. |
60
- | Fake metrics, testimonials, ratings, avatars, customer names, precise business data | Real content, or plainly labelled example data, or omit. | The user supplies approved fixtures or asks for a clearly marked prototype dataset. |
61
- | Generic CTAs: "Get started", "Learn more", "Submit", "Unlock the power of…" | Name the outcome ("Create invoice", "Book a table"). Keep the verb through the flow ("Publish" → toast "Published"). | Never as a default. |
62
- | Hype voice: "seamless", "effortless", "supercharge", "next-level", "revolutionize" | Say what it does in the user's own words. | Supplied brand copy. |
63
- | Middle-dot meta strings, `WORD — fragment` labels, `→` on every link | Plain sentence-case labels; arrows only where direction is literal. | Supplied copy. |
64
- | Emoji as icons, bullets, status, empty-state art | One coherent icon family (`references/craft-rulings.md` § 1). | Requested, or emoji is the content itself. |
65
- | Placeholder illustration: blob people, abstract 3D shapes, generic stock, unrelated generated hero art | Real product imagery, photography, data, or no image. | Requested and appropriate to the subject. |
66
- | Subtitle under every heading restating it | `references/craft-rulings.md` § Copy must earn its space. | It adds information needed here. |
67
- | Em dashes in UI copy | Full stop, comma, colon, parentheses, or two sentences. | Requested, or exact supplied/quoted/legal copy. |
68
- | Apologetic or vague errors ("Oops! Something went wrong") | Say what happened and how to fix it; no apology. | Never. |
69
-
70
- ## 5. Motion and interaction tells
71
-
72
- | Tell | Replacement move | Keep when |
73
- | --- | --- | --- |
74
- | Fade-and-slide-up on every section as it scrolls in | At most one orchestrated moment; content readable with motion off. | A single deliberate narrative beat. |
75
- | Hover lift, bob, or scale on every card/button | Colour, border, underline, icon-fill, opacity, or restrained shadow; stable geometry. | Movement communicates real drag, depth, or direct manipulation. |
76
- | Ambient perpetual motion: particles, gradient drift, marquees, auto-rotating cards | Still resting screen; animate state change only. Pause control if > 5 s. | Motion is the content (audio, time, live activity) and works paused. |
77
- | `transition: all` | Name properties; shared duration/easing tokens. | Never. |
78
- | Abrupt state swaps; layout shift on load | Short transitions on interpolable properties; skeletons matching final geometry; focus visible immediately. | Reduced motion or urgent feedback needs an instant change. |
79
- | Whole card clickable with nested buttons | One link target per card, or explicit buttons; never nested interactive elements. | Never. |
80
-
81
- ## 6. Craft regressions
82
-
83
- Treat each as a tell when found in a render; fixes live in `references/craft-rulings.md`:
84
-
85
- - accidental misalignment and drifting content rails;
86
- - a local button, modal, card, status colour, or focus ring duplicating an existing primitive with slightly different values;
87
- - mixed icon families (package icons, hand-drawn SVG, text glyphs together);
88
- - sticky pointer focus, stacked focus rings, edge-hugging dropdown chevrons.
89
-
90
- ## 7. Calibration: the default clusters
91
-
92
- Generated UI clusters into a few looks that appear whatever the subject (SNAPSHOT/DEDUCED; sources in `references/provenance.md` § Slop-tell sources). Recognise them in your own plan:
93
-
94
- 1. Purple-to-blue SaaS: centered hero, glow, Inter, three feature cards, logo wall, three-tier pricing.
95
- 2. shadcn default: zinc greys, `rounded-lg` cards, outline buttons, four KPI cards over a line chart.
96
- 3. Dark "premium": near-black, one neon accent, glass cards, grid-line background, mono labels.
97
- 4. Warm editorial: cream, serif display, terracotta accent, hairline rules.
98
- 5. Template chrome: ALL-CAPS eyebrows, middle-dot meta, `→` on links, emoji section markers.
99
-
100
- Ask: "Would I produce this same plan for a neighbouring product?" If yes, change the most transferable axis (usually colour, type, or hero composition) and state what changed and why.
101
-
102
- ## 8. Final slop review
103
-
104
- On the rendered desktop and mobile screenshots:
105
-
106
- 1. Cover the logo and accent colour. Can you still name the product and task?
107
- 2. Does any tell from §§ 2–5 remain without a "This belongs because…" sentence?
108
- 3. Is every number, quote, and logo traceable to real content or labelled as a fixture?
109
- 4. Is there exactly one memorable device, with everything around it quiet, and does it survive mobile without clutter?
110
- 5. Remove one decorative element. If the screen did not get worse, leave it removed.
@@ -1,97 +0,0 @@
1
- # Archetype Guidance
2
-
3
- ## How to choose
4
-
5
- Choose the archetype by the screen’s job, not the company category. A developer company’s billing console is application UI; its API reference is documentation; its launch page is marketing/brand. Hybrid screens may borrow one secondary archetype, but one must lead.
6
-
7
- All coverage and counts come from `data/observations.json`, commit `664b3e78fd1a298ba11973822da988483256d4b4`, extraction version 1. Each section names two aligned references and one contrast. References are observational analyses, not templates to copy.
8
-
9
- Every archetype also follows `craft-rulings.md`: no emoji UI, one coherent icon family, uniform key lines, reuse of local primitives, purposeful non-abrupt feedback without generic hover lift, intentional typography, measured contrast, consistent flow, and no generated em dashes in UI copy. Every implemented surface must also pass the applicable `production-contract.md` checks; archetype evidence never overrides semantics, accessibility, resilience, performance, platform, or trust requirements.
10
-
11
- ## Marketing and brand
12
-
13
- **Coverage:** **29/74 documents**. Dark **17/29**, mixed **7/29**, light **5/29**; motion mentioned in **19/29**. This is the largest and most technology-heavy group, so avoid exporting its conventions to product screens.
14
-
15
- **Design read:** Establish one claim, one audience, and one conversion. Let content cadence determine whether the composition is cinematic, editorial, demonstrative, or direct.
16
-
17
- **Direction:** Use a strong typographic or media hierarchy, variable section rhythm, and one subject-specific signature. Motion may stage narrative transitions, but it must not delay comprehension or interaction. Keep conversion hierarchy unmistakable.
18
-
19
- **Aligned evidence:** `apple`, `sanity`. **Useful contrast:** `figma`.
20
-
21
- **Reject:** A centered gradient headline, generic dashboard mockup, three equal feature cards, and floating glass shapes that could advertise any SaaS.
22
-
23
- ## Application UI
24
-
25
- **Coverage:** **7/74 documents**. Focus mentioned in **7/7**, disabled state in **6/7**, motion in **5/7**, keyboard language in only **1/7**. The sample is small and still based on public-site analyses.
26
-
27
- **Design read:** Name the repeated task, frequency, consequence of error, user expertise, and information that must remain visible while acting.
28
-
29
- **Direction:** Optimize stable navigation, predictable control placement, concise hierarchy, and fast state recognition. Use density appropriate to task frequency. Keep decorative layers behind the work surface. Add keyboard and loading/empty behavior even though the corpus documents it poorly.
30
-
31
- **Aligned evidence:** `linear.app`, `superhuman`. **Useful contrast:** `intercom`.
32
-
33
- **Reject:** Marketing-scale headings, scroll-led reveals, and oversized cards that turn repeated work into a tour.
34
-
35
- ## Dashboards and data-dense tools
36
-
37
- **Coverage:** **5/74 documents**. Dense language in **4/5**, focus in **5/5**, keyboard in **3/5**, error in **5/5**. Theme is dark **3/5**, light **1/5**, mixed **1/5**; the denominator is too small to prescribe a theme.
38
-
39
- **Design read:** Identify the decision the dashboard supports, update frequency, comparison axis, alert severity, and the smallest unit users scan repeatedly.
40
-
41
- **Direction:** Build a scan path before styling cards. Prefer alignment, separators, restrained surface steps, and semantic status encoding. Preserve row/column context, expose units, support keyboard navigation, and make filters visibly affect results. Charts should answer named questions rather than fill grid slots.
42
-
43
- **Aligned evidence:** `airtable`, `sentry`. **Useful contrast:** `miro`.
44
-
45
- **Reject:** Random metric tiles, equal visual weight for all data, unlabeled sparklines, and decorative gradients that compete with status colors.
46
-
47
- ## Commerce and marketplaces
48
-
49
- **Coverage:** **12/74 documents**. Theme is light **5/12**, dark **4/12**, mixed **3/12**; subtle-shadow policy appears in **8/12**; loading in **3/12** and empty state in **1/12**. Coverage spans retail, fintech, travel, and payments, so transaction risk varies widely.
50
-
51
- **Design read:** Resolve discovery versus purchase, inventory variability, trust burden, comparison behavior, and the role of imagery.
52
-
53
- **Direction:** Make product evidence, price, availability, trust, and primary transaction action legible in that order. Let imagery dictate card geometry when imagery is decision-critical. Use material softness only when it supports tactility or approachability. Design unavailable, loading, saved, and failure states explicitly.
54
-
55
- **Aligned evidence:** `airbnb`, `nike`. **Useful contrast:** `binance`.
56
-
57
- **Reject:** Generic product cards with fake ratings, identical crops, hidden fees, or a brand accent applied equally to navigation, price, badges, and purchase action.
58
-
59
- ## Editorial and content
60
-
61
- **Coverage:** **5/74 documents**. Asymmetry appears in **3/5**, full-bleed composition in **4/5**, motion in **1/5**, sharp-corner language in **3/5**. This is a small sample dominated by technology and media.
62
-
63
- **Design read:** Name the reading mode, expected session length, content hierarchy, recirculation goal, and whether imagery or text carries authority.
64
-
65
- **Direction:** Design reading rhythm through measure, leading, headline contrast, captions, metadata, and deliberate interruption. Use asymmetry when it clarifies editorial priority. Keep controls quiet and persistent enough to support progress, saving, or navigation.
66
-
67
- **Aligned evidence:** `wired`, `theverge`. **Useful contrast:** `spotify`.
68
-
69
- **Reject:** SaaS feature cards, pill labels on every taxonomy term, animated ornaments beside long-form copy, and uniform modules that erase editorial priority.
70
-
71
- ## Documentation and developer tools
72
-
73
- **Coverage:** **16/74 documents**. Dark **11/16**, mixed **4/16**, light **1/16**; sidebar language **8/16**; focus **13/16**; keyboard language **0/16**. The category is well represented but heavily biased toward developer marketing surfaces.
74
-
75
- **Design read:** Determine whether the user is learning, looking up, debugging, or copying; identify versioning, code-language, and navigation depth.
76
-
77
- **Direction:** Prioritize information scent, stable navigation, readable prose measure, copyable code, visible current context, and search. A technical accent or monospace register can support meaning, but code should not become decoration. Add keyboard access and command discoverability despite the corpus gap.
78
-
79
- **Aligned evidence:** `mintlify`, `vercel`. **Useful contrast:** `hashicorp`.
80
-
81
- **Reject:** Terminal theater, fake logs, neon syntax everywhere, hidden navigation, and dark mode chosen solely to look “developer.”
82
-
83
- ## Mobile and native surfaces
84
-
85
- **Coverage:** **0/74 documents**. The corpus cannot support a quantitative mobile/native house style.
86
-
87
- **Design read:** Resolve platform, input mode, reach zones, navigation convention, offline behavior, permissions, interruption, and whether the surface is phone, tablet, watch, or desktop native.
88
-
89
- **Direction:** Preserve the project’s platform conventions and native controls. Use official platform guidance and rendered/device testing as primary evidence. Borrow only content hierarchy and brand semantics from the closest corpus archetype. Plan touch, keyboard, pointer, dynamic type, safe areas, orientation, and reduced motion as applicable.
90
-
91
- **Aligned evidence:** none in this corpus. **Closest structural references:** `airbnb`, `superhuman`. **Useful contrast:** `apple` marketing analysis, which must not be mistaken for native UI guidance.
92
-
93
- **Reject:** Shrinking a desktop web composition into a phone viewport or inventing gestures without discoverable alternatives.
94
-
95
- ## Cross-archetype rule
96
-
97
- Select **two aligned references and one contrast**, then write why each is relevant to this exact screen. If the same palette, radius, font stack, composition, or motion policy survives unchanged across unrelated briefs, the thesis is under-specified.
@@ -1,242 +0,0 @@
1
- # Interface Craft Rulings
2
-
3
- ## Contents
4
-
5
- 1. Icons, never emoji
6
- 2. Uniform geometry and alignment
7
- 3. Reuse before invention
8
- 4. Motion without generic hover lift
9
- 5. Typography and Google Fonts loading
10
- 6. Contrast as a release requirement
11
- 7. Consistency and flow
12
- 8. UI copy punctuation
13
- 9. Final craft check
14
-
15
- These are binding defaults for UI implementation and review. They reflect Nolan's product taste, current accessibility guidance, current web-font delivery guidance, established design-system motion/grid practices, and the pinned observational corpus. Override one only when the user explicitly requests the exception or the existing product has a stronger documented rule.
16
-
17
- ## 1. Icons, never emoji
18
-
19
- Do not use emoji as interface icons, bullets, status marks, empty-state decoration, or visual shorthand unless the user explicitly requests emoji.
20
-
21
- 1. Inspect the project for an existing icon system and reuse it.
22
- 2. If none exists and adding a dependency is allowed, choose one coherent stack-specific package. Default to Lucide for a restrained line system. Use Material Symbols when variable fill/weight/optical sizing fits an existing Google/Material language. Use Phosphor when the product needs a broader weight range and a softer illustrative voice.
23
- 3. Do not mix icon families within one product surface.
24
- 4. Do not hand-draw substitute SVGs when the selected package already has the icon.
25
- 5. Match icon stroke/fill weight, optical size, control size, and color role across repeated components.
26
- 6. Prefer visible text beside unfamiliar actions. Decorative icons are hidden from assistive technology. Icon-only buttons receive an accessible name on the button, a visible tooltip where useful, and at least a 44 by 44 CSS-pixel target.
27
-
28
- Lucide's current accessibility guidance recommends visible labels in most cases, consistent icon treatment, keyboard access, adequate contrast, and a 44 by 44 target wrapper. Material Symbols provides variable fill, weight, grade, and optical-size axes; use those axes systematically rather than mixing arbitrary styles.
29
-
30
- ## 2. Uniform geometry and alignment
31
-
32
- Uniformity means shared geometry, not equal visual importance.
33
-
34
- - Establish container edges, columns, gutters, spacing tokens, control heights, border positions, and text baselines before styling individual sections.
35
- - Repeated sections align to the same key lines. Cards in the same family share padding, header placement, border treatment, and action placement.
36
- - Vertical dividers meet related horizontal boundaries cleanly. Avoid one-pixel drift, almost-aligned edges, arbitrary indents, and section widths that change without a content reason.
37
- - Use one spacing rhythm. Prefer existing project tokens; otherwise derive a compact 4 or 8 pixel scale appropriate to density.
38
- - Preserve alignment through responsive recomposition. Mobile may change order or layout, but repeated controls and content edges remain internally consistent.
39
- - Break the grid only to express real hierarchy, media behavior, or editorial emphasis. A deliberate exception should be visible as an exception, not look accidental.
40
-
41
- ### Shared content rails and spacing ownership
42
-
43
- Establish one page-shell or container primitive that owns the default max-width and responsive inline gutters. Reuse it for navigation, headers, breadcrumbs, main content, adjacent sections, and footers. A full-bleed background or divider may span the viewport, but its inner content returns to the shared rail. A navbar that is slightly wider or narrower than the page body, or neighboring sections with almost-matching edges, is a craft failure unless the user or content explicitly requires a different composition.
44
-
45
- Use the project's spacing tokens for repeated section padding, stack gaps, grid gaps, and component insets. The parent layout owns spacing between siblings; each component owns its internal padding. Do not combine ad hoc child margins, wrapper padding, and arbitrary offsets until one section merely looks close to another. A deliberate nested rail, breakout, or asymmetric section needs a visible hierarchy or content reason and must resolve cleanly at every breakpoint.
46
-
47
- Test by drawing vertical guides through navigation, header, main, repeated sections, and footer at narrow, intermediate, desktop, and wide sizes. Their inner edges and breakpoint changes must align exactly by default. Compare repeated vertical gaps and section padding side by side; equal roles use equal tokens.
48
-
49
- ### Control icon insets
50
-
51
- A select, dropdown, or combobox chevron is part of the control anatomy, not decoration pasted onto its edge. Give every trailing icon a deliberate `inset-inline-end` that follows the control's horizontal-padding token. Reserve `padding-inline-end` for the outer inset, icon width, and a readable gap so labels, selected values, placeholders, loading indicators, clear buttons, and long or localized content never collide with it. An icon at `right: 0`, touching the border, or squeezed into an unreserved text area is a craft failure.
52
-
53
- Keep the icon optically centered and preserve the full control hit area. Native select text padding does not reliably reposition the browser-drawn arrow. Choose one path: retain native appearance and verify it on supported platforms, or reuse a shared native-select wrapper with `appearance: none` and one decorative custom chevron. Do not build a custom ARIA select merely to move an arrow.
54
-
55
- For the custom-arrow path, the wrapper owns positioning, the select reserves `padding-inline-end`, and the icon has its own `inset-inline-end`, `pointer-events: none`, and assistive-technology hiding. Reserve at least inset + icon width + text gap using shared tokens; 40px is not a universal requirement. Remove the native indicator only with a visible replacement, including in forced-colors mode. Check that exactly one arrow renders and clicking directly on it still opens the select. Use logical inline properties and verify RTL rather than hard-coding right-side geometry.
56
-
57
- Test every control size with the longest plausible value, 200% text zoom, narrow width, RTL, disabled/error/loading states, and both native and custom rendering paths. The trailing inset should visually belong to the same spacing rhythm as the leading content inset.
58
-
59
- Carbon's grid guidance uses consistent mini-unit multiples, key lines, fixed padding within breakpoints, and type aligned to box padding. Apply the principle through the project's own grid rather than copying Carbon's exact values.
60
-
61
- ## 3. Reuse before invention
62
-
63
- Before creating any token, component, style, or interaction:
64
-
65
- 1. Search the project for the same semantic role.
66
- 2. Reuse the existing component and variant when it meets the need.
67
- 3. Extend the nearest primitive when the need is genuinely new.
68
- 4. Create a new primitive only when reuse or extension would distort semantics.
69
-
70
- Do not duplicate button systems, card shells, form controls, modal behavior, status colors, spacing scales, icon wrappers, focus rings, or motion curves. Reuse class utilities and design tokens where they already exist. Same function means same label, icon, accessible name, state treatment, and placement across pages.
71
-
72
- ## 4. Motion without generic hover lift
73
-
74
- Every interactive component must provide clear feedback for relevant hover, focus, press, selected, expanded, loading, success, and error states. Feedback should not feel abrupt when an interpolated transition improves comprehension.
75
-
76
- Default motion behavior:
77
-
78
- - Do not use generic `translateY` hover lift, bobbing, floating, card jumping, or indiscriminate scale-up.
79
- - Prefer background, foreground, border, underline, icon fill/weight, opacity, and restrained shadow transitions.
80
- - Press feedback should feel connected to activation. Prefer color, inset, fill, or a brief controlled compression only when it matches the material model.
81
- - Animate state and continuity, not decoration. Do not add ambient or perpetual motion to make a static layout feel designed.
82
- - Never use `transition: all`. Name the properties that are allowed to interpolate.
83
- - Avoid animating layout properties such as `width`, `height`, `top`, and `left` unless spatial change is the meaning and performance is verified.
84
- - Keep focus indication immediate and visible. A transition must never delay awareness of keyboard focus.
85
-
86
- ### No sticky pointer focus
87
-
88
- DOM focus can legitimately remain after a click or native popup dismissal. Having focus and painting a focus indicator are separate decisions. Text-entry controls may legitimately match `:focus-visible` after pointer activation; user/browser preferences may also require visible focus. Do not treat these as stale-ring bugs. Genuine selected, expanded, validation, and drag states must retain their own semantics and styling.
89
-
90
- #### Diagnose the painted layer first
91
-
92
- Reproduce the exact interaction sequence. Inspect the active element, `:focus`, `:focus-visible`, ancestor `:focus-within`, state attributes/classes, and computed styles on the control, wrapper, and `::before`/`::after`. Trace outlines, borders, box shadows (including ring utilities), backgrounds, and glass reflections to their winning rules. Record which layer draws the unwanted edge and which event leaves it visible. A screenshot cannot distinguish these causes.
93
-
94
- Fix that owner and inspect its callers. One shared primitive or utility owns the focus indicator and its width, offset, and color tokens. Do not add a second editor-local ring, blanket ancestor highlight, specificity escalation, or `!important` patch over the shared rule. Keep material decoration and selection separate from focus. Reuse the established restrained indicator, but never force a universal hairline at the expense of visibility, contrast, forced colors, or platform requirements. Verify the combined painted result, not outline width alone.
95
-
96
- #### Modality without keyboard regressions
97
-
98
- Prefer native `:focus-visible` and existing accessible primitives. Add or change custom modality handling only for a reproduced supported-browser defect; use one shared policy, not per-control document listeners.
99
-
100
- - Pointer interaction may hide only the inappropriate pointer-originated treatment; it must not blur the control or clear real selection.
101
- - Tab and Shift+Tab reveal focus immediately. Composite widgets must also reveal focus when their supported navigation keys move it. Preserve keyboard and assistive-technology focus return after overlays and programmatic moves.
102
- - Do not equate every `keydown` with navigation. Space, Enter, typing, modifier-only keys, and global shortcuts must not blindly resurrect a stale ring on the last pointer-focused control. Nor should they blindly clear an existing keyboard indicator. Keep activation and text-entry behavior intact; if a key opens a menu or moves focus, the destination still needs appropriate focus feedback.
103
- - Never fix rings using blanket `outline: none`, a Tab-only global accessibility policy, prevented native key behavior, or forced blur.
104
-
105
- #### Required interaction regression matrix
106
-
107
- For changes to focus, control edges, or dropdown anatomy, run applicable rows in a real browser. Add regressions to existing browser tests where available; otherwise record manual steps and results. Do not invent a new test suite just for this check.
108
-
109
- | Sequence or state | Required result |
110
- |---|---|
111
- | Pointer open → choose option or dismiss → Space/Enter or an unrelated shortcut → Tab → click blank space | No custom stale ring is resurrected merely by a keydown; native activation still works; Tab immediately reveals the correct focus target; pointer cleanup preserves genuine states. Test selection and dismissal separately. |
112
- | Tab/Shift+Tab → activate → Escape/close → resume navigation | Visible focus throughout keyboard use, correct return target, no trap; supported arrow-key navigation also works. |
113
- | Pointer into text input → type; keyboard into input → type | Caret, editing, and appropriate visible focus remain intact. |
114
- | Selected/expanded/error control inside a glass wrapper, with and without keyboard focus | Each state remains correct; no duplicate local/shared ring or unintended container-wide edge. Inspect computed styles and rendered output. |
115
- | Every affected shared-control variant, long value, narrow width, 200% text zoom, RTL | One chevron; measured inset and reserved text area do not collide; arrow hit area works. |
116
- | Supported browser/webview, themes, forced colors, and touch where applicable | Focus and chevron remain visible and operable; record unavailable combinations as unverified. Native popup behavior needs native interaction, not just a programmatic value change. |
117
-
118
- Report the reproduced cause, shared owner changed, tested sequences and browser/platform, and any remaining uncertainty. An initial-state screenshot, class-name assertion, or source review alone does not establish that interaction regressions passed.
119
-
120
- Reuse existing motion tokens first. If none exist, begin with these restrained bands, then tune by component size and distance:
121
-
122
- | Role | Typical duration | Use |
123
- |---|---:|---|
124
- | Immediate micro-feedback | 70 to 110 ms | button, toggle, icon fill, press |
125
- | Standard state change | 140 to 200 ms | color, border, background, small disclosure |
126
- | Entrance or panel continuity | 180 to 240 ms | menu, popover, drawer, inserted feedback |
127
- | Exit | 120 to 180 ms | dismissal and removal |
128
-
129
- For a neutral productive curve, Carbon documents `cubic-bezier(0.2, 0, 0.38, 0.9)` for standard productive motion, with separate entrance and exit curves. Use local easing when available.
130
-
131
- The pinned observational corpus supports restrained hover treatment: Tesla and Lamborghini explicitly prefer color-only interactions over scale/translate; Vercel uses underline or surface changes; Linear uses a controlled color/surface state; Sanity uses a consistent interactive color. These are observations of selected surfaces, not universal brand rules. Refero content was not accessed because no authorized Refero MCP or user-provided export was available.
132
-
133
- Reduced motion is mandatory. Under `prefers-reduced-motion: reduce`, remove non-essential travel, parallax, scale, and spatial choreography. Preserve state feedback through immediate color, border, text, icon, or opacity changes. WCAG 2.2 SC 2.3.3 treats disabling non-essential interaction animation as the accessible direction.
134
-
135
- ## 5. Typography that carries intent
136
-
137
- Reuse the project's established type system first. For net-new web work without an established type system, choose an intentional family or pairing that matches the subject, language coverage, density, and reading mode.
138
-
139
- Do not choose Arial, Helvetica, or a bare `system-ui` stack as the visible design direction for net-new aesthetic work. They remain acceptable technical fallbacks and may remain correct for an existing system or native-platform surface.
140
-
141
- ### Current Google Fonts inspiration
142
-
143
- The following families were present in Google Fonts metadata fetched 14 July 2026. Popularity positions in that metadata included DM Sans 23, Manrope 37, Lora 43, Bricolage Grotesque 45, Plus Jakarta Sans 51, Space Grotesk 79, Instrument Serif 92, Geist 125, IBM Plex Mono 129, Source Serif 4 133, Instrument Sans 140, Newsreader 148, Geist Mono 149, and DM Mono 168. Popularity is discovery evidence, not a command to use the highest-ranked family.
144
-
145
- | Pairing | Best fit | Role split |
146
- |---|---|---|
147
- | Instrument Sans + Instrument Serif | editorial brands, culture, thoughtful commerce | sans for UI/body, serif for display or pull quotes |
148
- | Manrope + IBM Plex Mono | precise product UI, operations, technical SaaS | sans for interface, mono for data and technical labels |
149
- | Plus Jakarta Sans + Source Serif 4 | trustworthy services, education, research | sans for navigation/UI, serif for long reading |
150
- | DM Sans + DM Mono | clean application UI, data products | sans for hierarchy, mono for identifiers and code |
151
- | Space Grotesk + Newsreader | modern editorial/product hybrids | grotesk for display/UI, serif for narrative |
152
- | Bricolage Grotesque + Lora | playful or crafted consumer products | expressive sans for display, serif for supporting warmth |
153
- | Geist + Geist Mono | restrained developer tools | sans for UI, mono for code/data |
154
- | Noto Sans + Noto Serif | multilingual products | broad-script sans/serif system |
155
-
156
- Use one family when role, weight, width, size, and tracking provide enough hierarchy. Add a second family only for a clear role contrast. Two families are usually sufficient; a third requires a specific content role.
157
-
158
- ### Loading Google Fonts
159
-
160
- When network font loading is acceptable, connect the selected pair through the Google Fonts CSS API. Request only used families, styles, scripts, and weights. Use `display=swap`, preconnect to both Google Fonts origins, and test fallback metrics and layout shift.
161
-
162
- ```html
163
- <link rel="preconnect" href="https://fonts.googleapis.com" />
164
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
165
- <link
166
- rel="stylesheet"
167
- href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap"
168
- />
169
- ```
170
-
171
- Do not connect Google Fonts when privacy, offline operation, CSP, performance budgets, or project policy prohibit third-party font requests. Self-host approved WOFF2 files instead. Google and web.dev guidance recommends early discovery, preconnect for third-party font origins, explicit `font-display`, limited variants, and testing cumulative layout shift.
172
-
173
- ## 6. Contrast is a release requirement
174
-
175
- Never use faint light-gray text on white, faint dark-gray text on black, or low-contrast borders/icons merely to look refined.
176
-
177
- - Normal text meets at least 4.5:1 against its actual background.
178
- - Large text meets at least 3:1.
179
- - Meaningful icons, control boundaries, focus indicators, and graphical objects meet at least 3:1 against adjacent colors.
180
- - Muted, secondary, placeholder, metadata, and disabled text remain intentionally legible. Disabled controls have a WCAG exception, but their meaning should not disappear.
181
- - Do not round a failing ratio upward. W3C explicitly notes that 4.499:1 fails 4.5:1.
182
- - Aim above the minimum for small, thin, long-form, or mission-critical text. Verify computed colors rather than judging from a screenshot alone.
183
- - Do not use color as the only status cue. Pair color with text, shape, icon, or pattern.
184
-
185
- ### No soft semantic tint-on-tint
186
-
187
- Do not default badges, buttons, toasts, alerts, cards, selected states, status rows, or icon medallions to the familiar `soft`, `subtle`, `surface`, or `tonal` formula: a low-opacity red, green, amber, blue, or purple background paired with saturated same-hue text or icons, often finished with a same-hue border. The border is optional; the same-hue tinted surface plus same-hue foreground is the rejected pattern.
188
-
189
- Choose the replacement from the product's existing aesthetic and the component's role. Viable directions include a neutral surface with an isolated semantic icon, dot, or edge; a solid semantic fill with neutral high-contrast text; monochrome treatment; a product accent; plain typography; or another coherent local material model. These are options, not a new house style. Preserve hierarchy, measured contrast, and a non-color cue for status.
190
-
191
- Retain tint-on-tint only when the user explicitly asks for it or exact reuse of an established design-system variant is required by scope. Existing examples are evidence to inspect, not permission to spread the treatment into new component families.
192
-
193
- ## 7. Consistency and flow
194
-
195
- A polished interface feels like one system from section to section, component to component, and page to page.
196
-
197
- - Repeated navigation stays in the same relative order.
198
- - Repeated functions keep the same component, label, icon, accessible name, and state behavior.
199
- - Page templates share container widths, header logic, spacing cadence, and section transitions.
200
- - A section should hand off to the next through intentional spacing, border, surface, continuation, or hierarchy. Avoid random background bands and arbitrary rhythm resets.
201
- - Keep primary action placement predictable within a flow. Do not move the same action between card header, footer, and floating affordance without a reason.
202
- - Preserve user orientation during loading, filtering, navigation, and responsive changes.
203
- - Review adjacent screens together, not as isolated screenshots.
204
-
205
- WCAG 2.2 SC 3.2.3 requires repeated navigation to keep the same relative order, and SC 3.2.4 requires components with the same function to be identified consistently. These accessibility requirements also reduce visual and cognitive friction for everyone.
206
-
207
- ## 8. UI copy punctuation
208
-
209
- Do not generate em dashes in user-facing UI copy unless the user explicitly requests them or supplied brand/source copy already uses them and must remain unchanged.
210
-
211
- Prefer a period, comma, colon, parentheses, or a rewritten sentence. Preserve exact quoted or legal source text. This is a product voice ruling, not a claim that em dashes are inaccessible.
212
-
213
- ### Copy must earn its space
214
-
215
- Apply this to new UI and changed components, regardless of product, platform, or visual style. Sufficient information at the right moment is the goal, not maximum brevity.
216
-
217
- - **Labels first:** Start with clear labels, controls, and relevant status. Do not automatically fill components with subtitles, descriptions, helper paragraphs, or footer notes simply because a slot exists.
218
- - **Justify supporting text:** Include it only to resolve ambiguity, prevent a likely mistake, explain a meaningful consequence, or help recovery. Ask: “Does this text add information needed here that the interface does not already communicate?” Remove it if not.
219
- - **One fact, one place:** Do not restate headings, labels, actions, status, or nearby explanations in supporting prose. Repeat only when a separate decision context genuinely requires it; accessible names and necessary instructions must remain complete.
220
- - **Right information, right moment:** Show state-specific guidance in that state. Make optional setup details and troubleshooting available through discoverable, accessible contextual help. Complete states through behavior and timely feedback, not permanent paragraphs explaining every possible outcome.
221
- - **Essential guidance stays visible:** Keep necessary instructions, safety warnings, costs, consent, and irreversible consequences visible at the point of decision before action. Do not hide them in tooltips or disclosures merely to simplify the screen. Preserve required legal and supplied exact wording.
222
- - **Familiar words:** Describe what people can do and what happens. Use implementation details only when the audience needs them for the task; accuracy alone does not justify their presence.
223
- - **Remove before compressing:** Reduce redundant content before shrinking text, squeezing spacing or hit targets, truncating necessary information, or accepting avoidable scrolling. There is no universal word limit, sentence limit, or ban on scrolling; substantive content, localization, and accessibility may require more space.
224
- - **Verify in context:** Inspect the rendered screen at its intended window sizes and relevant states, including text scaling. Check repeated meaning, reading effort, and whether supporting copy delays reaching the task, not merely whether everything fits. Check that removing or relocating text has not made the next action or its consequences ambiguous. Source review alone leaves the rendered check unverified.
225
-
226
- ## Final craft check
227
-
228
- Before calling UI work complete, verify:
229
-
230
- - no emoji used as UI imagery;
231
- - one coherent icon family, with accessible names and target sizes;
232
- - shared key lines, control heights, spacing, borders, and component geometry;
233
- - existing components/tokens reused before new ones were created;
234
- - every relevant interaction has purposeful, non-abrupt feedback;
235
- - no generic hover lift or `transition: all`;
236
- - reduced motion preserves state meaning;
237
- - typography is intentional, loaded efficiently, and stable during fallback;
238
- - all text and meaningful non-text contrast is measured;
239
- - no soft semantic tint-on-tint treatment was introduced without an explicit user request or required existing-system match;
240
- - repeated navigation/actions remain consistent across sections and pages;
241
- - supporting copy adds necessary information at the right moment, without redundant descriptions or avoidable scrolling; essential instructions and consequences remain visible;
242
- - generated UI copy contains no em dashes unless explicitly allowed.
@@ -1,124 +0,0 @@
1
- # Picking a Direction
2
-
3
- ## Contents
4
-
5
- 1. Content first
6
- 2. The thesis template
7
- 3. Type
8
- 4. Colour (OKLCH, measured)
9
- 5. Spacing, density, radius
10
- 6. Imagery
11
- 7. Motion
12
- 8. Platform features worth using (verified Baseline status)
13
- 9. Responsiveness and INP practice
14
-
15
- Use for net-new UI, redesigns, or when the existing product leaves an axis free. If the project already has a system, preserve it and skip to § 8–9.
16
-
17
- ## 1. Content first
18
-
19
- Before any layout:
20
-
21
- 1. Write the real headline, primary action label, and the copy for every section, in the user's vocabulary.
22
- 2. Gather or write realistic data: longest names, empty values, large numbers, 0/1/many items, localized strings.
23
- 3. Rank it: what must be seen first, second, and what is the one action.
24
- 4. Only then pick layout. If a section has nothing true to say, delete the section, do not design a container for it.
25
-
26
- Fixtures must be labelled as fixtures. Never invent proof (`references/anti-defaults.md` § 4).
27
-
28
- ## 2. The thesis template
29
-
30
- Write this before code (in `DESIGN.md` for broad work, in notes otherwise). Max ~12 lines.
31
-
32
- ```
33
- Subject + audience + single job:
34
- Signature (one memorable device, from the subject's world):
35
- Type: display / body / utility roles, families, scale ratio
36
- Colour: 4–6 named OKLCH tokens + intended contrast pairs
37
- Space/density: base unit, scale, density mode
38
- Radius + material: scale by role; surface model (flat / tonal / bordered / elevated)
39
- Imagery: source and treatment, or "none"
40
- Motion: the one orchestrated moment + feedback durations/easing
41
- Alignment: rail width, grid, left/center rule
42
- Rejected defaults: which slop tells this plan avoided and what replaced them
43
- ```
44
-
45
- Then run the neighbour test from `references/anti-defaults.md` § 7 on the plan and revise once.
46
-
47
- ## 3. Type
48
-
49
- - One family or two; if two, make them clearly different (e.g. a characterful display + a quiet text face, or a serif text + a grotesque UI face). Three only when a mono is needed for code.
50
- - Choose from the subject: technical precision, warmth, editorial authority, playfulness. Name the reason in the thesis.
51
- - Avoid Inter/Geist/system-ui as the identity of a marketing or brand surface. They remain fine for dense application chrome or when the project already uses them.
52
- - Scale: one ratio (e.g. 1.2 for dense apps, 1.25–1.333 for marketing) mapped to named tokens; no ad-hoc sizes.
53
- - Measure: body text under ~75 characters; serif body gets slightly more line-height.
54
- - Use `text-wrap: balance` on headings and `text-wrap: pretty` on paragraphs as progressive enhancement.
55
- - Tabular numerals (`font-variant-numeric: tabular-nums`) for columns of figures.
56
- - Loading and font candidates: `references/craft-rulings.md` § 5.
57
-
58
- ## 4. Colour (OKLCH, measured)
59
-
60
- - Start from one brand hue derived from the subject or existing brand. Not violet/indigo by default.
61
- - Define tokens in `oklch()` (Baseline widely available). Build ramps by stepping lightness (L) at fixed hue; reduce chroma (C) near the light and dark ends so colours stay in gamut.
62
- - Neutrals: tint toward the brand hue with very low chroma (about 0.005–0.02) instead of stock `slate`/`zinc`.
63
- - Roles, not hues: `bg`, `surface`, `text`, `text-muted`, `border`, `accent`, `accent-contrast`, `focus`, `danger`, `success`. Components consume roles only.
64
- - Accent covers a small share of the screen; status colours are reserved for status.
65
- - Themes: `light-dark()` (Baseline newly available) or `prefers-color-scheme` tokens; tune dark neutrals separately rather than inverting.
66
- - Contrast is measured, not eyeballed. WCAG 2.2 AA: 4.5:1 normal text, 3:1 large text, 3:1 for UI component boundaries, icons, and focus indicators against adjacent colours. Compute ratios from the resolved sRGB values (browser devtools, axe, or a script) for every text/background pair in both themes and record them. OKLCH lightness is a design aid, not a WCAG measurement.
67
- - `color-mix()` (Baseline widely available) for hover/pressed derivations from tokens instead of new hard-coded values.
68
-
69
- ## 5. Spacing, density, radius
70
-
71
- - One base unit (4 or 8 px) and a named scale; no off-scale values.
72
- - Density by task: data-dense tools use compact rows and small gaps; marketing uses generous section spacing. Do not mix densities within one view without reason.
73
- - Group with proximity first, then alignment, then borders, then fills. Shadows last and with one reason.
74
- - Radius scale by role (e.g. inputs and buttons share one, overlays another, avatars full). Never one radius for everything by reflex.
75
- - One shared content rail (`references/craft-rulings.md` § Shared content rails).
76
-
77
- ## 6. Imagery
78
-
79
- Priority: real product UI at readable scale → real photography of the subject → real data visualised → typography alone. Generated or stock illustration only when requested. Every image needs dimensions (no layout shift), meaningful `alt` or empty `alt` if decorative, and responsive sources.
80
-
81
- ## 7. Motion
82
-
83
- - One orchestrated moment per page at most (a load sequence or one reveal). Everything else is feedback to user action.
84
- - Feedback: about 100–200 ms for hover/press, about 200–300 ms for panels; ease-out for entering, ease-in for leaving. Use tokens.
85
- - Animate `transform` and `opacity`; name transitioned properties.
86
- - Every motion has a `prefers-reduced-motion` path that keeps meaning.
87
- - Auto-playing motion longer than 5 s needs pause/stop/hide (WCAG 2.2.2).
88
-
89
- ## 8. Platform features worth using (verified Baseline status)
90
-
91
- Status from the `web-features` package v3.40.1 (published 1 Oct 2026), read 3 Oct 2026 (SNAPSHOT). Re-check on https://webstatus.dev before relying on newer items.
92
-
93
- | Feature | Baseline | Use by default? |
94
- | --- | --- | --- |
95
- | Container queries (size) | Widely available | Yes, for components that live in varying containers. |
96
- | `:has()` | Widely available | Yes, for parent/state styling instead of JS class toggling. |
97
- | `oklch()` / `oklab()`, `color-mix()` | Widely available | Yes, for tokens. |
98
- | `<dialog>`, `inert` | Widely available | Yes, for modals and disabling background regions. |
99
- | Subgrid | Widely available | Yes, for aligning card internals across a row. |
100
- | Popover API | Newly available (Jan 2025) | Yes for menus/tooltips/popovers, with tested focus behaviour. |
101
- | `text-wrap: balance` | Newly available | Yes on headings (harmless fallback). |
102
- | `light-dark()` | Newly available | Yes when the project supports themes. |
103
- | `@starting-style` | Newly available | Yes for entry transitions; content must work without it. |
104
- | Same-document view transitions | Newly available (Oct 2025) | Yes as progressive enhancement with reduced-motion opt-out. |
105
- | `details name` (exclusive accordions) | Newly available | Yes for simple accordions. |
106
- | `field-sizing: content` | Newly available (Jun 2026) | Progressive enhancement for auto-growing textareas; keep a min/max size. |
107
- | `text-wrap: pretty` | Not Baseline | Progressive enhancement only. |
108
- | CSS anchor positioning | Not Baseline (Interop 2026 focus area) | Enhancement with a fallback position, or use the project's positioning library. |
109
- | Scroll-driven animations | Not Baseline (Interop 2026 focus area) | Decorative enhancement only; never required for content. |
110
- | Cross-document view transitions | Not Baseline (Interop 2026 focus area) | Enhancement only. |
111
- | `interpolate-size` | Not Baseline | Enhancement only. |
112
-
113
- "Newly available" means supported in current versions of all core browsers but not yet for 30 months; check the project's support policy before relying on it without a fallback.
114
-
115
- ## 9. Responsiveness and INP practice
116
-
117
- Interaction to Next Paint (INP) is the Core Web Vital for responsiveness; "good" is 200 ms or less at the 75th percentile (web.dev, SNAPSHOT).
118
-
119
- - Paint feedback first: update the pressed/pending state synchronously, then do heavy work after yielding (`await scheduler.yield()` where supported, otherwise `setTimeout`/`requestAnimationFrame` fallback).
120
- - Keep event handlers small; debounce typing-driven filtering; virtualize long lists; avoid layout thrash (read then write).
121
- - Prefer CSS state (`:has()`, `:focus-visible`, popover, `<details>`) over JS-driven re-renders for simple UI state.
122
- - Use `content-visibility: auto` for long offscreen sections when it does not break find-in-page or anchors in the target browsers.
123
- - Reserve space for images, ads, embeds, and async content to avoid layout shift.
124
- - Report measurements as RUNTIME only when measured; otherwise say unmeasured.