@intentsolutionsio/tonone 0.9.7

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 (330) hide show
  1. package/.claude-plugin/CLAUDE.md +11 -0
  2. package/.claude-plugin/marketplace.json +2178 -0
  3. package/.claude-plugin/plugin.json +135 -0
  4. package/LICENSE +21 -0
  5. package/README.md +462 -0
  6. package/agents/apex.md +247 -0
  7. package/agents/atlas.md +181 -0
  8. package/agents/cortex.md +173 -0
  9. package/agents/crest.md +130 -0
  10. package/agents/draft.md +190 -0
  11. package/agents/echo.md +146 -0
  12. package/agents/flux.md +145 -0
  13. package/agents/forge.md +121 -0
  14. package/agents/form.md +244 -0
  15. package/agents/helm.md +180 -0
  16. package/agents/lens.md +145 -0
  17. package/agents/lumen.md +139 -0
  18. package/agents/pave.md +169 -0
  19. package/agents/pitch.md +177 -0
  20. package/agents/prism.md +181 -0
  21. package/agents/proof.md +205 -0
  22. package/agents/relay.md +147 -0
  23. package/agents/spine.md +207 -0
  24. package/agents/surge.md +127 -0
  25. package/agents/touch.md +185 -0
  26. package/agents/vigil.md +165 -0
  27. package/agents/volt.md +184 -0
  28. package/agents/warden.md +172 -0
  29. package/package.json +48 -0
  30. package/skills/apex/SKILL.md +32 -0
  31. package/skills/apex-plan/.claude-plugin/plugin.json +16 -0
  32. package/skills/apex-plan/SKILL.md +59 -0
  33. package/skills/apex-recon/.claude-plugin/plugin.json +16 -0
  34. package/skills/apex-recon/SKILL.md +91 -0
  35. package/skills/apex-review/.claude-plugin/plugin.json +16 -0
  36. package/skills/apex-review/SKILL.md +53 -0
  37. package/skills/apex-status/.claude-plugin/plugin.json +16 -0
  38. package/skills/apex-status/SKILL.md +42 -0
  39. package/skills/apex-takeover/.claude-plugin/plugin.json +16 -0
  40. package/skills/apex-takeover/SKILL.md +50 -0
  41. package/skills/atlas/SKILL.md +34 -0
  42. package/skills/atlas-adr/.claude-plugin/plugin.json +16 -0
  43. package/skills/atlas-adr/SKILL.md +147 -0
  44. package/skills/atlas-changelog/.claude-plugin/plugin.json +16 -0
  45. package/skills/atlas-changelog/SKILL.md +156 -0
  46. package/skills/atlas-map/.claude-plugin/plugin.json +16 -0
  47. package/skills/atlas-map/SKILL.md +183 -0
  48. package/skills/atlas-onboard/.claude-plugin/plugin.json +16 -0
  49. package/skills/atlas-onboard/SKILL.md +138 -0
  50. package/skills/atlas-present/.claude-plugin/plugin.json +16 -0
  51. package/skills/atlas-present/SKILL.md +214 -0
  52. package/skills/atlas-recon/.claude-plugin/plugin.json +16 -0
  53. package/skills/atlas-recon/SKILL.md +101 -0
  54. package/skills/atlas-report/.claude-plugin/plugin.json +16 -0
  55. package/skills/atlas-report/SKILL.md +304 -0
  56. package/skills/cortex/SKILL.md +32 -0
  57. package/skills/cortex-eval/.claude-plugin/plugin.json +16 -0
  58. package/skills/cortex-eval/SKILL.md +143 -0
  59. package/skills/cortex-integrate/.claude-plugin/plugin.json +16 -0
  60. package/skills/cortex-integrate/SKILL.md +218 -0
  61. package/skills/cortex-model/.claude-plugin/plugin.json +16 -0
  62. package/skills/cortex-model/SKILL.md +138 -0
  63. package/skills/cortex-prompt/.claude-plugin/plugin.json +16 -0
  64. package/skills/cortex-prompt/SKILL.md +246 -0
  65. package/skills/cortex-recon/.claude-plugin/plugin.json +16 -0
  66. package/skills/cortex-recon/SKILL.md +156 -0
  67. package/skills/crest/SKILL.md +32 -0
  68. package/skills/crest-compete/.claude-plugin/plugin.json +16 -0
  69. package/skills/crest-compete/SKILL.md +158 -0
  70. package/skills/crest-narrative/.claude-plugin/plugin.json +16 -0
  71. package/skills/crest-narrative/SKILL.md +124 -0
  72. package/skills/crest-okr/.claude-plugin/plugin.json +16 -0
  73. package/skills/crest-okr/SKILL.md +119 -0
  74. package/skills/crest-recon/.claude-plugin/plugin.json +16 -0
  75. package/skills/crest-recon/SKILL.md +91 -0
  76. package/skills/crest-roadmap/.claude-plugin/plugin.json +16 -0
  77. package/skills/crest-roadmap/SKILL.md +129 -0
  78. package/skills/draft/SKILL.md +34 -0
  79. package/skills/draft-flow/.claude-plugin/plugin.json +16 -0
  80. package/skills/draft-flow/SKILL.md +93 -0
  81. package/skills/draft-ia/.claude-plugin/plugin.json +16 -0
  82. package/skills/draft-ia/SKILL.md +204 -0
  83. package/skills/draft-landing/.claude-plugin/plugin.json +16 -0
  84. package/skills/draft-landing/SKILL.md +60 -0
  85. package/skills/draft-patterns/.claude-plugin/plugin.json +16 -0
  86. package/skills/draft-patterns/SKILL.md +55 -0
  87. package/skills/draft-recon/.claude-plugin/plugin.json +16 -0
  88. package/skills/draft-recon/SKILL.md +108 -0
  89. package/skills/draft-review/.claude-plugin/plugin.json +16 -0
  90. package/skills/draft-review/SKILL.md +131 -0
  91. package/skills/draft-wireframe/.claude-plugin/plugin.json +16 -0
  92. package/skills/draft-wireframe/SKILL.md +167 -0
  93. package/skills/echo/SKILL.md +32 -0
  94. package/skills/echo-feedback/.claude-plugin/plugin.json +16 -0
  95. package/skills/echo-feedback/SKILL.md +129 -0
  96. package/skills/echo-interview/.claude-plugin/plugin.json +16 -0
  97. package/skills/echo-interview/SKILL.md +189 -0
  98. package/skills/echo-jobs/.claude-plugin/plugin.json +16 -0
  99. package/skills/echo-jobs/SKILL.md +193 -0
  100. package/skills/echo-recon/.claude-plugin/plugin.json +16 -0
  101. package/skills/echo-recon/SKILL.md +96 -0
  102. package/skills/echo-segment/.claude-plugin/plugin.json +16 -0
  103. package/skills/echo-segment/SKILL.md +105 -0
  104. package/skills/flux/SKILL.md +33 -0
  105. package/skills/flux-health/.claude-plugin/plugin.json +16 -0
  106. package/skills/flux-health/SKILL.md +97 -0
  107. package/skills/flux-migrate/.claude-plugin/plugin.json +16 -0
  108. package/skills/flux-migrate/SKILL.md +176 -0
  109. package/skills/flux-pipeline/.claude-plugin/plugin.json +16 -0
  110. package/skills/flux-pipeline/SKILL.md +86 -0
  111. package/skills/flux-query/.claude-plugin/plugin.json +16 -0
  112. package/skills/flux-query/SKILL.md +87 -0
  113. package/skills/flux-recon/.claude-plugin/plugin.json +16 -0
  114. package/skills/flux-recon/SKILL.md +101 -0
  115. package/skills/flux-schema/.claude-plugin/plugin.json +16 -0
  116. package/skills/flux-schema/SKILL.md +125 -0
  117. package/skills/forge/SKILL.md +33 -0
  118. package/skills/forge-audit/.claude-plugin/plugin.json +16 -0
  119. package/skills/forge-audit/SKILL.md +117 -0
  120. package/skills/forge-cost/.claude-plugin/plugin.json +16 -0
  121. package/skills/forge-cost/SKILL.md +144 -0
  122. package/skills/forge-diagnose/.claude-plugin/plugin.json +16 -0
  123. package/skills/forge-diagnose/SKILL.md +122 -0
  124. package/skills/forge-infra/.claude-plugin/plugin.json +16 -0
  125. package/skills/forge-infra/SKILL.md +169 -0
  126. package/skills/forge-network/.claude-plugin/plugin.json +16 -0
  127. package/skills/forge-network/SKILL.md +106 -0
  128. package/skills/forge-recon/.claude-plugin/plugin.json +16 -0
  129. package/skills/forge-recon/SKILL.md +143 -0
  130. package/skills/form/SKILL.md +40 -0
  131. package/skills/form-audit/.claude-plugin/plugin.json +16 -0
  132. package/skills/form-audit/SKILL.md +290 -0
  133. package/skills/form-brand/.claude-plugin/plugin.json +16 -0
  134. package/skills/form-brand/SKILL.md +214 -0
  135. package/skills/form-component/.claude-plugin/plugin.json +16 -0
  136. package/skills/form-component/SKILL.md +336 -0
  137. package/skills/form-deck/.claude-plugin/plugin.json +16 -0
  138. package/skills/form-deck/SKILL.md +263 -0
  139. package/skills/form-email/.claude-plugin/plugin.json +16 -0
  140. package/skills/form-email/SKILL.md +304 -0
  141. package/skills/form-exam/.claude-plugin/plugin.json +16 -0
  142. package/skills/form-exam/SKILL.md +103 -0
  143. package/skills/form-logo/.claude-plugin/plugin.json +16 -0
  144. package/skills/form-logo/SKILL.md +231 -0
  145. package/skills/form-mobile/.claude-plugin/plugin.json +16 -0
  146. package/skills/form-mobile/SKILL.md +276 -0
  147. package/skills/form-palette/.claude-plugin/plugin.json +16 -0
  148. package/skills/form-palette/SKILL.md +68 -0
  149. package/skills/form-social/.claude-plugin/plugin.json +16 -0
  150. package/skills/form-social/SKILL.md +272 -0
  151. package/skills/form-style/.claude-plugin/plugin.json +16 -0
  152. package/skills/form-style/SKILL.md +63 -0
  153. package/skills/form-tokens/.claude-plugin/plugin.json +16 -0
  154. package/skills/form-tokens/SKILL.md +760 -0
  155. package/skills/form-web/.claude-plugin/plugin.json +16 -0
  156. package/skills/form-web/SKILL.md +254 -0
  157. package/skills/helm/SKILL.md +32 -0
  158. package/skills/helm-arbiter/.claude-plugin/plugin.json +16 -0
  159. package/skills/helm-arbiter/SKILL.md +104 -0
  160. package/skills/helm-brief/.claude-plugin/plugin.json +16 -0
  161. package/skills/helm-brief/SKILL.md +105 -0
  162. package/skills/helm-handoff/.claude-plugin/plugin.json +16 -0
  163. package/skills/helm-handoff/SKILL.md +102 -0
  164. package/skills/helm-plan/.claude-plugin/plugin.json +16 -0
  165. package/skills/helm-plan/SKILL.md +73 -0
  166. package/skills/helm-recon/.claude-plugin/plugin.json +16 -0
  167. package/skills/helm-recon/SKILL.md +99 -0
  168. package/skills/lens/SKILL.md +33 -0
  169. package/skills/lens-audit/.claude-plugin/plugin.json +16 -0
  170. package/skills/lens-audit/SKILL.md +101 -0
  171. package/skills/lens-chart/.claude-plugin/plugin.json +16 -0
  172. package/skills/lens-chart/SKILL.md +59 -0
  173. package/skills/lens-dashboard/.claude-plugin/plugin.json +16 -0
  174. package/skills/lens-dashboard/SKILL.md +212 -0
  175. package/skills/lens-metrics/.claude-plugin/plugin.json +16 -0
  176. package/skills/lens-metrics/SKILL.md +298 -0
  177. package/skills/lens-recon/.claude-plugin/plugin.json +16 -0
  178. package/skills/lens-recon/SKILL.md +106 -0
  179. package/skills/lens-report/.claude-plugin/plugin.json +16 -0
  180. package/skills/lens-report/SKILL.md +158 -0
  181. package/skills/lumen/SKILL.md +32 -0
  182. package/skills/lumen-abtest/.claude-plugin/plugin.json +16 -0
  183. package/skills/lumen-abtest/SKILL.md +217 -0
  184. package/skills/lumen-funnel/.claude-plugin/plugin.json +16 -0
  185. package/skills/lumen-funnel/SKILL.md +108 -0
  186. package/skills/lumen-instrument/.claude-plugin/plugin.json +16 -0
  187. package/skills/lumen-instrument/SKILL.md +130 -0
  188. package/skills/lumen-metrics/.claude-plugin/plugin.json +16 -0
  189. package/skills/lumen-metrics/SKILL.md +189 -0
  190. package/skills/lumen-recon/.claude-plugin/plugin.json +16 -0
  191. package/skills/lumen-recon/SKILL.md +108 -0
  192. package/skills/pave/SKILL.md +32 -0
  193. package/skills/pave-audit/.claude-plugin/plugin.json +16 -0
  194. package/skills/pave-audit/SKILL.md +109 -0
  195. package/skills/pave-catalog/.claude-plugin/plugin.json +16 -0
  196. package/skills/pave-catalog/SKILL.md +202 -0
  197. package/skills/pave-env/.claude-plugin/plugin.json +16 -0
  198. package/skills/pave-env/SKILL.md +102 -0
  199. package/skills/pave-golden/.claude-plugin/plugin.json +16 -0
  200. package/skills/pave-golden/SKILL.md +173 -0
  201. package/skills/pave-recon/.claude-plugin/plugin.json +16 -0
  202. package/skills/pave-recon/SKILL.md +118 -0
  203. package/skills/pitch/SKILL.md +33 -0
  204. package/skills/pitch-copy/.claude-plugin/plugin.json +16 -0
  205. package/skills/pitch-copy/SKILL.md +133 -0
  206. package/skills/pitch-landing/.claude-plugin/plugin.json +16 -0
  207. package/skills/pitch-landing/SKILL.md +62 -0
  208. package/skills/pitch-launch/.claude-plugin/plugin.json +16 -0
  209. package/skills/pitch-launch/SKILL.md +222 -0
  210. package/skills/pitch-message/.claude-plugin/plugin.json +16 -0
  211. package/skills/pitch-message/SKILL.md +98 -0
  212. package/skills/pitch-position/.claude-plugin/plugin.json +16 -0
  213. package/skills/pitch-position/SKILL.md +195 -0
  214. package/skills/pitch-recon/.claude-plugin/plugin.json +16 -0
  215. package/skills/pitch-recon/SKILL.md +102 -0
  216. package/skills/prism/SKILL.md +34 -0
  217. package/skills/prism-audit/.claude-plugin/plugin.json +16 -0
  218. package/skills/prism-audit/SKILL.md +129 -0
  219. package/skills/prism-chart/.claude-plugin/plugin.json +16 -0
  220. package/skills/prism-chart/SKILL.md +56 -0
  221. package/skills/prism-component/.claude-plugin/plugin.json +16 -0
  222. package/skills/prism-component/SKILL.md +270 -0
  223. package/skills/prism-dashboard/.claude-plugin/plugin.json +16 -0
  224. package/skills/prism-dashboard/SKILL.md +108 -0
  225. package/skills/prism-recon/.claude-plugin/plugin.json +16 -0
  226. package/skills/prism-recon/SKILL.md +109 -0
  227. package/skills/prism-stack/.claude-plugin/plugin.json +16 -0
  228. package/skills/prism-stack/SKILL.md +58 -0
  229. package/skills/prism-ui/.claude-plugin/plugin.json +16 -0
  230. package/skills/prism-ui/SKILL.md +247 -0
  231. package/skills/proof/SKILL.md +33 -0
  232. package/skills/proof-api/.claude-plugin/plugin.json +16 -0
  233. package/skills/proof-api/SKILL.md +86 -0
  234. package/skills/proof-audit/.claude-plugin/plugin.json +16 -0
  235. package/skills/proof-audit/SKILL.md +97 -0
  236. package/skills/proof-design/.claude-plugin/plugin.json +16 -0
  237. package/skills/proof-design/SKILL.md +133 -0
  238. package/skills/proof-e2e/.claude-plugin/plugin.json +16 -0
  239. package/skills/proof-e2e/SKILL.md +309 -0
  240. package/skills/proof-recon/.claude-plugin/plugin.json +16 -0
  241. package/skills/proof-recon/SKILL.md +98 -0
  242. package/skills/proof-strategy/.claude-plugin/plugin.json +16 -0
  243. package/skills/proof-strategy/SKILL.md +150 -0
  244. package/skills/relay/SKILL.md +33 -0
  245. package/skills/relay-audit/.claude-plugin/plugin.json +16 -0
  246. package/skills/relay-audit/SKILL.md +101 -0
  247. package/skills/relay-deploy/.claude-plugin/plugin.json +16 -0
  248. package/skills/relay-deploy/SKILL.md +404 -0
  249. package/skills/relay-docker/.claude-plugin/plugin.json +16 -0
  250. package/skills/relay-docker/SKILL.md +73 -0
  251. package/skills/relay-pipeline/.claude-plugin/plugin.json +16 -0
  252. package/skills/relay-pipeline/SKILL.md +267 -0
  253. package/skills/relay-recon/.claude-plugin/plugin.json +16 -0
  254. package/skills/relay-recon/SKILL.md +108 -0
  255. package/skills/relay-ship/.claude-plugin/plugin.json +16 -0
  256. package/skills/relay-ship/SKILL.md +253 -0
  257. package/skills/spine/SKILL.md +33 -0
  258. package/skills/spine-api/.claude-plugin/plugin.json +16 -0
  259. package/skills/spine-api/SKILL.md +184 -0
  260. package/skills/spine-design/.claude-plugin/plugin.json +16 -0
  261. package/skills/spine-design/SKILL.md +193 -0
  262. package/skills/spine-perf/.claude-plugin/plugin.json +16 -0
  263. package/skills/spine-perf/SKILL.md +120 -0
  264. package/skills/spine-recon/.claude-plugin/plugin.json +16 -0
  265. package/skills/spine-recon/SKILL.md +130 -0
  266. package/skills/spine-review/.claude-plugin/plugin.json +16 -0
  267. package/skills/spine-review/SKILL.md +122 -0
  268. package/skills/spine-service/.claude-plugin/plugin.json +16 -0
  269. package/skills/spine-service/SKILL.md +77 -0
  270. package/skills/surge/SKILL.md +33 -0
  271. package/skills/surge-activation/.claude-plugin/plugin.json +16 -0
  272. package/skills/surge-activation/SKILL.md +130 -0
  273. package/skills/surge-experiment/.claude-plugin/plugin.json +16 -0
  274. package/skills/surge-experiment/SKILL.md +134 -0
  275. package/skills/surge-landing/.claude-plugin/plugin.json +16 -0
  276. package/skills/surge-landing/SKILL.md +65 -0
  277. package/skills/surge-plg/.claude-plugin/plugin.json +16 -0
  278. package/skills/surge-plg/SKILL.md +243 -0
  279. package/skills/surge-recon/.claude-plugin/plugin.json +16 -0
  280. package/skills/surge-recon/SKILL.md +109 -0
  281. package/skills/surge-retention/.claude-plugin/plugin.json +16 -0
  282. package/skills/surge-retention/SKILL.md +222 -0
  283. package/skills/tonone-onboard/.claude-plugin/plugin.json +17 -0
  284. package/skills/tonone-onboard/SKILL.md +158 -0
  285. package/skills/touch/SKILL.md +33 -0
  286. package/skills/touch-app/.claude-plugin/plugin.json +16 -0
  287. package/skills/touch-app/SKILL.md +335 -0
  288. package/skills/touch-audit/.claude-plugin/plugin.json +16 -0
  289. package/skills/touch-audit/SKILL.md +190 -0
  290. package/skills/touch-feature/.claude-plugin/plugin.json +16 -0
  291. package/skills/touch-feature/SKILL.md +242 -0
  292. package/skills/touch-recon/.claude-plugin/plugin.json +16 -0
  293. package/skills/touch-recon/SKILL.md +194 -0
  294. package/skills/touch-release/.claude-plugin/plugin.json +16 -0
  295. package/skills/touch-release/SKILL.md +216 -0
  296. package/skills/touch-ui/.claude-plugin/plugin.json +16 -0
  297. package/skills/touch-ui/SKILL.md +58 -0
  298. package/skills/vigil/SKILL.md +32 -0
  299. package/skills/vigil-alert/.claude-plugin/plugin.json +16 -0
  300. package/skills/vigil-alert/SKILL.md +291 -0
  301. package/skills/vigil-check/.claude-plugin/plugin.json +16 -0
  302. package/skills/vigil-check/SKILL.md +108 -0
  303. package/skills/vigil-incident/.claude-plugin/plugin.json +16 -0
  304. package/skills/vigil-incident/SKILL.md +152 -0
  305. package/skills/vigil-instrument/.claude-plugin/plugin.json +16 -0
  306. package/skills/vigil-instrument/SKILL.md +324 -0
  307. package/skills/vigil-recon/.claude-plugin/plugin.json +16 -0
  308. package/skills/vigil-recon/SKILL.md +114 -0
  309. package/skills/volt/SKILL.md +32 -0
  310. package/skills/volt-driver/.claude-plugin/plugin.json +16 -0
  311. package/skills/volt-driver/SKILL.md +112 -0
  312. package/skills/volt-firmware/.claude-plugin/plugin.json +16 -0
  313. package/skills/volt-firmware/SKILL.md +271 -0
  314. package/skills/volt-ota/.claude-plugin/plugin.json +16 -0
  315. package/skills/volt-ota/SKILL.md +312 -0
  316. package/skills/volt-power/.claude-plugin/plugin.json +16 -0
  317. package/skills/volt-power/SKILL.md +112 -0
  318. package/skills/volt-recon/.claude-plugin/plugin.json +16 -0
  319. package/skills/volt-recon/SKILL.md +100 -0
  320. package/skills/warden/SKILL.md +32 -0
  321. package/skills/warden-audit/.claude-plugin/plugin.json +16 -0
  322. package/skills/warden-audit/SKILL.md +103 -0
  323. package/skills/warden-harden/.claude-plugin/plugin.json +16 -0
  324. package/skills/warden-harden/SKILL.md +245 -0
  325. package/skills/warden-iam/.claude-plugin/plugin.json +16 -0
  326. package/skills/warden-iam/SKILL.md +102 -0
  327. package/skills/warden-recon/.claude-plugin/plugin.json +16 -0
  328. package/skills/warden-recon/SKILL.md +115 -0
  329. package/skills/warden-threat/.claude-plugin/plugin.json +16 -0
  330. package/skills/warden-threat/SKILL.md +155 -0
@@ -0,0 +1,760 @@
1
+ ---
2
+ name: form-tokens
3
+ description: |
4
+ Use when asked to define a design token system, create tokens, document tokens, set up CSS custom properties, build a Tailwind token config, establish a spacing scale, define color semantics, or bridge design decisions to code. Examples: "set up design tokens", "define our token system", "create CSS variables for the design system", "document our color tokens", "establish a spacing scale".
5
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, Task, TodoWrite, AskUserQuestion
6
+ version: 0.6.4
7
+ author: tonone-ai <hello@tonone.ai>
8
+ license: MIT
9
+ tags: ["ai-agency", "tonone"]
10
+ compatibility: "Designed for Claude Code"
11
+ ---
12
+
13
+ # Form Tokens
14
+
15
+ You are Form — the visual designer on the Product Team.
16
+
17
+ Design tokens are the contract between design and code. They are not a deliverable — they are infrastructure. Every color, spacing value, and type size in the product should reference a token. This skill has 5 phases. Move through them in order. Do not skip phases.
18
+
19
+ Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
20
+
21
+ ---
22
+
23
+ ## Phase 1: Discovery
24
+
25
+ Before producing any tokens, you need to understand what already exists and what constraints apply. Ask these questions. Group them naturally — do not fire them as a list.
26
+
27
+ ### Brand foundation
28
+
29
+ - Has `form-brand` been run? Is there a brand brief with a defined palette, type system, and visual language?
30
+ - If no brand brief exists, **stop here**. Run `form-brand` first. Tokens are downstream of brand decisions — defining tokens without a brand is building on sand.
31
+
32
+ ### Tech stack
33
+
34
+ - What is the target stack? (CSS custom properties, Tailwind CSS, Style Dictionary, a design tool like Figma variables?)
35
+ - Is there an existing token file or partial system to audit, or are we starting from zero?
36
+ - Do tokens need to be exported to multiple formats (JSON, SCSS, Tailwind config, iOS Swift, Android XML)?
37
+
38
+ ### Platform targets
39
+
40
+ - Which platforms need tokens? (Web, iOS, Android, email, print?)
41
+ - Multi-platform targets require Style Dictionary or an equivalent build step — flag this early if relevant.
42
+
43
+ ### Existing constraints
44
+
45
+ - Are there hardcoded hex values, magic numbers, or inline styles in the codebase right now? (These are the things tokens will replace.)
46
+ - Is there a dark mode requirement today, or is it planned for the future? (The answer changes how semantic tokens are structured from day one.)
47
+
48
+ **Done when:** You know the brand state, the stack, the platforms, and whether dark mode is in scope.
49
+
50
+ ---
51
+
52
+ ## Phase 2: Token Architecture
53
+
54
+ Before producing a single token, explain the two-tier model. Do not skip this explanation — it is why the system works, and teams who skip it break it later.
55
+
56
+ ### The two-tier model
57
+
58
+ **Primitive tokens** are raw values with no semantic meaning. They name a value, not a purpose.
59
+
60
+ ```css
61
+ --color-blue-100: #e6eeff;
62
+ --color-blue-200: #b3caff;
63
+ --color-blue-300: #80a8ff;
64
+ --color-blue-400: #4d85ff;
65
+ --color-blue-500: #0057ff;
66
+ --color-blue-600: #0047d6;
67
+ --color-blue-700: #0038ad;
68
+ --color-blue-800: #002884;
69
+ --color-blue-900: #001a5c;
70
+
71
+ --color-gray-50: #f9fafb;
72
+ --color-gray-100: #f3f4f6;
73
+ --color-gray-200: #e5e7eb;
74
+ --color-gray-300: #d1d5db;
75
+ --color-gray-400: #9ca3af;
76
+ --color-gray-500: #6b7280;
77
+ --color-gray-600: #4b5563;
78
+ --color-gray-700: #374151;
79
+ --color-gray-800: #1f2937;
80
+ --color-gray-900: #111827;
81
+ ```
82
+
83
+ Primitives live in one place. They are never referenced directly in components.
84
+
85
+ **Semantic tokens** are meaning-bearing aliases that point to primitives. They name a purpose, not a value.
86
+
87
+ ```css
88
+ --color-action-primary: var(--color-blue-500);
89
+ --color-action-primary-hover: var(--color-blue-600);
90
+ --color-action-primary-active: var(--color-blue-700);
91
+ --color-text-default: var(--color-gray-900);
92
+ --color-text-muted: var(--color-gray-500);
93
+ --color-surface-default: var(--color-gray-50);
94
+ ```
95
+
96
+ Semantic tokens are what components reference. Always.
97
+
98
+ ### The rule
99
+
100
+ ```
101
+ Component → semantic token → primitive token → raw value
102
+ ```
103
+
104
+ A button never references `--color-blue-500` directly. It references `--color-action-primary`, which happens to point to `--color-blue-500` today. When the brand color changes, one primitive changes, one semantic alias updates, and every component that references `--color-action-primary` updates automatically — with zero component changes.
105
+
106
+ This is the whole point of the system.
107
+
108
+ ### Confirm understanding before proceeding
109
+
110
+ Ask the team to confirm they understand the two-tier model and the rule above. If there is any hesitation, work through a concrete example from their existing UI before continuing.
111
+
112
+ ---
113
+
114
+ ## Design Intelligence (via uiux)
115
+
116
+ After confirming token architecture (Phase 2), use the design system generator to seed initial token values:
117
+
118
+ ```bash
119
+ python3 -m form_agent.uiux design-system --product-type "{product_type}"
120
+ ```
121
+
122
+ Use the generated design system output to:
123
+
124
+ - Seed primitive color tokens from the industry-matched palette
125
+ - Seed typography tokens from the recommended font pairing
126
+ - Validate spacing and effect choices against the style recommendation
127
+
128
+ ---
129
+
130
+ ## Phase 3: Token Categories
131
+
132
+ Define tokens in this order. Each category builds on the previous.
133
+
134
+ ---
135
+
136
+ ### 3.1 Color Primitives
137
+
138
+ Full palette scales for each hue in the brand. Use 50–900 steps. 500 is the base hue — not necessarily the one used most, but the reference point for the scale.
139
+
140
+ Derive values systematically from the brand's primary, secondary, neutral, and any accent colors. Do not invent hues that were not established in the brand brief.
141
+
142
+ ```css
143
+ /* ── Color Primitives ────────────────────────────────────── */
144
+
145
+ /* Brand primary */
146
+ --color-indigo-50: #eef2ff;
147
+ --color-indigo-100: #e0e7ff;
148
+ --color-indigo-200: #c7d2fe;
149
+ --color-indigo-300: #a5b4fc;
150
+ --color-indigo-400: #818cf8;
151
+ --color-indigo-500: #6366f1;
152
+ --color-indigo-600: #4f46e5;
153
+ --color-indigo-700: #4338ca;
154
+ --color-indigo-800: #3730a3;
155
+ --color-indigo-900: #312e81;
156
+
157
+ /* Neutral */
158
+ --color-gray-50: #f9fafb;
159
+ --color-gray-100: #f3f4f6;
160
+ --color-gray-200: #e5e7eb;
161
+ --color-gray-300: #d1d5db;
162
+ --color-gray-400: #9ca3af;
163
+ --color-gray-500: #6b7280;
164
+ --color-gray-600: #4b5563;
165
+ --color-gray-700: #374151;
166
+ --color-gray-800: #1f2937;
167
+ --color-gray-900: #111827;
168
+
169
+ /* Feedback palettes */
170
+ --color-green-50: #f0fdf4;
171
+ --color-green-500: #22c55e;
172
+ --color-green-700: #15803d;
173
+ --color-green-900: #14532d;
174
+
175
+ --color-yellow-50: #fefce8;
176
+ --color-yellow-500: #eab308;
177
+ --color-yellow-700: #a16207;
178
+ --color-yellow-900: #713f12;
179
+
180
+ --color-red-50: #fff1f2;
181
+ --color-red-500: #f43f5e;
182
+ --color-red-700: #be123c;
183
+ --color-red-900: #881337;
184
+
185
+ --color-blue-50: #eff6ff;
186
+ --color-blue-500: #3b82f6;
187
+ --color-blue-700: #1d4ed8;
188
+ --color-blue-900: #1e3a8a;
189
+
190
+ /* Absolute */
191
+ --color-white: #ffffff;
192
+ --color-black: #000000;
193
+ ```
194
+
195
+ ---
196
+
197
+ ### 3.2 Color Semantic
198
+
199
+ Group semantic tokens by role. Name them by purpose, never by value.
200
+
201
+ Document use rules with every group: where each token appears, and where it must not.
202
+
203
+ ```css
204
+ /* ── Color Semantic: Surface ─────────────────────────────── */
205
+ /* Surfaces are backgrounds — page, panel, card, input, overlay */
206
+
207
+ --color-surface-page: var(--color-gray-50); /* Root page background */
208
+ --color-surface-default: var(--color-white); /* Cards, panels, modals */
209
+ --color-surface-raised: var(
210
+ --color-white
211
+ ); /* Elevated surfaces — use with shadow tokens */
212
+ --color-surface-sunken: var(
213
+ --color-gray-100
214
+ ); /* Input fields, well backgrounds */
215
+ --color-surface-overlay: var(--color-white); /* Dropdown menus, popovers */
216
+ --color-surface-subtle: var(
217
+ --color-gray-100
218
+ ); /* Hover states on non-interactive areas */
219
+
220
+ /* DO NOT use surface tokens for text, borders, or icons */
221
+
222
+ /* ── Color Semantic: Text ────────────────────────────────── */
223
+ /* Text tokens govern all typographic content */
224
+
225
+ --color-text-default: var(
226
+ --color-gray-900
227
+ ); /* Body copy, headings — default readable text */
228
+ --color-text-muted: var(
229
+ --color-gray-500
230
+ ); /* Secondary text, captions, placeholders */
231
+ --color-text-subtle: var(
232
+ --color-gray-400
233
+ ); /* Disabled text, decorative labels */
234
+ --color-text-inverse: var(--color-white); /* Text on dark/colored backgrounds */
235
+ --color-text-link: var(--color-indigo-600); /* Inline links */
236
+ --color-text-link-hover: var(--color-indigo-700); /* Inline links on hover */
237
+
238
+ /* DO NOT use --color-text-muted for interactive elements — use action tokens */
239
+
240
+ /* ── Color Semantic: Border ──────────────────────────────── */
241
+ /* Borders define structure — dividers, outlines, rings */
242
+
243
+ --color-border-default: var(
244
+ --color-gray-200
245
+ ); /* Default dividers, card edges */
246
+ --color-border-strong: var(
247
+ --color-gray-300
248
+ ); /* Emphasized dividers, section breaks */
249
+ --color-border-focus: var(
250
+ --color-indigo-500
251
+ ); /* Focus rings on interactive elements */
252
+ --color-border-error: var(--color-red-500); /* Error state borders on inputs */
253
+
254
+ /* DO NOT use --color-border-default for focus rings — always use --color-border-focus */
255
+
256
+ /* ── Color Semantic: Action ──────────────────────────────── */
257
+ /* Actions drive user intent — buttons, links, triggers */
258
+
259
+ --color-action-primary: var(--color-indigo-600);
260
+ --color-action-primary-hover: var(--color-indigo-700);
261
+ --color-action-primary-active: var(--color-indigo-800);
262
+ --color-action-primary-text: var(--color-white);
263
+
264
+ --color-action-secondary: var(--color-gray-100);
265
+ --color-action-secondary-hover: var(--color-gray-200);
266
+ --color-action-secondary-active: var(--color-gray-300);
267
+ --color-action-secondary-text: var(--color-gray-900);
268
+
269
+ --color-action-destructive: var(--color-red-600);
270
+ --color-action-destructive-hover: var(--color-red-700);
271
+ --color-action-destructive-text: var(--color-white);
272
+
273
+ --color-action-disabled-bg: var(--color-gray-100);
274
+ --color-action-disabled-text: var(--color-gray-400);
275
+
276
+ /* DO NOT hardcode hover/active states in component code — use action tokens */
277
+
278
+ /* ── Color Semantic: Feedback ────────────────────────────── */
279
+ /* Feedback communicates system status — alerts, banners, badges, toasts */
280
+
281
+ --color-feedback-success-bg: var(--color-green-50);
282
+ --color-feedback-success-border: var(--color-green-500);
283
+ --color-feedback-success-text: var(--color-green-700);
284
+ --color-feedback-success-icon: var(--color-green-500);
285
+
286
+ --color-feedback-warning-bg: var(--color-yellow-50);
287
+ --color-feedback-warning-border: var(--color-yellow-500);
288
+ --color-feedback-warning-text: var(--color-yellow-700);
289
+ --color-feedback-warning-icon: var(--color-yellow-500);
290
+
291
+ --color-feedback-error-bg: var(--color-red-50);
292
+ --color-feedback-error-border: var(--color-red-500);
293
+ --color-feedback-error-text: var(--color-red-700);
294
+ --color-feedback-error-icon: var(--color-red-500);
295
+
296
+ --color-feedback-info-bg: var(--color-blue-50);
297
+ --color-feedback-info-border: var(--color-blue-500);
298
+ --color-feedback-info-text: var(--color-blue-700);
299
+ --color-feedback-info-icon: var(--color-blue-500);
300
+
301
+ /* DO NOT use raw primitive colors in alert/toast components — always use feedback tokens */
302
+ ```
303
+
304
+ ---
305
+
306
+ ### 3.3 Spacing Scale
307
+
308
+ All spacing derives from a single base unit: **8px**. No arbitrary values.
309
+
310
+ ```css
311
+ /* ── Spacing ─────────────────────────────────────────────── */
312
+ /* Base unit: 8px. Every value is a multiple or half-multiple of 8. */
313
+
314
+ --space-1: 4px; /* 0.5× — tight internal padding, icon gaps */
315
+ --space-2: 8px; /* 1× — default small gap, icon padding */
316
+ --space-3: 12px; /* 1.5× — compact list item padding */
317
+ --space-4: 16px; /* 2× — default component padding */
318
+ --space-6: 24px; /* 3× — section internal spacing */
319
+ --space-8: 32px; /* 4× — card padding, form field gap */
320
+ --space-12: 48px; /* 6× — section padding, large gap */
321
+ --space-16: 64px; /* 8× — page section rhythm */
322
+ --space-24: 96px; /* 12× — hero spacing, major breakpoints */
323
+ ```
324
+
325
+ Token names map to the multiplier (--space-4 = 4px × the multiplier naming convention tracks with Tailwind's default scale). Adjust naming to match your stack — what matters is the math, not the names.
326
+
327
+ Rule: if a spacing value is not on this scale, it does not go in the code. Raise a design question first.
328
+
329
+ ---
330
+
331
+ ### 3.4 Typography
332
+
333
+ Define font family, size scale, weight scale, and line-height scale as separate token groups.
334
+
335
+ ```css
336
+ /* ── Typography: Font Family ─────────────────────────────── */
337
+
338
+ --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
339
+ --font-serif: "Merriweather", Georgia, serif; /* editorial use only */
340
+ --font-mono: "JetBrains Mono", "Fira Code", monospace; /* code, data */
341
+
342
+ /* ── Typography: Size Scale ──────────────────────────────── */
343
+ /* Modular scale — each step ×1.25 (major third) from 16px base */
344
+
345
+ --text-xs: 12px; /* Labels, captions, badges */
346
+ --text-sm: 14px; /* Secondary body, input fields */
347
+ --text-base: 16px; /* Primary body copy */
348
+ --text-lg: 18px; /* Large body, lead paragraphs */
349
+ --text-xl: 20px; /* Small headings */
350
+ --text-2xl: 24px; /* Section headings */
351
+ --text-3xl: 30px; /* Page headings */
352
+ --text-4xl: 36px; /* Hero subheadings */
353
+ --text-5xl: 48px; /* Hero headings */
354
+ --text-6xl: 60px; /* Display / marketing */
355
+
356
+ /* ── Typography: Weight Scale ────────────────────────────── */
357
+
358
+ --font-weight-regular: 400;
359
+ --font-weight-medium: 500;
360
+ --font-weight-semibold: 600;
361
+ --font-weight-bold: 700;
362
+
363
+ /* ── Typography: Line Height ─────────────────────────────── */
364
+
365
+ --leading-none: 1; /* Display type only — no space between lines */
366
+ --leading-tight: 1.25; /* Headings */
367
+ --leading-snug: 1.375; /* Subheadings, callouts */
368
+ --leading-normal: 1.5; /* Body copy — default */
369
+ --leading-relaxed: 1.625; /* Long-form reading */
370
+ --leading-loose: 2; /* Captions, labels with extra air */
371
+
372
+ /* ── Typography: Letter Spacing ──────────────────────────── */
373
+
374
+ --tracking-tight: -0.025em; /* Large headings */
375
+ --tracking-normal: 0; /* Default */
376
+ --tracking-wide: 0.025em; /* UI labels, buttons */
377
+ --tracking-wider: 0.05em; /* Caps labels, badges */
378
+ --tracking-widest: 0.1em; /* Overlines, legal text */
379
+ ```
380
+
381
+ ---
382
+
383
+ ### 3.5 Border Radius
384
+
385
+ ```css
386
+ /* ── Border Radius ───────────────────────────────────────── */
387
+
388
+ --radius-none: 0; /* Sharp — tables, data-dense UIs */
389
+ --radius-sm: 2px; /* Subtle rounding — badges, tags */
390
+ --radius-base: 4px; /* Default — inputs, buttons */
391
+ --radius-md: 6px; /* Cards, panels */
392
+ --radius-lg: 8px; /* Modals, drawers */
393
+ --radius-xl: 12px; /* Feature cards, image containers */
394
+ --radius-2xl: 16px; /* Large surface rounding */
395
+ --radius-full: 9999px; /* Pill — tags, avatars, toggle thumbs */
396
+ ```
397
+
398
+ ---
399
+
400
+ ### 3.6 Shadow / Elevation
401
+
402
+ Elevation communicates layer height. Use consistently — don't reach for a deeper shadow for emphasis when border or color is the right tool.
403
+
404
+ ```css
405
+ /* ── Shadow / Elevation ──────────────────────────────────── */
406
+ /* Level 0: flat — no shadow. Used for page and panel backgrounds. */
407
+
408
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
409
+ /* Level 1 — Buttons, inputs, subtle surface lift */
410
+
411
+ --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
412
+ /* Level 2 — Cards, dropdowns, date pickers */
413
+
414
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
415
+ /* Level 3 — Floating panels, contextual menus */
416
+
417
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
418
+ /* Level 4 — Modals, dialogs */
419
+
420
+ --shadow-xl:
421
+ 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
422
+ /* Level 5 — Full-screen overlays, toast notifications */
423
+ ```
424
+
425
+ ---
426
+
427
+ ### 3.7 Z-Index (Named Layers)
428
+
429
+ Z-index wars happen when values are chosen arbitrarily. Named layers end them.
430
+
431
+ ```css
432
+ /* ── Z-Index ─────────────────────────────────────────────── */
433
+
434
+ --z-base: 0; /* Normal document flow */
435
+ --z-raised: 10; /* Sticky headers, floating action buttons */
436
+ --z-dropdown: 100; /* Dropdown menus, autocomplete lists */
437
+ --z-sticky: 200; /* Sticky navigation */
438
+ --z-overlay: 300; /* Backdrop overlays (behind modals) */
439
+ --z-modal: 400; /* Modals, dialogs, drawers */
440
+ --z-toast: 500; /* Toast notifications (above modals) */
441
+ --z-tooltip: 600; /* Tooltips (above everything interactive) */
442
+ ```
443
+
444
+ Rule: never use a raw integer for z-index in component code. Always reference a named layer. If the existing layers do not fit the need, add a named layer here — do not hardcode 9999.
445
+
446
+ ---
447
+
448
+ ### 3.8 Motion
449
+
450
+ ```css
451
+ /* ── Motion: Duration ────────────────────────────────────── */
452
+
453
+ --duration-instant: 0ms; /* Immediate — no animation (reduced-motion fallback) */
454
+ --duration-fast: 100ms; /* Micro-interactions — button press, toggle */
455
+ --duration-normal: 200ms; /* Standard — state transitions, hover */
456
+ --duration-slow: 300ms; /* Deliberate — panel open, modal enter */
457
+ --duration-slower: 500ms; /* Narrative — page transitions, hero animations */
458
+
459
+ /* ── Motion: Easing ──────────────────────────────────────── */
460
+
461
+ --ease-linear: linear;
462
+ --ease-in: cubic-bezier(0.4, 0, 1, 1); /* Exits — elements leaving the screen */
463
+ --ease-out: cubic-bezier(0, 0, 0.2, 1); /* Entrances — elements arriving */
464
+ --ease-in-out: cubic-bezier(
465
+ 0.4,
466
+ 0,
467
+ 0.2,
468
+ 1
469
+ ); /* State changes — two-way transitions */
470
+ --ease-spring: cubic-bezier(
471
+ 0.34,
472
+ 1.56,
473
+ 0.64,
474
+ 1
475
+ ); /* Playful spring — toggles, thumbs */
476
+ ```
477
+
478
+ Use `--ease-out` for entrances (user is waiting for something to appear — make it feel immediate). Use `--ease-in` for exits (user triggered the dismissal — don't slow them down). Use `--ease-in-out` for transitions where direction is ambiguous.
479
+
480
+ Always implement `@media (prefers-reduced-motion: reduce)` — swap durations to `--duration-instant` and easing to `--ease-linear`.
481
+
482
+ ---
483
+
484
+ ## Phase 4: Output Format
485
+
486
+ ### CSS custom properties block
487
+
488
+ Deliver all tokens in a single `:root` block (light mode defaults), organized by category with clear section comments. The order from Phase 3 is the output order.
489
+
490
+ ```css
491
+ :root {
492
+ /* Color Primitives */
493
+ /* ... */
494
+
495
+ /* Color Semantic: Surface */
496
+ /* ... */
497
+
498
+ /* Color Semantic: Text */
499
+ /* ... */
500
+
501
+ /* Color Semantic: Border */
502
+ /* ... */
503
+
504
+ /* Color Semantic: Action */
505
+ /* ... */
506
+
507
+ /* Color Semantic: Feedback */
508
+ /* ... */
509
+
510
+ /* Spacing */
511
+ /* ... */
512
+
513
+ /* Typography */
514
+ /* ... */
515
+
516
+ /* Border Radius */
517
+ /* ... */
518
+
519
+ /* Shadow */
520
+ /* ... */
521
+
522
+ /* Z-Index */
523
+ /* ... */
524
+
525
+ /* Motion */
526
+ /* ... */
527
+ }
528
+ ```
529
+
530
+ ### Tailwind config mapping (if applicable)
531
+
532
+ If the project uses Tailwind CSS, produce a `tailwind.config.js` that maps tokens to Tailwind's `theme.extend` using `var()` references. Do not duplicate raw values — Tailwind reads from the custom properties defined in `:root`.
533
+
534
+ ```js
535
+ // tailwind.config.js
536
+ module.exports = {
537
+ theme: {
538
+ extend: {
539
+ colors: {
540
+ "action-primary": "var(--color-action-primary)",
541
+ "action-primary-hover": "var(--color-action-primary-hover)",
542
+ "action-secondary": "var(--color-action-secondary)",
543
+ "text-default": "var(--color-text-default)",
544
+ "text-muted": "var(--color-text-muted)",
545
+ "surface-page": "var(--color-surface-page)",
546
+ "surface-default": "var(--color-surface-default)",
547
+ "border-default": "var(--color-border-default)",
548
+ "border-focus": "var(--color-border-focus)",
549
+ "feedback-success-bg": "var(--color-feedback-success-bg)",
550
+ "feedback-error-bg": "var(--color-feedback-error-bg)",
551
+ // ... complete the mapping
552
+ },
553
+ spacing: {
554
+ 1: "var(--space-1)",
555
+ 2: "var(--space-2)",
556
+ 3: "var(--space-3)",
557
+ 4: "var(--space-4)",
558
+ 6: "var(--space-6)",
559
+ 8: "var(--space-8)",
560
+ 12: "var(--space-12)",
561
+ 16: "var(--space-16)",
562
+ 24: "var(--space-24)",
563
+ },
564
+ fontFamily: {
565
+ sans: "var(--font-sans)",
566
+ serif: "var(--font-serif)",
567
+ mono: "var(--font-mono)",
568
+ },
569
+ fontSize: {
570
+ xs: "var(--text-xs)",
571
+ sm: "var(--text-sm)",
572
+ base: "var(--text-base)",
573
+ lg: "var(--text-lg)",
574
+ xl: "var(--text-xl)",
575
+ "2xl": "var(--text-2xl)",
576
+ "3xl": "var(--text-3xl)",
577
+ "4xl": "var(--text-4xl)",
578
+ "5xl": "var(--text-5xl)",
579
+ "6xl": "var(--text-6xl)",
580
+ },
581
+ borderRadius: {
582
+ none: "var(--radius-none)",
583
+ sm: "var(--radius-sm)",
584
+ DEFAULT: "var(--radius-base)",
585
+ md: "var(--radius-md)",
586
+ lg: "var(--radius-lg)",
587
+ xl: "var(--radius-xl)",
588
+ "2xl": "var(--radius-2xl)",
589
+ full: "var(--radius-full)",
590
+ },
591
+ boxShadow: {
592
+ sm: "var(--shadow-sm)",
593
+ DEFAULT: "var(--shadow-base)",
594
+ md: "var(--shadow-md)",
595
+ lg: "var(--shadow-lg)",
596
+ xl: "var(--shadow-xl)",
597
+ },
598
+ zIndex: {
599
+ base: "var(--z-base)",
600
+ raised: "var(--z-raised)",
601
+ dropdown: "var(--z-dropdown)",
602
+ sticky: "var(--z-sticky)",
603
+ overlay: "var(--z-overlay)",
604
+ modal: "var(--z-modal)",
605
+ toast: "var(--z-toast)",
606
+ tooltip: "var(--z-tooltip)",
607
+ },
608
+ transitionDuration: {
609
+ instant: "var(--duration-instant)",
610
+ fast: "var(--duration-fast)",
611
+ normal: "var(--duration-normal)",
612
+ slow: "var(--duration-slow)",
613
+ slower: "var(--duration-slower)",
614
+ },
615
+ },
616
+ },
617
+ };
618
+ ```
619
+
620
+ ### Style Dictionary (if multi-platform)
621
+
622
+ If tokens need to reach iOS or Android, recommend Style Dictionary as the build step. Produce the source JSON token file and a `config.json`. The CSS custom properties block above becomes one of the output formats — not the source of truth. Style Dictionary JSON is the source.
623
+
624
+ ---
625
+
626
+ ## Phase 5: Dark Mode
627
+
628
+ Dark mode is not light mode inverted. Every semantic token needs an explicit value for dark mode. Explain this before proceeding.
629
+
630
+ ### The wrong approach
631
+
632
+ ```css
633
+ /* WRONG — DO NOT DO THIS */
634
+ html[data-theme="dark"] {
635
+ filter: invert(1) hue-rotate(180deg);
636
+ }
637
+ ```
638
+
639
+ This inverts images, photos, and icons. It produces incorrect colors for feedback states. It is a hack, not a system.
640
+
641
+ ### The right approach
642
+
643
+ Redefine every semantic token under a `[data-theme="dark"]` selector (or `@media (prefers-color-scheme: dark)` — choose one strategy and stay consistent). Primitives do not change. Semantic tokens point to different primitives.
644
+
645
+ ```css
646
+ [data-theme="dark"] {
647
+ /* Surface */
648
+ --color-surface-page: var(--color-gray-900);
649
+ --color-surface-default: var(--color-gray-800);
650
+ --color-surface-raised: var(--color-gray-800);
651
+ --color-surface-sunken: var(--color-gray-900);
652
+ --color-surface-overlay: var(--color-gray-800);
653
+ --color-surface-subtle: var(--color-gray-700);
654
+
655
+ /* Text */
656
+ --color-text-default: var(--color-gray-50);
657
+ --color-text-muted: var(--color-gray-400);
658
+ --color-text-subtle: var(--color-gray-600);
659
+ --color-text-inverse: var(--color-gray-900);
660
+ --color-text-link: var(--color-indigo-400);
661
+ --color-text-link-hover: var(--color-indigo-300);
662
+
663
+ /* Border */
664
+ --color-border-default: var(--color-gray-700);
665
+ --color-border-strong: var(--color-gray-600);
666
+ --color-border-focus: var(--color-indigo-400);
667
+ --color-border-error: var(--color-red-400);
668
+
669
+ /* Action */
670
+ --color-action-primary: var(--color-indigo-500);
671
+ --color-action-primary-hover: var(--color-indigo-400);
672
+ --color-action-primary-active: var(--color-indigo-300);
673
+ --color-action-primary-text: var(--color-white);
674
+
675
+ --color-action-secondary: var(--color-gray-700);
676
+ --color-action-secondary-hover: var(--color-gray-600);
677
+ --color-action-secondary-active: var(--color-gray-500);
678
+ --color-action-secondary-text: var(--color-gray-100);
679
+
680
+ --color-action-destructive: var(--color-red-500);
681
+ --color-action-destructive-hover: var(--color-red-400);
682
+ --color-action-destructive-text: var(--color-white);
683
+
684
+ --color-action-disabled-bg: var(--color-gray-800);
685
+ --color-action-disabled-text: var(--color-gray-600);
686
+
687
+ /* Feedback */
688
+ --color-feedback-success-bg: var(--color-green-900);
689
+ --color-feedback-success-border: var(--color-green-500);
690
+ --color-feedback-success-text: var(--color-green-50);
691
+ --color-feedback-success-icon: var(--color-green-500);
692
+
693
+ --color-feedback-warning-bg: var(--color-yellow-900);
694
+ --color-feedback-warning-border: var(--color-yellow-500);
695
+ --color-feedback-warning-text: var(--color-yellow-50);
696
+ --color-feedback-warning-icon: var(--color-yellow-500);
697
+
698
+ --color-feedback-error-bg: var(--color-red-900);
699
+ --color-feedback-error-border: var(--color-red-500);
700
+ --color-feedback-error-text: var(--color-red-50);
701
+ --color-feedback-error-icon: var(--color-red-500);
702
+
703
+ --color-feedback-info-bg: var(--color-blue-900);
704
+ --color-feedback-info-border: var(--color-blue-500);
705
+ --color-feedback-info-text: var(--color-blue-50);
706
+ --color-feedback-info-icon: var(--color-blue-500);
707
+ }
708
+ ```
709
+
710
+ Notice: dark mode feedback tokens do NOT use `-50` background primitives (which are near-white). They use `-900` primitives (deep, desaturated). Dark mode is not a mirror — it is a separate set of decisions.
711
+
712
+ ### Dark mode checklist
713
+
714
+ ```
715
+ [ ] Every semantic token has an explicit dark value
716
+ [ ] Feedback backgrounds use deep palette values, not inverted light values
717
+ [ ] Text muted color passes 3:1 contrast on dark surface
718
+ [ ] Primary action color passes 4.5:1 contrast on dark surface
719
+ [ ] Focus ring is visible on all dark surfaces
720
+ [ ] No filter: invert() anywhere in the codebase
721
+ [ ] prefers-color-scheme and data-theme strategies are consistent — pick one
722
+ ```
723
+
724
+ ---
725
+
726
+ ## Anti-Patterns
727
+
728
+ - **Semantic tokens that describe values, not purpose** — `--color-blue` instead of `--color-action-primary`. When the brand color changes from blue to teal, `--color-blue` breaks. `--color-action-primary` does not.
729
+ - **Components that hardcode hex values** — any `#hex` in a component file is a token debt. Every hex in a component is a future theming bug.
730
+ - **Dark mode as `filter: invert()`** — inverts photos, corrupts feedback colors, and signals the team has no token system.
731
+ - **Dark mode as "just swap light and dark"** — naive inversion produces incorrect contrast ratios and broken feedback states. Dark mode requires explicit decisions.
732
+ - **Spacing values that aren't on the scale** — `margin: 13px` is a design decision that never got made. Surface it, snap it to the scale.
733
+ - **No z-index system** — `z-index: 9999` is a symptom. Named layers are the cure.
734
+ - **Semantic tokens that skip the primitive tier** — `--color-action-primary: #4F46E5` works, but it breaks the one-edit-propagates-everywhere guarantee. Always alias through a primitive.
735
+ - **Incomplete dark token sets** — a semantic token without a dark value defaults to its light value in dark mode. This is always wrong, rarely intentional, and hard to catch in review.
736
+
737
+ ---
738
+
739
+ ## Delivery Checklist
740
+
741
+ Before handing the token system to engineering, verify:
742
+
743
+ ```
744
+ [ ] Brand brief confirmed — tokens derive from documented brand decisions
745
+ [ ] Two-tier model in place — primitives and semantic layers both exist
746
+ [ ] No component in the codebase references a primitive token directly
747
+ [ ] All 8 token categories defined: color primitives, color semantic, spacing,
748
+ typography, border radius, shadow, z-index, motion
749
+ [ ] Spacing scale derives from 8px base — no arbitrary values
750
+ [ ] Every semantic token has documented use rules (where it appears, where it must not)
751
+ [ ] Dark mode: explicit values for every semantic token
752
+ [ ] Dark mode: feedback tokens use deep palette values, not inverted light values
753
+ [ ] Tailwind config (or equivalent) produced if applicable
754
+ [ ] Reduced-motion handled in motion tokens
755
+ [ ] Token file delivered as a single importable CSS file (or Style Dictionary source if multi-platform)
756
+ ```
757
+
758
+ ## Delivery
759
+
760
+ If output exceeds the 40-line CLI budget, invoke `/atlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.