vibe-ui-suite 4.8.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- package/package.json +18 -3
- package/skills/autonomous-intent-expander/SKILL.md +114 -0
- package/skills/conversion-copy-engine/SKILL.md +65 -0
- package/skills/ui-kit/SKILL.md +131 -0
- package/skills/ui-kit/references/ai_native_full_catalog.md +297 -0
- package/skills/ui-kit/references/bento_grids_and_cards.md +97 -0
- package/skills/ui-kit/references/curated_unsplash_vault.md +532 -0
- package/skills/ui-kit/references/data_and_flow.md +109 -0
- package/skills/ui-kit/references/living_micro_interactions.md +495 -0
- package/skills/ui-kit/references/modern_vibe_components.md +378 -0
- package/skills/ui-kit/references/physics_transitions_catalog.md +104 -0
- package/skills/ui-kit/references/shadcn_full_catalog.md +198 -0
- package/skills/ui-kit/references/tokens_and_theme_engine.md +69 -0
- package/skills/ui-verifier/SKILL.md +130 -0
- package/skills/vibe-physics-engine/SKILL.md +191 -0
- package/skills/visual-chemistry-engine/SKILL.md +165 -0
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -315
- package/dist/cli.mjs +0 -280
- package/dist/index.d.ts +0 -47
- package/dist/index.js +0 -207
- package/dist/index.mjs +0 -202
- package/dist/registry/components.d.ts +0 -11
- package/dist/registry/components.js +0 -307
- package/dist/registry/components.mjs +0 -304
- package/dist/tailwind.d.ts +0 -11
- package/dist/tailwind.js +0 -64
- package/dist/tailwind.mjs +0 -60
- package/dist/v4.css +0 -71
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# 🤖 AI-Native Primitives: Complete 20-Component Catalog (beautifului.dev)
|
|
2
|
+
|
|
3
|
+
This catalog contains the complete, production-ready implementation of all 20 AI-native UI primitives from **Beautiful UI**, with zero external dependencies and full Tailwind CSS / framework-agnostic markup.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Loading State (AI In-Flight Pulse)
|
|
8
|
+
```html
|
|
9
|
+
<div class="flex items-center gap-3 p-3 rounded-xl bg-card border border-border">
|
|
10
|
+
<div class="relative flex h-3 w-3">
|
|
11
|
+
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"></span>
|
|
12
|
+
<span class="relative inline-flex rounded-full h-3 w-3 bg-primary"></span>
|
|
13
|
+
</div>
|
|
14
|
+
<span class="text-xs font-mono text-muted-foreground animate-pulse">Model synthesizing response...</span>
|
|
15
|
+
</div>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 2. Thinking State (Collapsible Reasoning Box)
|
|
21
|
+
```html
|
|
22
|
+
<div class="rounded-xl border border-border bg-card/70 p-3.5 backdrop-blur-md">
|
|
23
|
+
<button type="button"
|
|
24
|
+
aria-expanded="true"
|
|
25
|
+
aria-controls="thought-content-1"
|
|
26
|
+
class="w-full flex items-center justify-between cursor-pointer select-none text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary rounded-lg p-0.5"
|
|
27
|
+
onclick="const b = document.getElementById('thought-content-1'); const exp = this.getAttribute('aria-expanded') === 'true'; this.setAttribute('aria-expanded', !exp); b.classList.toggle('hidden');">
|
|
28
|
+
<div class="flex items-center gap-2.5">
|
|
29
|
+
<svg class="w-4 h-4 text-primary animate-spin" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" /></svg>
|
|
30
|
+
<span class="text-xs font-semibold font-mono text-foreground">Thought Process</span>
|
|
31
|
+
</div>
|
|
32
|
+
<span class="text-[11px] text-muted-foreground font-mono">4 steps</span>
|
|
33
|
+
</button>
|
|
34
|
+
<div id="thought-content-1" class="thought-body mt-3 pt-2.5 border-t border-border/50 text-xs font-mono text-muted-foreground space-y-1">
|
|
35
|
+
<div>1. Scanning AST nodes for dependency cycle</div>
|
|
36
|
+
<div>2. Optimizing memoization hooks</div>
|
|
37
|
+
<div class="text-emerald-500 font-semibold">✓ Ready to output refactored component</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 3. Streaming Text (With Smooth Token Cursor)
|
|
45
|
+
```html
|
|
46
|
+
<div class="p-4 rounded-xl bg-card border border-border text-foreground text-sm leading-relaxed font-sans">
|
|
47
|
+
<span>The computed gradient tensor converges after 450 epochs with a loss of 0.012.</span>
|
|
48
|
+
<span class="inline-block w-1.5 h-4 bg-primary align-middle ms-1 rounded-sm animate-pulse"></span>
|
|
49
|
+
</div>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 4. Approval Card (Human-in-the-Loop Gate)
|
|
55
|
+
```html
|
|
56
|
+
<div class="rounded-2xl border border-border bg-card/95 p-5 shadow-xl">
|
|
57
|
+
<div class="flex items-start gap-3">
|
|
58
|
+
<div class="p-2 rounded-xl bg-amber-500/10 text-amber-500 border border-amber-500/20">
|
|
59
|
+
<svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/></svg>
|
|
60
|
+
</div>
|
|
61
|
+
<div>
|
|
62
|
+
<h4 class="text-sm font-bold text-foreground">Review Proposed Changes</h4>
|
|
63
|
+
<p class="text-xs text-muted-foreground mt-0.5">Agent requested write access to target database.</p>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="mt-4 flex justify-end gap-2">
|
|
67
|
+
<button class="px-3.5 py-1.5 rounded-lg text-xs font-medium text-muted-foreground hover:bg-muted">Decline</button>
|
|
68
|
+
<button class="px-4 py-1.5 rounded-lg text-xs font-bold bg-primary text-primary-foreground hover:opacity-90">Approve</button>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 5. Tool Chips (Execution Status Badges)
|
|
76
|
+
```html
|
|
77
|
+
<div class="inline-flex items-center gap-2 px-2.5 py-1 rounded-lg bg-secondary/80 border border-border text-xs">
|
|
78
|
+
<svg class="w-3.5 h-3.5 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"/></svg>
|
|
79
|
+
<span class="text-muted-foreground font-mono">tool:</span>
|
|
80
|
+
<span class="text-foreground font-mono font-medium">vector_search</span>
|
|
81
|
+
<span class="px-1.5 py-0.5 rounded bg-emerald-500/10 text-emerald-500 text-[10px] font-mono">18ms</span>
|
|
82
|
+
</div>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 6. Task Rows (Agent Multi-Step Checklist)
|
|
88
|
+
```html
|
|
89
|
+
<div class="space-y-1.5">
|
|
90
|
+
<div class="flex items-center justify-between p-2.5 rounded-lg bg-card border border-border text-xs">
|
|
91
|
+
<div class="flex items-center gap-2">
|
|
92
|
+
<span class="w-4 h-4 rounded-full bg-emerald-500/10 text-emerald-500 flex items-center justify-center text-[10px] font-bold">✓</span>
|
|
93
|
+
<span class="text-foreground">Fetch user schema</span>
|
|
94
|
+
</div>
|
|
95
|
+
<span class="text-muted-foreground font-mono text-[11px]">Done</span>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="flex items-center justify-between p-2.5 rounded-lg bg-primary/5 border border-primary/20 text-xs">
|
|
98
|
+
<div class="flex items-center gap-2">
|
|
99
|
+
<div class="w-3.5 h-3.5 rounded-full border-2 border-primary border-t-transparent animate-spin"></div>
|
|
100
|
+
<span class="text-foreground font-semibold">Generate Prisma migration</span>
|
|
101
|
+
</div>
|
|
102
|
+
<span class="text-primary font-mono text-[11px]">Running</span>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 7. Chat Container (Agent & User Message Bubbles)
|
|
110
|
+
```html
|
|
111
|
+
<div class="space-y-3 p-4 rounded-2xl bg-card border border-border max-w-xl">
|
|
112
|
+
<div class="flex gap-3">
|
|
113
|
+
<div class="w-7 h-7 rounded-full bg-primary/20 text-primary flex items-center justify-center font-bold text-xs">AI</div>
|
|
114
|
+
<div class="p-3 rounded-2xl bg-muted/60 text-xs text-foreground leading-relaxed max-w-[85%]">
|
|
115
|
+
I have analyzed the endpoint and prepared the index optimizations.
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="flex gap-3 flex-row-reverse">
|
|
119
|
+
<div class="w-7 h-7 rounded-full bg-secondary text-foreground flex items-center justify-center font-bold text-xs">U</div>
|
|
120
|
+
<div class="p-3 rounded-2xl bg-primary text-primary-foreground text-xs leading-relaxed max-w-[85%]">
|
|
121
|
+
Great, run the migration now.
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 8. Prompt Bar (Floating Input HUD)
|
|
130
|
+
```html
|
|
131
|
+
<div class="relative flex items-center rounded-2xl bg-card/90 border border-border p-2 shadow-2xl backdrop-blur-xl focus-within:border-primary">
|
|
132
|
+
<input type="text" placeholder="Type prompt or command..." class="w-full bg-transparent px-3 text-xs text-foreground placeholder-muted-foreground focus:outline-none">
|
|
133
|
+
<button class="p-2 rounded-xl bg-primary text-primary-foreground hover:opacity-90">
|
|
134
|
+
<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>
|
|
135
|
+
</button>
|
|
136
|
+
</div>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## 9. Recommendation Card (Proactive Agent Suggestions)
|
|
142
|
+
```html
|
|
143
|
+
<div class="rounded-2xl border border-border bg-card p-4 hover:border-primary/50 transition-all shadow-sm">
|
|
144
|
+
<div class="flex justify-between items-center text-xs">
|
|
145
|
+
<span class="px-2 py-0.5 rounded-full bg-primary/10 text-primary font-semibold">Suggestion</span>
|
|
146
|
+
<span class="text-muted-foreground font-mono">92% Match</span>
|
|
147
|
+
</div>
|
|
148
|
+
<h5 class="mt-2 text-xs font-bold text-foreground">Add Redis Cache Layer</h5>
|
|
149
|
+
<p class="text-[11px] text-muted-foreground mt-0.5">Reduces database read pressure by 60% on hot routes.</p>
|
|
150
|
+
</div>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## 10. Context Cards (Retrieved Grounding Documents)
|
|
156
|
+
```html
|
|
157
|
+
<div class="p-3 rounded-xl bg-muted/40 border border-border flex items-center justify-between text-xs">
|
|
158
|
+
<div class="flex items-center gap-2">
|
|
159
|
+
<svg class="w-4 h-4 text-muted-foreground" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/></svg>
|
|
160
|
+
<span class="font-medium text-foreground">schema_v2.sql</span>
|
|
161
|
+
</div>
|
|
162
|
+
<span class="text-[10px] font-mono text-muted-foreground">Chunk #4 (Score: 0.89)</span>
|
|
163
|
+
</div>
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 11. Diff Table (Line-by-Line Code/Data Delta)
|
|
169
|
+
```html
|
|
170
|
+
<div class="rounded-xl border border-border bg-muted/50 p-3 font-mono text-xs overflow-x-auto space-y-1">
|
|
171
|
+
<div class="flex bg-rose-500/10 text-rose-500 px-2 py-1 rounded"><span class="w-6 select-none">-</span><code>cache.set(key, val, 300);</code></div>
|
|
172
|
+
<div class="flex bg-emerald-500/10 text-emerald-500 px-2 py-1 rounded"><span class="w-6 select-none">+</span><code>cache.set(key, val, { ttl: 3600, tag: 'user' });</code></div>
|
|
173
|
+
</div>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## 12. Records Table (Dense Data Grid with Status)
|
|
179
|
+
```html
|
|
180
|
+
<div class="rounded-xl border border-border bg-card overflow-hidden text-xs">
|
|
181
|
+
<table class="w-full text-start">
|
|
182
|
+
<thead class="bg-muted text-muted-foreground border-b border-border font-medium">
|
|
183
|
+
<tr><th class="p-3">ID</th><th class="p-3">Task Name</th><th class="p-3">Status</th></tr>
|
|
184
|
+
</thead>
|
|
185
|
+
<tbody class="divide-y divide-border">
|
|
186
|
+
<tr><td class="p-3 font-mono">#104</td><td class="p-3 font-semibold text-foreground">Build Artifacts</td><td class="p-3"><span class="px-2 py-0.5 rounded-full bg-emerald-500/10 text-emerald-500 text-[10px] font-bold">Passed</span></td></tr>
|
|
187
|
+
</tbody>
|
|
188
|
+
</table>
|
|
189
|
+
</div>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## 13. Filter Table (Pill Filtering Header)
|
|
195
|
+
```html
|
|
196
|
+
<div class="flex items-center gap-2 p-2 rounded-xl bg-card border border-border text-xs">
|
|
197
|
+
<span class="text-muted-foreground px-2 font-medium">Filter:</span>
|
|
198
|
+
<button class="px-2.5 py-1 rounded-lg bg-primary text-primary-foreground font-semibold">All</button>
|
|
199
|
+
<button class="px-2.5 py-1 rounded-lg bg-muted text-muted-foreground hover:text-foreground">Errors Only</button>
|
|
200
|
+
<button class="px-2.5 py-1 rounded-lg bg-muted text-muted-foreground hover:text-foreground">Latency > 100ms</button>
|
|
201
|
+
</div>
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 14. Sidebar Nav (Agentic Multi-Workspace Navigation)
|
|
207
|
+
```html
|
|
208
|
+
<nav class="w-64 p-3 rounded-2xl bg-card border border-border space-y-1 text-xs">
|
|
209
|
+
<a href="#" class="flex items-center gap-2.5 px-3 py-2 rounded-xl bg-primary/10 text-primary font-bold">
|
|
210
|
+
<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/></svg>
|
|
211
|
+
<span>Overview</span>
|
|
212
|
+
</a>
|
|
213
|
+
<a href="#" class="flex items-center gap-2.5 px-3 py-2 rounded-xl text-muted-foreground hover:bg-muted hover:text-foreground">
|
|
214
|
+
<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/></svg>
|
|
215
|
+
<span>Agent Tools</span>
|
|
216
|
+
</a>
|
|
217
|
+
</nav>
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## 15. Search HUD (Omni-Search with Key Indicator)
|
|
223
|
+
```html
|
|
224
|
+
<div class="flex items-center justify-between px-3 py-2 rounded-xl bg-card border border-border text-xs text-muted-foreground">
|
|
225
|
+
<div class="flex items-center gap-2">
|
|
226
|
+
<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>
|
|
227
|
+
<span>Search actions, tools, sessions...</span>
|
|
228
|
+
</div>
|
|
229
|
+
<kbd class="px-1.5 py-0.5 rounded bg-muted text-[10px] font-mono border border-border">Ctrl K</kbd>
|
|
230
|
+
</div>
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## 16. Flowchart (Trigger -> Condition -> Action Canvas)
|
|
236
|
+
```html
|
|
237
|
+
<div class="p-6 rounded-2xl bg-card border border-border space-y-3 max-w-sm mx-auto text-xs">
|
|
238
|
+
<div class="p-3 rounded-xl border border-primary/30 bg-primary/5 font-semibold text-foreground">Trigger: Event Incoming</div>
|
|
239
|
+
<div class="w-0.5 h-4 bg-border mx-auto"></div>
|
|
240
|
+
<div class="p-3 rounded-xl border border-amber-500/30 bg-amber-500/5 font-semibold text-foreground">Condition: Confidence > 0.9</div>
|
|
241
|
+
<div class="w-0.5 h-4 bg-border mx-auto"></div>
|
|
242
|
+
<div class="p-3 rounded-xl border border-emerald-500/30 bg-emerald-500/5 font-semibold text-foreground">Action: Dispatch Job</div>
|
|
243
|
+
</div>
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## 17. Insight Cards (Live Metrics + Inline Sparkline)
|
|
249
|
+
```html
|
|
250
|
+
<div class="p-4 rounded-2xl bg-card border border-border shadow-sm">
|
|
251
|
+
<div class="flex justify-between items-center text-xs">
|
|
252
|
+
<span class="text-muted-foreground font-medium">Throughput</span>
|
|
253
|
+
<span class="text-emerald-500 font-bold font-mono">+32%</span>
|
|
254
|
+
</div>
|
|
255
|
+
<div class="text-xl font-extrabold text-foreground font-mono mt-1">4.2M req/s</div>
|
|
256
|
+
<svg class="w-full h-8 mt-2 stroke-primary fill-none" viewBox="0 0 100 25">
|
|
257
|
+
<path d="M0,20 Q25,5 50,15 T100,5" stroke-width="2" stroke-linecap="round"/>
|
|
258
|
+
</svg>
|
|
259
|
+
</div>
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## 18. Code Block (Syntax Highlight Header + Copy Button)
|
|
265
|
+
```html
|
|
266
|
+
<div class="rounded-xl border border-border bg-muted/60 overflow-hidden text-xs font-mono">
|
|
267
|
+
<div class="flex items-center justify-between px-3 py-1.5 bg-muted border-b border-border text-muted-foreground">
|
|
268
|
+
<span>handler.ts</span>
|
|
269
|
+
<button class="hover:text-foreground" onclick="navigator.clipboard.writeText('const x = 1;')">Copy</button>
|
|
270
|
+
</div>
|
|
271
|
+
<pre class="p-3 text-foreground overflow-x-auto"><code>const handler = async (req: Request) => Response.json({ ok: true });</code></pre>
|
|
272
|
+
</div>
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## 19. Fine-Tune Card (Hyperparameter Slider & Metrics)
|
|
278
|
+
```html
|
|
279
|
+
<div class="p-4 rounded-2xl bg-card border border-border space-y-3 text-xs">
|
|
280
|
+
<div class="flex justify-between font-medium text-foreground">
|
|
281
|
+
<span>Temperature:</span>
|
|
282
|
+
<span class="font-mono text-primary font-bold">0.7</span>
|
|
283
|
+
</div>
|
|
284
|
+
<input type="range" min="0" max="1" step="0.05" value="0.7" class="w-full accent-primary">
|
|
285
|
+
</div>
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## 20. Selection Actions Bar (Floating Context HUD)
|
|
291
|
+
```html
|
|
292
|
+
<div class="inline-flex items-center gap-2 p-1.5 rounded-2xl bg-card border border-border shadow-2xl backdrop-blur-xl text-xs">
|
|
293
|
+
<button class="px-3 py-1.5 rounded-xl hover:bg-muted text-foreground font-medium">Summarize</button>
|
|
294
|
+
<button class="px-3 py-1.5 rounded-xl hover:bg-muted text-foreground font-medium">Translate</button>
|
|
295
|
+
<button class="px-3 py-1.5 rounded-xl bg-primary text-primary-foreground font-bold">Explain Code</button>
|
|
296
|
+
</div>
|
|
297
|
+
```
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# 🍱 Bento Grids & Micro-Interactions Catalog (BeUI & Rare UI)
|
|
2
|
+
|
|
3
|
+
Complete catalog of modern Bento grid layouts, glassmorphism cards, interactive metric HUDs, and ambient glow containers.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Bento Grid Archetypes
|
|
8
|
+
|
|
9
|
+
### 1.1 The 3-Column Asymmetric Matrix (Product / SaaS Hero)
|
|
10
|
+
```html
|
|
11
|
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 max-w-6xl mx-auto">
|
|
12
|
+
<!-- Card A: Span 2 Cols (Hero Feature) -->
|
|
13
|
+
<div class="md:col-span-2 rounded-3xl border border-border bg-card/60 p-6 backdrop-blur-xl flex flex-col justify-between hover:border-primary/40 transition-all shadow-lg">
|
|
14
|
+
<div>
|
|
15
|
+
<span class="px-2.5 py-1 rounded-full bg-primary/10 text-primary text-xs font-semibold">Flagship Engine</span>
|
|
16
|
+
<h3 class="text-xl font-bold text-foreground mt-3">Autonomous Multi-Agent Orchestration</h3>
|
|
17
|
+
<p class="text-xs text-muted-foreground mt-1 max-w-md">Decompose complex user objectives into parallelized sub-tasks with real-time feedback loops.</p>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="mt-6 h-36 rounded-2xl bg-muted/40 border border-border flex items-center justify-center font-mono text-xs text-muted-foreground">
|
|
20
|
+
[Interactive Subagent Graph Canvas]
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<!-- Card B: Span 1 Col (Telemetry / Latency) -->
|
|
25
|
+
<div class="rounded-3xl border border-border bg-card/60 p-6 backdrop-blur-xl flex flex-col justify-between hover:border-primary/40 transition-all shadow-lg">
|
|
26
|
+
<div>
|
|
27
|
+
<span class="text-xs font-medium text-muted-foreground">P99 Inference Latency</span>
|
|
28
|
+
<div class="text-3xl font-black text-foreground font-mono mt-2">12.4ms</div>
|
|
29
|
+
<span class="text-emerald-500 font-mono text-xs font-semibold">↑ 400% throughput gain</span>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="mt-4 pt-4 border-t border-border/40 text-xs text-muted-foreground">
|
|
32
|
+
Compiled with hardware-level AVX-512 acceleration.
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<!-- Card C: Span 1 Col (Security Shield) -->
|
|
37
|
+
<div class="rounded-3xl border border-border bg-card/60 p-6 backdrop-blur-xl hover:border-primary/40 transition-all shadow-lg">
|
|
38
|
+
<div class="w-8 h-8 rounded-xl bg-primary/10 text-primary flex items-center justify-center mb-3">
|
|
39
|
+
<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/></svg>
|
|
40
|
+
</div>
|
|
41
|
+
<h4 class="text-sm font-bold text-foreground">Zero-Trust Sandbox</h4>
|
|
42
|
+
<p class="text-xs text-muted-foreground mt-1">Every code generation task runs in an isolated ephemeral container.</p>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<!-- Card D: Span 2 Cols (Global Mesh Network) -->
|
|
46
|
+
<div class="md:col-span-2 rounded-3xl border border-border bg-card/60 p-6 backdrop-blur-xl flex items-center justify-between hover:border-primary/40 transition-all shadow-lg">
|
|
47
|
+
<div>
|
|
48
|
+
<h4 class="text-base font-bold text-foreground">Distributed Edge Deployment</h4>
|
|
49
|
+
<p class="text-xs text-muted-foreground mt-1">Replicate models across 35 global edge locations instantly.</p>
|
|
50
|
+
</div>
|
|
51
|
+
<button class="px-4 py-2 rounded-xl bg-primary text-primary-foreground text-xs font-bold shrink-0">Configure Mesh</button>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 2. Interactive Micro-Interactions (BeUI & Rare UI)
|
|
59
|
+
|
|
60
|
+
### 2.1 Animated Gradient Shimmer Border Button
|
|
61
|
+
```html
|
|
62
|
+
<button class="relative inline-flex items-center justify-center p-0.5 overflow-hidden rounded-2xl font-bold group shadow-lg">
|
|
63
|
+
<span class="absolute inset-0 w-full h-full bg-gradient-to-r from-primary via-accent to-secondary rounded-2xl opacity-75 group-hover:opacity-100 transition-opacity duration-300 animate-gradient-x"></span>
|
|
64
|
+
<span class="relative px-5 py-2.5 transition-all ease-out bg-background rounded-[14px] text-xs font-bold text-foreground group-hover:bg-opacity-90 flex items-center gap-2">
|
|
65
|
+
<span>Launch Live Terminal</span>
|
|
66
|
+
<svg class="w-4 h-4 group-hover:translate-x-0.5 transition-transform" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>
|
|
67
|
+
</span>
|
|
68
|
+
</button>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 2.2 Glassmorphism 2.0 Inset Specular Card
|
|
72
|
+
```css
|
|
73
|
+
.glass-fresnel-card {
|
|
74
|
+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
|
|
75
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
76
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
77
|
+
border-radius: 24px;
|
|
78
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
79
|
+
box-shadow:
|
|
80
|
+
inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), /* Fresnel Highlight */
|
|
81
|
+
0 10px 30px -10px rgba(0, 0, 0, 0.4),
|
|
82
|
+
0 20px 40px -15px rgba(0, 0, 0, 0.6);
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 2.3 Metric HUD Tile with Live Delta
|
|
87
|
+
```html
|
|
88
|
+
<div class="p-4 rounded-2xl bg-card border border-border flex items-center justify-between">
|
|
89
|
+
<div>
|
|
90
|
+
<span class="text-[11px] font-medium text-muted-foreground uppercase tracking-wider">Active Concurrency</span>
|
|
91
|
+
<div class="text-2xl font-black font-mono text-foreground mt-0.5">8,420</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="px-2.5 py-1 rounded-full bg-emerald-500/10 text-emerald-500 text-xs font-mono font-bold">
|
|
94
|
+
+14.2%
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
```
|