oneie 3.6.6 → 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 (166) 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/onboard.md +179 -0
  13. package/.claude/commands/one.md +236 -516
  14. package/.claude/commands/plan.md +394 -80
  15. package/.claude/commands/release.md +41 -19
  16. package/.claude/commands/server.md +335 -0
  17. package/.claude/hooks/root-cleanup.py +75 -0
  18. package/.claude/skills/INDEX.md +523 -0
  19. package/.claude/skills/REGISTRY.md +529 -0
  20. package/.claude/skills/agent-backend-create-mutation.md +319 -0
  21. package/.claude/skills/agent-designer-create-wireframe.md +341 -0
  22. package/.claude/skills/agent-frontend-create-page.md +413 -0
  23. package/.claude/skills/agents/README.md +238 -0
  24. package/dist/clone-web.js +1 -1
  25. package/dist/clone-web.js.map +1 -1
  26. package/folders.yaml +1 -1
  27. package/one/.obsidian/workspace.json +38 -38
  28. package/one/connections/api/queries-reference.md +842 -0
  29. package/one/connections/api-reference.md +1011 -0
  30. package/one/connections/integration-examples.md +875 -0
  31. package/one/connections/integration-guide.md +869 -0
  32. package/one/connections/integration-phase2.md +736 -0
  33. package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
  34. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
  35. package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
  36. package/one/events/CONNECTIONS_DEMO.md +501 -0
  37. package/one/events/DELIVERABLES.md +432 -0
  38. package/one/events/DEMO-GROUPS-PAGE.md +392 -0
  39. package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
  40. package/one/events/DEMO_COMPONENTS.md +487 -0
  41. package/one/events/DEMO_HOOKS_INDEX.md +334 -0
  42. package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
  43. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
  44. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
  45. package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
  46. package/one/events/DEMO_SETUP.md +476 -0
  47. package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
  48. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
  49. package/one/events/HOOKS-DEMO.md +441 -0
  50. package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
  51. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
  52. package/one/events/QA-CHECKLIST.md +674 -0
  53. package/one/events/QUICK-START-ONTOLOGY.md +408 -0
  54. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
  55. package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
  56. package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
  57. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
  58. package/one/events/TEST-PLAN-INDEX.md +346 -0
  59. package/one/events/TEST-PLAN.md +1417 -0
  60. package/one/events/TESTING-DELIVERY.txt +372 -0
  61. package/one/events/TRANSITIONS-QUICK-START.md +141 -0
  62. package/one/events/TYPESCRIPT_FIXES.md +152 -0
  63. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  64. package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
  65. package/one/events/VIEW-TRANSITIONS.md +428 -0
  66. package/one/events/backend-integration-tests.md +606 -0
  67. package/one/events/backend-structure-diagram.txt +393 -0
  68. package/one/events/backend-structure-summary.txt +269 -0
  69. package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
  70. package/one/events/convex-analysis-index.md +304 -0
  71. package/one/events/convex-structure-analysis.md +700 -0
  72. package/one/events/design-spec-complete.md +208 -0
  73. package/one/events/ontology-test-examples.md +562 -0
  74. package/one/events/phase1-backend-implementation-complete.md +518 -0
  75. package/one/events/test-dashboard.md +345 -0
  76. package/one/events/test-index.md +361 -0
  77. package/one/events/test-report-ontology.md +582 -0
  78. package/one/events/testing-summary.md +344 -0
  79. package/one/groups/features.md +2878 -0
  80. package/one/groups/strategy copy.md +869 -0
  81. package/one/knowledge/backend-api-reference.md +710 -0
  82. package/one/knowledge/documentation-summary.md +285 -0
  83. package/one/knowledge/lessons-learned.md +294 -4
  84. package/one/knowledge/ontology-visual-guide.md +360 -0
  85. package/one/knowledge/ontology.md +9 -17
  86. package/one/things/demo-accessibility-animations.md +999 -0
  87. package/one/things/demo-components.md +1304 -0
  88. package/one/things/demo-design-summary.md +629 -0
  89. package/one/things/demo-design-system.md +919 -0
  90. package/one/things/demo-page-layouts.md +989 -0
  91. package/one/things/designs/accessibility-audit.md +790 -0
  92. package/one/things/designs/component-specifications.md +757 -0
  93. package/one/things/designs/design-overview.md +318 -0
  94. package/one/things/designs/design-tokens.md +414 -0
  95. package/one/things/designs/wireframes-dashboard.md +653 -0
  96. package/one/things/docs/api-requests.md +923 -0
  97. package/one/things/features/0 All Features.md +2 -0
  98. package/one/things/implementation/backend-guide.md +412 -0
  99. package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
  100. package/one/things/plans/ai-elements.md +1259 -0
  101. package/one/things/plans/ai-integration.md +947 -0
  102. package/one/things/plans/ai-sdk.md +761 -0
  103. package/one/things/plans/app.md +1 -1
  104. package/one/things/plans/architecture-summary.md +283 -0
  105. package/one/things/plans/async-ai-agents.md +215 -0
  106. package/one/things/plans/backend-agnostic-frontend.md +11 -6
  107. package/one/things/plans/backend-cleanup-quickstart.md +346 -0
  108. package/one/things/plans/backend-ontology-conformance.md +416 -0
  109. package/one/things/plans/backend-status.md +541 -0
  110. package/one/things/plans/backend-structure.md +799 -0
  111. package/one/things/plans/backend-target-structure.md +438 -0
  112. package/one/things/plans/backend.md +1133 -0
  113. package/one/things/plans/better-auth-any-backend.md +11 -11
  114. package/one/things/plans/cli-updates-required.md +280 -0
  115. package/one/things/plans/complete-step-by-step.md +1302 -0
  116. package/one/things/plans/convex-agents.md +1005 -0
  117. package/one/things/plans/deployment-architecture.md +426 -0
  118. package/one/things/plans/development-plan.md +1220 -0
  119. package/one/things/plans/effect.md +808 -48
  120. package/one/things/plans/integrate-frontend-and-backend.md +579 -0
  121. package/one/things/plans/mcp-clear-context-prompt.md +60 -0
  122. package/one/things/plans/mcp-simple.md +228 -0
  123. package/one/things/plans/one.md +8 -7
  124. package/one/things/plans/ontology-6-dimensions.md +20 -14
  125. package/one/things/plans/quick-wins.md +1273 -0
  126. package/one/things/plans/readme-backend-cleanup.md +361 -0
  127. package/one/things/plans/separate-demo.md +830 -0
  128. package/one/things/plans/separate.md +3 -3
  129. package/one/things/plans/sequence.md +1897 -0
  130. package/one/things/plans/sync-checklist.md +321 -0
  131. package/one/things/plans/unified-implementation-plan.md +3 -3
  132. package/one/things/plans/update-demos.md +513 -0
  133. package/package.json +1 -1
  134. package/.claude/agents/backend-specialist.md +0 -169
  135. package/.claude/agents/designer.md +0 -216
  136. package/.claude/agents/frontend-specialist.md +0 -236
  137. package/.claude/commands/done.md +0 -35
  138. package/.claude/commands/infer.md +0 -138
  139. package/.claude/commands/next.md +0 -53
  140. package/.claude/commands/one copy.md +0 -565
  141. package/.claude/commands/one-template.md +0 -106
  142. package/.claude/commands/one-v1.md +0 -609
  143. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  144. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  145. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  146. package/one/groups/nine-padel-customers.md +0 -138
  147. package/one/groups/nine-padel-data-structure.md +0 -167
  148. package/one/groups/nine-padel-ontology-specification.md +0 -359
  149. package/one/groups/nine-padel-ontology.md +0 -143
  150. package/one/groups/nine-padel-strategy.md +0 -234
  151. package/one/groups/nine-padel.md +0 -211
  152. package/one/groups/nine-padle-contents.baked.md +0 -1252
  153. package/one/groups/nine-padle-contents.md +0 -6
  154. package/one/things/features/1-1-agent-prompts/design.md +0 -470
  155. package/one/things/features/1-1-agent-prompts/tests.md +0 -264
  156. package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
  157. package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
  158. package/one/things/features/1-3-event-coordination/design.md +0 -544
  159. package/one/things/features/1-3-event-coordination/tests.md +0 -223
  160. package/one/things/features/1-4-knowledge-management/design.md +0 -609
  161. package/one/things/features/1-4-knowledge-management/tests.md +0 -195
  162. package/one/things/features/1-5-quality-loops/design.md +0 -797
  163. package/one/things/features/1-5-quality-loops/tests.md +0 -212
  164. package/one/things/features/1-6-numbering-structure/design.md +0 -610
  165. package/one/things/features/1-6-numbering-structure/tests.md +0 -213
  166. package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
@@ -0,0 +1,381 @@
1
+ # Search/Knowledge Demo - Visual Structure Guide
2
+
3
+ ## Page Layout
4
+
5
+ ```
6
+ ┌─────────────────────────────────────────────────────────────────────┐
7
+ │ DEMO CONTAINER │
8
+ │ Header: "Knowledge: Semantic Search & RAG" │
9
+ │ Description: "Dimension 6 of 6 - Vector embeddings..." │
10
+ │ Status: Connected (42ms latency) | Refresh Button │
11
+ │ Backend URL: https://veracious-marlin-319.convex.cloud │
12
+ └─────────────────────────────────────────────────────────────────────┘
13
+
14
+ ┌─────────────────────────────────────────────────────────────────────┐
15
+ │ HERO SECTION │
16
+ │ Icon: 🔍 Search │
17
+ │ Title: "Knowledge: The 6th Dimension" │
18
+ │ Description: "Vector embeddings, semantic search..." │
19
+ │ Badges: [Semantic Search] [RAG Ready] [Vector Embeddings] │
20
+ │ CTA: "Scroll to Playground" │
21
+ └─────────────────────────────────────────────────────────────────────┘
22
+
23
+ ┌─────────────────────────────────────────────────────────────────────┐
24
+ │ WHAT IS KNOWLEDGE SECTION │
25
+ │ ┌────────────────────────────────────────────────────────────────┐ │
26
+ │ │ 🔍 Full-Text Search │ │
27
+ │ │ Search across all text content in the system with keyword │ │
28
+ │ │ matching and filtering │ │
29
+ │ └────────────────────────────────────────────────────────────────┘ │
30
+ │ ┌────────────────────────────────────────────────────────────────┐ │
31
+ │ │ 📊 Vector Embeddings │ │
32
+ │ │ Semantic similarity search using high-dimensional embeddings │ │
33
+ │ │ for meaning-based results │ │
34
+ │ └────────────────────────────────────────────────────────────────┘ │
35
+ │ ┌────────────────────────────────────────────────────────────────┐ │
36
+ │ │ ⚡ RAG Pipeline │ │
37
+ │ │ Retrieve augmented generation combining semantic search │ │
38
+ │ │ with LLM generation for AI-powered responses │ │
39
+ │ └────────────────────────────────────────────────────────────────┘ │
40
+ └─────────────────────────────────────────────────────────────────────┘
41
+
42
+ ┌─────────────────────────────────────────────────────────────────────┐
43
+ │ INTERACTIVE KNOWLEDGE PLAYGROUND │
44
+ │ │
45
+ │ LEFT COLUMN (1/3) RIGHT COLUMN (2/3) │
46
+ │ ┌──────────────────────────┐ ┌──────────────────────────────┐ │
47
+ │ │ ACTIONS (collapsible) │ │ DATA VIEW (list/grid toggle) │ │
48
+ │ ├──────────────────────────┤ ├──────────────────────────────┤ │
49
+ │ │ │ │ │ │
50
+ │ │ Knowledge Content │ │ Recent Knowledge Items (5) │ │
51
+ │ │ [textarea 24h height] │ │ ┌──────────────────────────┐ │ │
52
+ │ │ │ │ │ Knowledge Item 1 │ │ │
53
+ │ │ Labels (Categories) │ │ │ Labels: [ai][ml][tut] │ │ │
54
+ │ │ [text input] [Add] │ │ │ Date: 10/25/2025 │ │ │
55
+ │ │ [Tag] [Tag] [Tag] [x] │ │ └──────────────────────────┘ │ │
56
+ │ │ │ │ ┌──────────────────────────┐ │ │
57
+ │ │ [Create Knowledge Item] │ │ │ Knowledge Item 2 │ │ │
58
+ │ │ │ │ └──────────────────────────┘ │ │
59
+ │ │ ℹ️ Knowledge items are │ │ ... (more items) │ │
60
+ │ │ indexed immediately │ │ │ │
61
+ │ └──────────────────────────┘ └──────────────────────────────┘ │
62
+ │ │
63
+ │ Footer: "Use this form..." | "Real-time updates enabled" │
64
+ └─────────────────────────────────────────────────────────────────────┘
65
+
66
+ ┌─────────────────────────────────────────────────────────────────────┐
67
+ │ TRY SEMANTIC SEARCH SECTION │
68
+ │ │
69
+ │ 💫 Try Semantic Search │
70
+ │ Type a query below to see how semantic search finds relevant │
71
+ │ knowledge across the system. Results ranked by relevance using │
72
+ │ vector similarity. │
73
+ │ │
74
+ │ ┌─────────────────────────────────────────────────────────────┐ │
75
+ │ │ 🔍 Try: 'machine learning', 'embeddings', 'neural networks' │ │
76
+ │ │ [Search Input with autocomplete] │ │
77
+ │ └─────────────────────────────────────────────────────────────┘ │
78
+ │ │
79
+ │ Results: │
80
+ │ ┌─────────────────────────────────────────────────────────────┐ │
81
+ │ │ Result 1: "Machine Learning Fundamentals" │ │
82
+ │ │ Type: [course] From: ML 101 Course │ │
83
+ │ │ Score: [████████████████████░] 95% │ │
84
+ │ │ Content preview... │ │
85
+ │ │ #1 of 5 results [View Details →] │ │
86
+ │ └─────────────────────────────────────────────────────────────┘ │
87
+ │ ┌─────────────────────────────────────────────────────────────┐ │
88
+ │ │ Result 2: "Deep Learning Guide" │ │
89
+ │ │ ... (more results) │ │
90
+ │ └─────────────────────────────────────────────────────────────┘ │
91
+ │ │
92
+ │ Found 5 relevant results for "machine learning" │
93
+ │ Results ranked by semantic similarity. Higher % = better matches. │
94
+ │ │
95
+ │ Example searches: [machine learning] [embeddings] [neural...] │
96
+ └─────────────────────────────────────────────────────────────────────┘
97
+
98
+ ┌─────────────────────────────────────────────────────────────────────┐
99
+ │ CODE EXAMPLES & API REFERENCE │
100
+ │ │
101
+ │ 💻 Code Examples & API │
102
+ │ │
103
+ │ ┌─────────────────────────────────────────────────────────────┐ │
104
+ │ │ Semantic Search Query │ Copy ts │ │
105
+ │ │ │ │
106
+ │ │ // Search knowledge with semantic matching │ │
107
+ │ │ import { useKnowledgeSearch } from '@/hooks/...' │ │
108
+ │ │ │ │
109
+ │ │ ... (code example continues) │ │
110
+ │ │ │ │
111
+ │ └─────────────────────────────────────────────────────────────┘ │
112
+ │ ┌─────────────────────────────────────────────────────────────┐ │
113
+ │ │ Create Knowledge Item │ Copy ts │ │
114
+ │ │ ... (code example) │ │
115
+ │ └─────────────────────────────────────────────────────────────┘ │
116
+ │ ┌─────────────────────────────────────────────────────────────┐ │
117
+ │ │ Retrieve for RAG │ Copy ts │ │
118
+ │ │ ... (code example) │ │
119
+ │ └─────────────────────────────────────────────────────────────┘ │
120
+ │ ┌─────────────────────────────────────────────────────────────┐ │
121
+ │ │ Filter with Labels │ Copy ts │ │
122
+ │ │ ... (code example) │ │
123
+ │ └─────────────────────────────────────────────────────────────┘ │
124
+ │ ┌─────────────────────────────────────────────────────────────┐ │
125
+ │ │ REST API: Search │ Copy bash │ │
126
+ │ │ ... (curl example) │ │
127
+ │ └─────────────────────────────────────────────────────────────┘ │
128
+ │ ┌─────────────────────────────────────────────────────────────┐ │
129
+ │ │ REST API: Create │ Copy bash │ │
130
+ │ │ ... (curl example) │ │
131
+ │ └─────────────────────────────────────────────────────────────┘ │
132
+ │ │
133
+ │ Key API Endpoints: │
134
+ │ [POST /api/knowledge] [POST /api/knowledge/search] │
135
+ │ [GET /api/knowledge/:id] [POST /api/knowledge/retrieve] │
136
+ └─────────────────────────────────────────────────────────────────────┘
137
+
138
+ ┌─────────────────────────────────────────────────────────────────────┐
139
+ │ KNOWLEDGE STATISTICS & INSIGHTS │
140
+ │ │
141
+ │ ┌──────────────────────────────────────────────────────────────┐ │
142
+ │ │ 📊 Total Items │ ⚡ Avg Latency │ 📈 Embeddings │ 🎯 Accuracy │ │
143
+ │ │ 42 │ 42ms │ 1.5K dims │ 94% │ │
144
+ │ │ knowledge │ semantic │ dimensions │ relevance │ │
145
+ │ │ items indexed │ search │ per vector │ score │ │
146
+ │ └──────────────────────────────────────────────────────────────┘ │
147
+ │ │
148
+ │ How Semantic Search Works: │
149
+ │ 1. Query converted to 1,536-dim vector │
150
+ │ 2. Database searched for similar vectors │
151
+ │ 3. Results ranked by cosine similarity │
152
+ │ 4. Top matches returned with scores │
153
+ │ │
154
+ │ Vector Similarity Scoring: │
155
+ │ 100% = Exact semantic match │
156
+ │ 80-99% = Very similar meaning │
157
+ │ 60-79% = Related concepts │
158
+ │ <60% = Marginally relevant │
159
+ │ │
160
+ │ RAG Pipeline: │
161
+ │ Retrieve: Find relevant knowledge │
162
+ │ Augment: Inject into LLM context │
163
+ │ Generate: LLM creates response │
164
+ │ Cite: Original sources referenced │
165
+ └─────────────────────────────────────────────────────────────────────┘
166
+
167
+ ┌─────────────────────────────────────────────────────────────────────┐
168
+ │ USE CASES & FEATURES │
169
+ │ │
170
+ │ 💡 Use Cases ⚡ Technical Features │
171
+ │ ✓ AI document search ✓ Vector embeddings (1,536 dims) │
172
+ │ ✓ Semantic similarity ✓ Full-text search (BM25) │
173
+ │ ✓ Intelligent autocomplete ✓ Faceted search │
174
+ │ ✓ RAG for LLMs ✓ Cosine similarity ranking │
175
+ │ ✓ Content discovery ✓ Real-time indexing │
176
+ └─────────────────────────────────────────────────────────────────────┘
177
+
178
+ ┌─────────────────────────────────────────────────────────────────────┐
179
+ │ EXPLORED ALL 6 DIMENSIONS! │
180
+ │ │
181
+ │ [Groups] [People] [Things] [Connections] [Events] [Knowledge] │
182
+ │ │
183
+ │ The complete 6-dimension ontology powers every feature in the │
184
+ │ ONE Platform. Ready to build? │
185
+ │ │
186
+ │ [Back to Demo Home] │
187
+ └─────────────────────────────────────────────────────────────────────┘
188
+
189
+ ┌─────────────────────────────────────────────────────────────────────┐
190
+ │ NAVIGATION LINKS │
191
+ │ │
192
+ │ ← Back to Demo Home • Ontology Specification • Full API Docs │
193
+ └─────────────────────────────────────────────────────────────────────┘
194
+ ```
195
+
196
+ ## Component Sizes
197
+
198
+ ### Responsive Breakpoints
199
+
200
+ **Mobile (< 640px)**
201
+ ```
202
+ ┌─────────────────┐
203
+ │ Hero Section │ Full width
204
+ ├─────────────────┤
205
+ │ Info Cards │ Stacked 1 column
206
+ ├─────────────────┤
207
+ │ Playground │ Stacked form over data
208
+ ├─────────────────┤
209
+ │ Search │ Full width
210
+ ├─────────────────┤
211
+ │ Code Examples │ 1 column
212
+ ├─────────────────┤
213
+ │ Statistics │ Stacked
214
+ └─────────────────┘
215
+ ```
216
+
217
+ **Tablet (640px - 1024px)**
218
+ ```
219
+ ┌──────────────────────────────────┐
220
+ │ Hero Section │ Full width
221
+ ├──────────────────────────────────┤
222
+ │ Info Cards (2 columns) │
223
+ ├──────────────────────────────────┤
224
+ │ Playground (2 column layout) │
225
+ │ Left 50% | Right 50% │
226
+ ├──────────────────────────────────┤
227
+ │ Search (full width) │
228
+ ├──────────────────────────────────┤
229
+ │ Code Examples (2 columns) │
230
+ ├──────────────────────────────────┤
231
+ │ Statistics (3 columns) │
232
+ └──────────────────────────────────┘
233
+ ```
234
+
235
+ **Desktop (> 1024px)**
236
+ ```
237
+ ┌──────────────────────────────────────────────┐
238
+ │ Hero Section │
239
+ ├──────────────────────────────────────────────┤
240
+ │ Info Card 1 │ Info Card 2 │ Info Card 3│
241
+ ├──────────────────────────────────────────────┤
242
+ │ Playground Layout │
243
+ │ Left (33%) Form │ Right (67%) Data │
244
+ ├──────────────────────────────────────────────┤
245
+ │ Search (full width) │
246
+ ├──────────────────────────────────────────────┤
247
+ │ Code Examples (2x3 grid) │
248
+ │ Example 1 │ Example 2 │
249
+ │ Example 3 │ Example 4 │
250
+ │ Example 5 │ Example 6 │
251
+ ├──────────────────────────────────────────────┤
252
+ │ Stats: 5 equal width columns │
253
+ │ Items │ Latency │ Embedding │ Accuracy │ St│
254
+ └──────────────────────────────────────────────┘
255
+ ```
256
+
257
+ ## Color Scheme
258
+
259
+ ### Light Mode
260
+ ```
261
+ Background: #ffffff (white)
262
+ Text Primary: #1e293b (slate-900)
263
+ Text Secondary: #64748b (slate-600)
264
+ Accent Blue: #3b82f6
265
+ Accent Purple: #a855f7
266
+ Success Green: #16a34a
267
+ Warning Yellow: #ca8a04
268
+ Error Red: #dc2626
269
+ Neutral Bg: #f1f5f9 (slate-100)
270
+ Border: #e2e8f0 (slate-200)
271
+ ```
272
+
273
+ ### Dark Mode
274
+ ```
275
+ Background: #1e293b (slate-800)
276
+ Text Primary: #f1f5f9 (slate-100)
277
+ Text Secondary: #cbd5e1 (slate-400)
278
+ Accent Blue: #60a5fa (blue-400)
279
+ Accent Purple: #c084fc (purple-400)
280
+ Success Green: #4ade80 (green-400)
281
+ Warning Yellow: #facc15 (yellow-400)
282
+ Error Red: #f87171 (red-400)
283
+ Neutral Bg: #0f172a (slate-900/5)
284
+ Border: #334155 (slate-700)
285
+ ```
286
+
287
+ ## Interactive States
288
+
289
+ ### Forms
290
+ ```
291
+ Normal: White bg, slate border, slate text
292
+ Hover: Light gray bg, slate-300 border
293
+ Focus: Blue ring, blue border, blue accent
294
+ Disabled: Gray bg, gray text, cursor not-allowed
295
+ Error: Red border, red text, red icon
296
+ Success: Green border, green bg
297
+ Loading: Spinner animation, disabled state
298
+ ```
299
+
300
+ ### Buttons
301
+ ```
302
+ Primary: Blue gradient bg, white text, blue hover
303
+ Secondary: Slate bg, slate text, slate-200 hover
304
+ Ghost: Transparent, colored text, colored bg on hover
305
+ Disabled: Gray, cursor not-allowed, reduced opacity
306
+ Loading: Spinner icon, disabled state
307
+ ```
308
+
309
+ ### Cards
310
+ ```
311
+ Resting: White bg, slate border, slate shadow
312
+ Hover: Slight shadow increase, border color change
313
+ Focus: Blue ring, blue border
314
+ Selected: Blue bg, white text
315
+ Disabled: Gray bg, gray text
316
+ Error: Red border, red bg tint
317
+ ```
318
+
319
+ ## Typography
320
+
321
+ ```
322
+ Headings:
323
+ H1 (Hero): 5xl, bold, slate-900
324
+ H2 (Sections): 2xl, bold, slate-900
325
+ H3 (Subsections): lg, semibold, slate-900
326
+ H4 (Cards): base, semibold, slate-900
327
+
328
+ Body:
329
+ Large: lg, slate-600
330
+ Regular: base, slate-600
331
+ Small: sm, slate-500
332
+ Code: mono, slate-600, bg-slate-100
333
+
334
+ Links:
335
+ Default: blue-600, underline on hover
336
+ Dark mode: blue-400, underline on hover
337
+ ```
338
+
339
+ ## Spacing System
340
+
341
+ ```
342
+ Padding:
343
+ Cards: p-6 (24px)
344
+ Sections: p-8 (32px)
345
+ Forms: p-4 (16px)
346
+ Buttons: px-4 py-2 (16px x 8px)
347
+
348
+ Margins:
349
+ Sections: mb-12 (48px between)
350
+ Cards: mb-6 (24px between)
351
+ Items: mb-3 (12px between)
352
+ Text: mb-2 (8px between)
353
+
354
+ Gaps:
355
+ Grid: gap-4 (16px)
356
+ Cards: gap-6 (24px)
357
+ Form: gap-3 (12px)
358
+ ```
359
+
360
+ ## Visual Hierarchy
361
+
362
+ ```
363
+ 1. Hero Section (Large, colorful, prominent)
364
+ 2. Section Headers (Large, bold)
365
+ 3. Card Headers (Bold, colored)
366
+ 4. Card Content (Regular, colored text)
367
+ 5. Metadata (Small, muted)
368
+ 6. Hints/Help (Smallest, muted)
369
+ ```
370
+
371
+ ## Animation & Transitions
372
+
373
+ ```
374
+ Hover: 150ms ease-in-out
375
+ Loading: Infinite spin animation
376
+ Success: Fade in/out 3 seconds
377
+ Error: Shake on focus
378
+ Collapse: Smooth height transition
379
+ ```
380
+
381
+ This visual guide shows the complete layout and styling of the Search/Knowledge demo page with all responsive breakpoints, color schemes, typography, and interactive states.