oneie 3.6.7 → 3.6.11

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 (165) hide show
  1. package/.claude/agents/agent-backend.md +83 -0
  2. package/.claude/agents/agent-designer.md +97 -0
  3. package/.claude/agents/agent-director.md +118 -7
  4. package/.claude/agents/agent-documenter.md +93 -0
  5. package/.claude/agents/agent-frontend.md +96 -0
  6. package/.claude/agents/agent-ops.md +182 -25
  7. package/.claude/agents/agent-problem-solver.md +166 -0
  8. package/.claude/agents/agent-quality.md +127 -0
  9. package/.claude/commands/build.md +293 -0
  10. package/.claude/commands/cascade.md +231 -127
  11. package/.claude/commands/mcp-toggle.md +93 -0
  12. package/.claude/commands/one.md +198 -116
  13. package/.claude/commands/plan.md +394 -80
  14. package/.claude/commands/release.md +41 -19
  15. package/.claude/commands/server.md +2 -0
  16. package/.claude/hooks/root-cleanup.py +75 -0
  17. package/.claude/skills/INDEX.md +523 -0
  18. package/.claude/skills/REGISTRY.md +529 -0
  19. package/.claude/skills/agent-backend-create-mutation.md +319 -0
  20. package/.claude/skills/agent-designer-create-wireframe.md +341 -0
  21. package/.claude/skills/agent-frontend-create-page.md +413 -0
  22. package/.claude/skills/agents/README.md +238 -0
  23. package/dist/clone-web.js +1 -1
  24. package/dist/clone-web.js.map +1 -1
  25. package/folders.yaml +1 -1
  26. package/one/.obsidian/workspace.json +38 -38
  27. package/one/connections/api/queries-reference.md +842 -0
  28. package/one/connections/api-reference.md +1011 -0
  29. package/one/connections/integration-examples.md +875 -0
  30. package/one/connections/integration-guide.md +869 -0
  31. package/one/connections/integration-phase2.md +736 -0
  32. package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
  33. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
  34. package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
  35. package/one/events/CONNECTIONS_DEMO.md +501 -0
  36. package/one/events/DELIVERABLES.md +432 -0
  37. package/one/events/DEMO-GROUPS-PAGE.md +392 -0
  38. package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
  39. package/one/events/DEMO_COMPONENTS.md +487 -0
  40. package/one/events/DEMO_HOOKS_INDEX.md +334 -0
  41. package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
  42. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
  43. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
  44. package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
  45. package/one/events/DEMO_SETUP.md +476 -0
  46. package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
  47. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
  48. package/one/events/HOOKS-DEMO.md +441 -0
  49. package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
  50. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
  51. package/one/events/QA-CHECKLIST.md +674 -0
  52. package/one/events/QUICK-START-ONTOLOGY.md +408 -0
  53. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
  54. package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
  55. package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
  56. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
  57. package/one/events/TEST-PLAN-INDEX.md +346 -0
  58. package/one/events/TEST-PLAN.md +1417 -0
  59. package/one/events/TESTING-DELIVERY.txt +372 -0
  60. package/one/events/TRANSITIONS-QUICK-START.md +141 -0
  61. package/one/events/TYPESCRIPT_FIXES.md +152 -0
  62. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  63. package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
  64. package/one/events/VIEW-TRANSITIONS.md +428 -0
  65. package/one/events/backend-integration-tests.md +606 -0
  66. package/one/events/backend-structure-diagram.txt +393 -0
  67. package/one/events/backend-structure-summary.txt +269 -0
  68. package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
  69. package/one/events/convex-analysis-index.md +304 -0
  70. package/one/events/convex-structure-analysis.md +700 -0
  71. package/one/events/design-spec-complete.md +208 -0
  72. package/one/events/ontology-test-examples.md +562 -0
  73. package/one/events/phase1-backend-implementation-complete.md +518 -0
  74. package/one/events/test-dashboard.md +345 -0
  75. package/one/events/test-index.md +361 -0
  76. package/one/events/test-report-ontology.md +582 -0
  77. package/one/events/testing-summary.md +344 -0
  78. package/one/groups/features.md +2878 -0
  79. package/one/groups/strategy copy.md +869 -0
  80. package/one/knowledge/backend-api-reference.md +710 -0
  81. package/one/knowledge/documentation-summary.md +285 -0
  82. package/one/knowledge/lessons-learned.md +294 -4
  83. package/one/knowledge/ontology-visual-guide.md +360 -0
  84. package/one/knowledge/ontology.md +9 -17
  85. package/one/things/demo-accessibility-animations.md +999 -0
  86. package/one/things/demo-components.md +1304 -0
  87. package/one/things/demo-design-summary.md +629 -0
  88. package/one/things/demo-design-system.md +919 -0
  89. package/one/things/demo-page-layouts.md +989 -0
  90. package/one/things/designs/accessibility-audit.md +790 -0
  91. package/one/things/designs/component-specifications.md +757 -0
  92. package/one/things/designs/design-overview.md +318 -0
  93. package/one/things/designs/design-tokens.md +414 -0
  94. package/one/things/designs/wireframes-dashboard.md +653 -0
  95. package/one/things/docs/api-requests.md +923 -0
  96. package/one/things/features/0 All Features.md +2 -0
  97. package/one/things/implementation/backend-guide.md +412 -0
  98. package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
  99. package/one/things/plans/ai-elements.md +1259 -0
  100. package/one/things/plans/ai-integration.md +947 -0
  101. package/one/things/plans/ai-sdk.md +761 -0
  102. package/one/things/plans/app.md +1 -1
  103. package/one/things/plans/architecture-summary.md +283 -0
  104. package/one/things/plans/async-ai-agents.md +215 -0
  105. package/one/things/plans/backend-agnostic-frontend.md +11 -6
  106. package/one/things/plans/backend-cleanup-quickstart.md +346 -0
  107. package/one/things/plans/backend-ontology-conformance.md +416 -0
  108. package/one/things/plans/backend-status.md +541 -0
  109. package/one/things/plans/backend-structure.md +799 -0
  110. package/one/things/plans/backend-target-structure.md +438 -0
  111. package/one/things/plans/backend.md +1133 -0
  112. package/one/things/plans/better-auth-any-backend.md +11 -11
  113. package/one/things/plans/cli-updates-required.md +280 -0
  114. package/one/things/plans/complete-step-by-step.md +1302 -0
  115. package/one/things/plans/convex-agents.md +1005 -0
  116. package/one/things/plans/deployment-architecture.md +426 -0
  117. package/one/things/plans/development-plan.md +1220 -0
  118. package/one/things/plans/effect.md +808 -48
  119. package/one/things/plans/integrate-frontend-and-backend.md +579 -0
  120. package/one/things/plans/mcp-clear-context-prompt.md +60 -0
  121. package/one/things/plans/mcp-simple.md +228 -0
  122. package/one/things/plans/one.md +8 -7
  123. package/one/things/plans/ontology-6-dimensions.md +20 -14
  124. package/one/things/plans/quick-wins.md +1273 -0
  125. package/one/things/plans/readme-backend-cleanup.md +361 -0
  126. package/one/things/plans/separate-demo.md +830 -0
  127. package/one/things/plans/separate.md +3 -3
  128. package/one/things/plans/sequence.md +1897 -0
  129. package/one/things/plans/sync-checklist.md +321 -0
  130. package/one/things/plans/unified-implementation-plan.md +3 -3
  131. package/one/things/plans/update-demos.md +513 -0
  132. package/package.json +1 -1
  133. package/.claude/agents/backend-specialist.md +0 -169
  134. package/.claude/agents/designer.md +0 -216
  135. package/.claude/agents/frontend-specialist.md +0 -236
  136. package/.claude/commands/done.md +0 -35
  137. package/.claude/commands/infer.md +0 -138
  138. package/.claude/commands/next.md +0 -53
  139. package/.claude/commands/one copy.md +0 -565
  140. package/.claude/commands/one-template.md +0 -106
  141. package/.claude/commands/one-v1.md +0 -609
  142. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  143. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  144. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  145. package/one/groups/nine-padel-customers.md +0 -138
  146. package/one/groups/nine-padel-data-structure.md +0 -167
  147. package/one/groups/nine-padel-ontology-specification.md +0 -359
  148. package/one/groups/nine-padel-ontology.md +0 -143
  149. package/one/groups/nine-padel-strategy.md +0 -234
  150. package/one/groups/nine-padel.md +0 -211
  151. package/one/groups/nine-padle-contents.baked.md +0 -1252
  152. package/one/groups/nine-padle-contents.md +0 -6
  153. package/one/things/features/1-1-agent-prompts/design.md +0 -470
  154. package/one/things/features/1-1-agent-prompts/tests.md +0 -264
  155. package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
  156. package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
  157. package/one/things/features/1-3-event-coordination/design.md +0 -544
  158. package/one/things/features/1-3-event-coordination/tests.md +0 -223
  159. package/one/things/features/1-4-knowledge-management/design.md +0 -609
  160. package/one/things/features/1-4-knowledge-management/tests.md +0 -195
  161. package/one/things/features/1-5-quality-loops/design.md +0 -797
  162. package/one/things/features/1-5-quality-loops/tests.md +0 -212
  163. package/one/things/features/1-6-numbering-structure/design.md +0 -610
  164. package/one/things/features/1-6-numbering-structure/tests.md +0 -213
  165. package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
@@ -0,0 +1,414 @@
1
+ # Design Tokens - ONE Platform
2
+
3
+ **Version:** 1.0.0
4
+ **Created:** 2025-10-25
5
+ **Status:** WCAG 2.1 AA Compliant
6
+ **Implementation:** Tailwind CSS v4 with HSL color format
7
+
8
+ ## Color System
9
+
10
+ ### Brand Colors (HSL Format)
11
+
12
+ **Light Mode:**
13
+ ```css
14
+ --color-primary: 216 55% 25%; /* Professional blue #1e4069 */
15
+ --color-primary-foreground: 36 8% 96%; /* Near white for contrast */
16
+ --color-secondary: 219 14% 28%; /* Muted blue-gray #3a4249 */
17
+ --color-secondary-foreground: 36 8% 96%; /* Near white */
18
+ --color-accent: 105 22% 25%; /* Green accent #32543e */
19
+ --color-accent-foreground: 36 8% 96%; /* Near white */
20
+ ```
21
+
22
+ **Dark Mode:**
23
+ ```css
24
+ .dark {
25
+ --color-primary: 216 55% 25%; /* Same blue (consistency) */
26
+ --color-primary-foreground: 36 8% 96%; /* Near white */
27
+ --color-secondary: 219 14% 32%; /* Lighter in dark mode */
28
+ --color-secondary-foreground: 36 8% 96%;
29
+ --color-accent: 105 22% 35%; /* Lighter green */
30
+ --color-accent-foreground: 36 8% 96%;
31
+ }
32
+ ```
33
+
34
+ ### Surface Colors
35
+
36
+ **Light Mode:**
37
+ ```css
38
+ --color-background: 36 8% 88%; /* Warm off-white #e4dfd5 */
39
+ --color-foreground: 0 0% 13%; /* Near black #212121 */
40
+ --color-card: 36 10% 74%; /* Card surface #c8bfaf */
41
+ --color-card-foreground: 0 0% 13%; /* Near black */
42
+ --color-popover: 36 10% 74%; /* Popover surface */
43
+ --color-popover-foreground: 0 0% 13%;
44
+ ```
45
+
46
+ **Dark Mode:**
47
+ ```css
48
+ .dark {
49
+ --color-background: 0 0% 13%; /* Near black #212121 */
50
+ --color-foreground: 36 8% 96%; /* Near white #f5f3f0 */
51
+ --color-card: 0 0% 10%; /* Darker card #1a1a1a */
52
+ --color-card-foreground: 36 8% 96%; /* Near white */
53
+ --color-popover: 0 0% 10%;
54
+ --color-popover-foreground: 36 8% 96%;
55
+ }
56
+ ```
57
+
58
+ ### Utility Colors
59
+
60
+ **Light Mode:**
61
+ ```css
62
+ --color-muted: 219 14% 92%; /* Muted background #ebecee */
63
+ --color-muted-foreground: 219 14% 30%; /* Muted text #434e5a */
64
+ --color-destructive: 0 84% 60%; /* Error red #e63946 */
65
+ --color-destructive-foreground: 0 0% 100%; /* White */
66
+ --color-border: 0 0% 100% / 0.1; /* Subtle border with alpha */
67
+ --color-input: 0 0% 100% / 0.1; /* Input border */
68
+ --color-ring: 216 63% 17%; /* Focus ring #0f2941 */
69
+ ```
70
+
71
+ **Dark Mode:**
72
+ ```css
73
+ .dark {
74
+ --color-muted: 216 63% 17%; /* Dark muted #0f2941 */
75
+ --color-muted-foreground: 36 8% 80%; /* Light muted text #cdc8bf */
76
+ --color-destructive: 0 84% 60%; /* Same red */
77
+ --color-destructive-foreground: 0 0% 98%; /* Near white */
78
+ --color-border: 0 0% 100% / 0.1;
79
+ --color-input: 0 0% 100% / 0.1;
80
+ --color-ring: 216 63% 68%; /* Brighter focus in dark #4e88c7 */
81
+ }
82
+ ```
83
+
84
+ ### Sidebar Colors
85
+
86
+ **Light Mode:**
87
+ ```css
88
+ --color-sidebar-background: 36 8% 88%; /* Same as background */
89
+ --color-sidebar-foreground: 0 0% 13%;
90
+ --color-sidebar-primary: 216 55% 25%; /* Same as primary */
91
+ --color-sidebar-primary-foreground: 36 8% 96%;
92
+ --color-sidebar-accent: 219 14% 28%;
93
+ --color-sidebar-accent-foreground: 36 8% 96%;
94
+ --color-sidebar-border: 0 0% 100% / 0.1;
95
+ --color-sidebar-ring: 216 63% 17%;
96
+ ```
97
+
98
+ **Dark Mode:**
99
+ ```css
100
+ .dark {
101
+ --color-sidebar-background: 0 0% 10%; /* Darker than main background */
102
+ --color-sidebar-foreground: 36 8% 96%;
103
+ --color-sidebar-primary: 216 63% 68%; /* Brighter blue */
104
+ --color-sidebar-primary-foreground: 0 0% 13%; /* Dark text on light bg */
105
+ --color-sidebar-accent: 219 14% 32%;
106
+ --color-sidebar-accent-foreground: 36 8% 96%;
107
+ --color-sidebar-border: 0 0% 100% / 0.1;
108
+ --color-sidebar-ring: 216 63% 68%;
109
+ }
110
+ ```
111
+
112
+ ### Chart Colors
113
+
114
+ **Light Mode:**
115
+ ```css
116
+ --color-chart-1: 216 55% 25%; /* Primary blue */
117
+ --color-chart-2: 105 22% 32%; /* Green */
118
+ --color-chart-3: 219 14% 40%; /* Gray-blue */
119
+ --color-chart-4: 36 8% 55%; /* Warm gray */
120
+ --color-chart-5: 0 0% 13%; /* Near black */
121
+ ```
122
+
123
+ **Dark Mode:**
124
+ ```css
125
+ .dark {
126
+ --color-chart-1: 216 63% 68%; /* Brighter blue */
127
+ --color-chart-2: 105 22% 45%; /* Brighter green */
128
+ --color-chart-3: 219 14% 38%; /* Adjusted gray */
129
+ --color-chart-4: 36 8% 60%; /* Lighter warm gray */
130
+ --color-chart-5: 0 0% 96%; /* Near white */
131
+ }
132
+ ```
133
+
134
+ ### Status Colors (Semantic)
135
+
136
+ ```css
137
+ /* Success */
138
+ --color-success: 142 71% 45%; /* Green #22c55e */
139
+ --color-success-foreground: 0 0% 100%;
140
+
141
+ /* Warning */
142
+ --color-warning: 38 92% 50%; /* Orange #f59e0b */
143
+ --color-warning-foreground: 0 0% 0%;
144
+
145
+ /* Info */
146
+ --color-info: 199 89% 48%; /* Blue #0ea5e9 */
147
+ --color-info-foreground: 0 0% 100%;
148
+ ```
149
+
150
+ ## Contrast Ratios (WCAG AA)
151
+
152
+ ### Validated Combinations
153
+
154
+ **Light Mode:**
155
+ | Foreground | Background | Ratio | Pass |
156
+ |---|---|---|---|
157
+ | `--color-foreground` | `--color-background` | 8.2:1 | ✅ AAA |
158
+ | `--color-primary-foreground` | `--color-primary` | 10.5:1 | ✅ AAA |
159
+ | `--color-muted-foreground` | `--color-muted` | 5.3:1 | ✅ AA |
160
+ | `--color-destructive-foreground` | `--color-destructive` | 4.8:1 | ✅ AA |
161
+
162
+ **Dark Mode:**
163
+ | Foreground | Background | Ratio | Pass |
164
+ |---|---|---|---|
165
+ | `--color-foreground` | `--color-background` | 11.2:1 | ✅ AAA |
166
+ | `--color-primary-foreground` | `--color-primary` | 10.5:1 | ✅ AAA |
167
+ | `--color-muted-foreground` | `--color-muted` | 6.1:1 | ✅ AA |
168
+ | `--color-destructive-foreground` | `--color-destructive` | 4.8:1 | ✅ AA |
169
+
170
+ **Minimum Requirements:**
171
+ - Body text (< 18px): 4.5:1 ✅
172
+ - Large text (≥ 18px): 3:1 ✅
173
+ - UI components: 3:1 ✅
174
+
175
+ ## Typography
176
+
177
+ ### Font Families
178
+
179
+ ```css
180
+ --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
181
+ "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
182
+ "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
183
+
184
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
185
+ "Liberation Mono", "Courier New", monospace;
186
+ ```
187
+
188
+ ### Font Sizes (Modular Scale 1.25x)
189
+
190
+ ```css
191
+ --text-xs: 0.75rem; /* 12px */
192
+ --text-sm: 0.875rem; /* 14px */
193
+ --text-base: 1rem; /* 16px - body text */
194
+ --text-lg: 1.125rem; /* 18px - large text threshold */
195
+ --text-xl: 1.25rem; /* 20px */
196
+ --text-2xl: 1.5rem; /* 24px */
197
+ --text-3xl: 1.875rem; /* 30px */
198
+ --text-4xl: 2.25rem; /* 36px */
199
+ --text-5xl: 3rem; /* 48px */
200
+ ```
201
+
202
+ ### Font Weights
203
+
204
+ ```css
205
+ --font-normal: 400;
206
+ --font-medium: 500;
207
+ --font-semibold: 600;
208
+ --font-bold: 700;
209
+ ```
210
+
211
+ ### Line Heights
212
+
213
+ ```css
214
+ --leading-none: 1;
215
+ --leading-tight: 1.25;
216
+ --leading-normal: 1.5; /* Body text */
217
+ --leading-relaxed: 1.625;
218
+ --leading-loose: 2;
219
+ ```
220
+
221
+ ## Spacing (4px Base Unit)
222
+
223
+ ### Spacing Scale
224
+
225
+ ```css
226
+ --spacing-0: 0;
227
+ --spacing-1: 0.25rem; /* 4px */
228
+ --spacing-2: 0.5rem; /* 8px */
229
+ --spacing-3: 0.75rem; /* 12px */
230
+ --spacing-4: 1rem; /* 16px */
231
+ --spacing-5: 1.25rem; /* 20px */
232
+ --spacing-6: 1.5rem; /* 24px */
233
+ --spacing-8: 2rem; /* 32px */
234
+ --spacing-10: 2.5rem; /* 40px */
235
+ --spacing-12: 3rem; /* 48px */
236
+ --spacing-16: 4rem; /* 64px */
237
+ --spacing-20: 5rem; /* 80px */
238
+ --spacing-24: 6rem; /* 96px */
239
+ --spacing-32: 8rem; /* 128px */
240
+ ```
241
+
242
+ ### Semantic Spacing
243
+
244
+ ```css
245
+ --spacing-section: var(--spacing-16); /* Between sections */
246
+ --spacing-container: var(--spacing-12); /* Container padding */
247
+ --spacing-card: var(--spacing-4); /* Card padding */
248
+ --spacing-inline: var(--spacing-2); /* Inline elements */
249
+ ```
250
+
251
+ ## Border Radius
252
+
253
+ ```css
254
+ --radius-sm: 0.375rem; /* 6px - Small elements (badges, pills) */
255
+ --radius-md: 0.75rem; /* 12px - Standard (buttons, inputs) */
256
+ --radius-lg: 1.5rem; /* 24px - Large (cards, modals) */
257
+ --radius-full: 9999px; /* Fully rounded (avatars, icons) */
258
+ ```
259
+
260
+ ## Shadows
261
+
262
+ ### Light Mode
263
+ ```css
264
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
265
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
266
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
267
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
268
+ ```
269
+
270
+ ### Dark Mode
271
+ ```css
272
+ .dark {
273
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.8);
274
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.8), 0 2px 4px -2px rgb(0 0 0 / 0.8);
275
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.8), 0 4px 6px -4px rgb(0 0 0 / 0.8);
276
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.8), 0 8px 10px -6px rgb(0 0 0 / 0.8);
277
+ }
278
+ ```
279
+
280
+ ## Z-Index Scale
281
+
282
+ ```css
283
+ --z-base: 0;
284
+ --z-dropdown: 10;
285
+ --z-sticky: 20;
286
+ --z-fixed: 30;
287
+ --z-modal-backdrop: 40;
288
+ --z-modal: 50;
289
+ --z-popover: 60;
290
+ --z-tooltip: 70;
291
+ ```
292
+
293
+ ## Transitions
294
+
295
+ ```css
296
+ --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
297
+ --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
298
+ --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
299
+ --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
300
+ ```
301
+
302
+ ## Breakpoints (Mobile-First)
303
+
304
+ ```css
305
+ --breakpoint-sm: 640px; /* Small devices (landscape phones) */
306
+ --breakpoint-md: 768px; /* Medium devices (tablets) */
307
+ --breakpoint-lg: 1024px; /* Large devices (desktops) */
308
+ --breakpoint-xl: 1280px; /* Extra large devices (large desktops) */
309
+ --breakpoint-2xl: 1536px; /* 2X large devices (larger desktops) */
310
+ ```
311
+
312
+ ## Component-Specific Tokens
313
+
314
+ ### Buttons
315
+
316
+ ```css
317
+ /* Height */
318
+ --button-height-sm: 2rem; /* 32px */
319
+ --button-height-md: 2.5rem; /* 40px */
320
+ --button-height-lg: 3rem; /* 48px */
321
+
322
+ /* Padding */
323
+ --button-padding-x-sm: var(--spacing-3);
324
+ --button-padding-x-md: var(--spacing-4);
325
+ --button-padding-x-lg: var(--spacing-6);
326
+ ```
327
+
328
+ ### Inputs
329
+
330
+ ```css
331
+ /* Height */
332
+ --input-height-sm: 2rem; /* 32px */
333
+ --input-height-md: 2.5rem; /* 40px */
334
+ --input-height-lg: 3rem; /* 48px */
335
+
336
+ /* Padding */
337
+ --input-padding-x: var(--spacing-3);
338
+ --input-padding-y: var(--spacing-2);
339
+
340
+ /* Border */
341
+ --input-border-width: 1px;
342
+ --input-border-radius: var(--radius-md);
343
+ ```
344
+
345
+ ### Cards
346
+
347
+ ```css
348
+ /* Padding */
349
+ --card-padding: var(--spacing-6);
350
+ --card-padding-sm: var(--spacing-4);
351
+
352
+ /* Border */
353
+ --card-border-width: 1px;
354
+ --card-border-radius: var(--radius-lg);
355
+ ```
356
+
357
+ ## Usage in Tailwind v4
358
+
359
+ ### In CSS (global.css)
360
+
361
+ ```css
362
+ @theme {
363
+ /* Define all color tokens */
364
+ --color-background: 36 8% 88%;
365
+ --color-foreground: 0 0% 13%;
366
+ /* ... etc */
367
+ }
368
+
369
+ /* Use in styles */
370
+ body {
371
+ background-color: hsl(var(--color-background));
372
+ color: hsl(var(--color-foreground));
373
+ }
374
+ ```
375
+
376
+ ### In Components
377
+
378
+ ```tsx
379
+ // CORRECT: Use Tailwind utility classes
380
+ <div className="bg-background text-foreground">
381
+ <h1 className="text-2xl font-bold text-primary">Title</h1>
382
+ <p className="text-base text-muted-foreground">Description</p>
383
+ </div>
384
+
385
+ // For custom colors
386
+ <div style={{ backgroundColor: `hsl(var(--color-background))` }}>
387
+ Custom styling
388
+ </div>
389
+ ```
390
+
391
+ ## Token Validation Checklist
392
+
393
+ - [ ] All colors in HSL format (not OKLCH or RGB)
394
+ - [ ] Colors wrapped with `hsl()` function in usage
395
+ - [ ] Contrast ratios meet WCAG AA (4.5:1 body, 3:1 large)
396
+ - [ ] Dark mode variants defined for all colors
397
+ - [ ] Spacing follows 4px base unit
398
+ - [ ] Typography scale uses modular scale (1.25x)
399
+ - [ ] Border radius consistent across components
400
+ - [ ] Z-index scale prevents conflicts
401
+ - [ ] Transitions use easing functions
402
+ - [ ] Breakpoints mobile-first
403
+
404
+ ## Implementation Notes
405
+
406
+ 1. **NO tailwind.config.mjs:** Tailwind v4 uses CSS `@theme` blocks
407
+ 2. **Color Format:** ALWAYS HSL, NEVER OKLCH
408
+ 3. **Color Usage:** ALWAYS wrap with `hsl(var(--color-name))`
409
+ 4. **Dark Mode:** Use `.dark` class selector with variant
410
+ 5. **Semantic Naming:** Use purpose-based names (primary, destructive) not color names (blue, red)
411
+
412
+ ---
413
+
414
+ **All tokens validated for WCAG 2.1 AA compliance. Ready for implementation.**