telo3-ai 5.0.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.
@@ -0,0 +1,491 @@
1
+ # UI Quality & Anti-Vibe-Coding
2
+
3
+ > Guidelines for maintaining design consistency and avoiding generic AI-generated aesthetics.
4
+
5
+ ---
6
+
7
+ ## Core Principle
8
+
9
+ **Use patterns when justified by the actual product, brand, UX, accessibility, or design system.**
10
+
11
+ Vibe-coded patterns are not absolutely prohibited. They become problems when:
12
+ - Applied without justification
13
+ - Inconsistent with established design system
14
+ - Chosen because "it looks AI-generated" rather than serving users
15
+ - Added as decoration without functional purpose
16
+
17
+ ---
18
+
19
+ ## The Vibe-Coding Problem
20
+
21
+ **Vibe coding** is implementing UI based on aesthetic trends or AI training patterns rather than:
22
+ - Actual design system
23
+ - Brand personality
24
+ - User needs
25
+ - Accessibility requirements
26
+ - Performance constraints
27
+
28
+ ### Symptoms of Vibe Coding
29
+
30
+ - Every project looks the same
31
+ - Generic "AI aesthetic" regardless of product
32
+ - Decoration over function
33
+ - Trends over brand consistency
34
+ - Copying without adapting
35
+ - No coherent visual language
36
+
37
+ ---
38
+
39
+ ## Generic AI Aesthetic Patterns
40
+
41
+ ### Visual Patterns to Question
42
+
43
+ #### Colors & Gradients
44
+ ❓ **Question before using:**
45
+ - Harsh gradients (bright to bright)
46
+ - Arbitrary rainbow gradients
47
+ - Generic purple/black "AI" color schemes
48
+ - Arbitrary neon colors
49
+ - Generic pastel palettes
50
+ - Overly saturated colors
51
+
52
+ ✅ **Use when:**
53
+ - Brand guidelines specify these colors
54
+ - Design system documents these patterns
55
+ - Product personality justifies the aesthetic
56
+ - Accessibility is maintained
57
+
58
+ #### Shadows & Depth
59
+ ❓ **Question before using:**
60
+ - Excessive shadows everywhere
61
+ - Multiple strong shadows on one element
62
+ - Shadow overkill (shadow on every card)
63
+ - Inconsistent shadow usage
64
+
65
+ ✅ **Use when:**
66
+ - Design system specifies elevation levels
67
+ - Shadows serve hierarchical purpose
68
+ - Consistently applied across interface
69
+
70
+ #### Borders & Radius
71
+ ❓ **Question before using:**
72
+ - Excessive rounded corners (radius > 24px)
73
+ - Inconsistent border radius
74
+ - Pills for everything
75
+ - Arbitrary mix of sharp and rounded
76
+
77
+ ✅ **Use when:**
78
+ - Design system documents radius scale
79
+ - Consistently applied across interface
80
+ - Serves brand personality
81
+
82
+ #### Effects
83
+ ❓ **Question before using:**
84
+ - Excessive glassmorphism
85
+ - Blur effects on every surface
86
+ - Liquid/blob shapes
87
+ - Radial gradient orbs
88
+ - Dot grid backgrounds
89
+ - Mesh gradients
90
+ - Noise textures
91
+
92
+ ✅ **Use when:**
93
+ - Brand aesthetic explicitly uses these
94
+ - Performance is acceptable
95
+ - Accessibility is maintained (contrast, reduced motion)
96
+
97
+ ---
98
+
99
+ ### Component Patterns to Question
100
+
101
+ #### Layouts
102
+ ❓ **Question before using:**
103
+ - Repetitive 3-card feature sections
104
+ - Generic bento grids without purpose
105
+ - Every page uses the same card layout
106
+ - Hero section with blob background
107
+ - Alternating left-right content blocks
108
+ - Centered everything
109
+ - Generic "SaaS landing page" structure
110
+
111
+ ✅ **Use when:**
112
+ - Layout serves content structure
113
+ - Consistent with design system
114
+ - Responsive behavior is well-designed
115
+ - Hierarchy is clear
116
+
117
+ #### Icons & Decoration
118
+ ❓ **Question before using:**
119
+ - Inconsistent icon usage (multiple icon sets)
120
+ - Decorative emojis as UI elements
121
+ - Sparkle icons everywhere
122
+ - Animated arrows on every CTA
123
+ - Decorative icons with no meaning
124
+ - Random illustration style
125
+
126
+ ✅ **Use when:**
127
+ - Icons are from consistent library
128
+ - Icons have semantic meaning
129
+ - Decoration serves brand personality
130
+ - Accessible (aria-hidden for decorative)
131
+
132
+ #### Interactive Elements
133
+ ❓ **Question before using:**
134
+ - Terminal window aesthetics without purpose
135
+ - Fake code blocks as decoration
136
+ - Typing animations everywhere
137
+ - Meaningless hover animations
138
+ - Excessive micro-interactions
139
+ - Animated gradients on hover
140
+ - Morphing shapes
141
+
142
+ ✅ **Use when:**
143
+ - Animation provides feedback
144
+ - Respects prefers-reduced-motion
145
+ - Performance is acceptable
146
+ - Actually enhances usability
147
+
148
+ ---
149
+
150
+ ### Content Patterns to Question
151
+
152
+ #### Copy
153
+ ❓ **Question before using:**
154
+ - "It's not X, it's Y" formulation
155
+ - "Supercharge your workflow"
156
+ - "10x your productivity"
157
+ - Generic buzzwords without meaning
158
+ - Overpromising language
159
+
160
+ ✅ **Use when:**
161
+ - Copy is specific to product
162
+ - Claims are substantiated
163
+ - Tone matches brand personality
164
+ - User-focused, not marketing-focused
165
+
166
+ #### Feature Lists
167
+ ❓ **Question before using:**
168
+ - Checkmark-heavy feature lists
169
+ - Generic feature names
170
+ - Every feature as a card
171
+ - Repetitive structure
172
+
173
+ ✅ **Use when:**
174
+ - Features are actual product features
175
+ - Structure serves comprehension
176
+ - Visual hierarchy is clear
177
+
178
+ #### Pricing
179
+ ❓ **Question before using:**
180
+ - Unnecessary three-tier pricing
181
+ - Generic plan names (Starter, Pro, Enterprise)
182
+ - "Most popular" badge
183
+ - Arbitrary feature differentiation
184
+
185
+ ✅ **Use when:**
186
+ - Multiple tiers are actually needed
187
+ - Pricing structure is clear
188
+ - Features genuinely differ between tiers
189
+ - Accessible comparison
190
+
191
+ #### Testimonials & Social Proof
192
+ ❓ **Question before using:**
193
+ - Fake testimonials
194
+ - Generic profile pictures
195
+ - Made-up statistics
196
+ - Fake product demonstrations
197
+ - Fabricated company logos
198
+
199
+ ✅ **Use when:**
200
+ - Testimonials are real
201
+ - Statistics are factual
202
+ - Demonstrations are actual product
203
+ - Logos represent real integrations/customers
204
+
205
+ ---
206
+
207
+ ## Design Consistency Checklist
208
+
209
+ ### Before Implementing UI
210
+
211
+ - [ ] Have I checked the design system? (design.md)
212
+ - [ ] Am I following existing component patterns?
213
+ - [ ] Is this consistent with the brand personality?
214
+ - [ ] Does this pattern already exist in the codebase?
215
+ - [ ] Am I reusing existing components?
216
+ - [ ] Is this decoration or does it serve a purpose?
217
+
218
+ ### Color Usage
219
+
220
+ - [ ] Using colors from design system
221
+ - [ ] Maintaining color contrast (WCAG AA minimum)
222
+ - [ ] Not using color as only indicator
223
+ - [ ] Consistent use of semantic colors
224
+
225
+ ### Typography
226
+
227
+ - [ ] Using fonts from design system
228
+ - [ ] Following type scale
229
+ - [ ] Maintaining heading hierarchy
230
+ - [ ] Consistent font weights
231
+
232
+ ### Spacing
233
+
234
+ - [ ] Using spacing scale from design system
235
+ - [ ] Consistent spacing between similar elements
236
+ - [ ] Maintaining vertical rhythm
237
+
238
+ ### Components
239
+
240
+ - [ ] Reusing existing components
241
+ - [ ] Not creating near-duplicates
242
+ - [ ] Following established patterns
243
+ - [ ] Consistent component variants
244
+
245
+ ---
246
+
247
+ ## Red Flags
248
+
249
+ ### 🚩 Visual Red Flags
250
+
251
+ - Multiple font families without justification
252
+ - Inconsistent border radius
253
+ - Random color choices outside design system
254
+ - Excessive effects (shadows, gradients, blur)
255
+ - Decoration without purpose
256
+ - Inconsistent icon style
257
+ - Random spacing values
258
+
259
+ ### 🚩 Content Red Flags
260
+
261
+ - Generic marketing copy
262
+ - Fake statistics or testimonials
263
+ - Made-up features or integrations
264
+ - Overpromising language
265
+ - Buzzwords without meaning
266
+
267
+ ### 🚩 Pattern Red Flags
268
+
269
+ - Copy-pasting without adapting
270
+ - Every page looks the same
271
+ - No coherent visual language
272
+ - Random component choices
273
+ - Inconsistent interaction patterns
274
+
275
+ ---
276
+
277
+ ## Decision Framework
278
+
279
+ ### When Choosing a Visual Pattern
280
+
281
+ **Ask:**
282
+
283
+ 1. **Does the design system document this?**
284
+ - Yes → Follow it
285
+ - No → Proceed with caution
286
+
287
+ 2. **Does this serve the user?**
288
+ - Yes → Consider it
289
+ - No → Don't use it
290
+
291
+ 3. **Is this consistent with existing UI?**
292
+ - Yes → Use it
293
+ - No → Justify deviation
294
+
295
+ 4. **Does this fit brand personality?**
296
+ - Yes → Consider it
297
+ - No → Look for alternatives
298
+
299
+ 5. **Is this accessible and performant?**
300
+ - Yes → Consider it
301
+ - No → Find accessible/performant alternative
302
+
303
+ ### When in Doubt
304
+
305
+ 1. **Check existing implementation** — How is similar UI handled?
306
+ 2. **Check design.md** — What does the design system say?
307
+ 3. **Ask user** — Is this the right direction?
308
+ 4. **Prefer simplicity** — Simple, accessible UI over trendy effects
309
+
310
+ ---
311
+
312
+ ## Acceptable Patterns
313
+
314
+ ### These are NOT automatically bad:
315
+
316
+ - **Gradients** — If brand uses them consistently
317
+ - **Rounded corners** — If design system documents radius scale
318
+ - **Shadows** — If used for elevation hierarchy
319
+ - **Cards** — If appropriate for content structure
320
+ - **Bento grids** — If they serve content organization
321
+ - **Icons** — If from consistent library with semantic meaning
322
+ - **Animations** — If they provide feedback and respect reduced motion
323
+ - **Dark mode** — If implemented consistently
324
+ - **Three-tier pricing** — If business model genuinely needs it
325
+
326
+ ### The key is JUSTIFICATION:
327
+
328
+ ✅ **Good:** "Using bento grid because design system documents this layout for dashboard widgets"
329
+
330
+ ❌ **Bad:** "Using bento grid because it looks modern"
331
+
332
+ ---
333
+
334
+ ## Maintaining Consistency
335
+
336
+ ### Consistency Checks
337
+
338
+ After implementing UI, verify:
339
+
340
+ 1. **Color consistency**
341
+ - Are all colors from the design system?
342
+ - Is color usage consistent with similar elements?
343
+
344
+ 2. **Typography consistency**
345
+ - Are font families, sizes, weights consistent?
346
+ - Is heading hierarchy maintained?
347
+
348
+ 3. **Spacing consistency**
349
+ - Are spacing values from the design system?
350
+ - Is spacing consistent between similar elements?
351
+
352
+ 4. **Component consistency**
353
+ - Are existing components reused?
354
+ - Are new components needed or can existing be adapted?
355
+
356
+ 5. **Pattern consistency**
357
+ - Do interactions match existing patterns?
358
+ - Is navigation consistent?
359
+
360
+ ### Creating New Patterns
361
+
362
+ When creating new patterns:
363
+
364
+ 1. **Check if pattern already exists**
365
+ 2. **Document in design.md** if it's reusable
366
+ 3. **Make it consistent** with existing patterns
367
+ 4. **Ensure accessibility**
368
+ 5. **Test across breakpoints**
369
+
370
+ ---
371
+
372
+ ## Accessibility & Quality Standards
373
+
374
+ ### All UI Must:
375
+
376
+ - [ ] Use semantic HTML
377
+ - [ ] Be keyboard accessible
378
+ - [ ] Have visible focus states
379
+ - [ ] Meet color contrast requirements
380
+ - [ ] Work with screen readers
381
+ - [ ] Support reduced motion preference
382
+ - [ ] Be responsive across devices
383
+ - [ ] Have touch targets ≥44x44px on mobile
384
+
385
+ See `accessibility-quality.md` for detailed standards.
386
+
387
+ ---
388
+
389
+ ## Performance Considerations
390
+
391
+ ### All UI Should:
392
+
393
+ - [ ] Use optimized images (WebP/AVIF)
394
+ - [ ] Lazy load non-critical resources
395
+ - [ ] Avoid layout shifts
396
+ - [ ] Use CSS transforms for animations (GPU-accelerated)
397
+ - [ ] Respect prefers-reduced-motion
398
+ - [ ] Minimize JavaScript for interactions
399
+
400
+ See `performance-quality.md` for detailed standards.
401
+
402
+ ---
403
+
404
+ ## Audit Questions
405
+
406
+ ### When Reviewing UI Implementation
407
+
408
+ 1. **Is this consistent with the design system?**
409
+ 2. **Does this pattern already exist in the codebase?**
410
+ 3. **Could I reuse an existing component instead?**
411
+ 4. **Is this decoration or does it serve a purpose?**
412
+ 5. **Is this accessible?**
413
+ 6. **Is this performant?**
414
+ 7. **Does this fit the brand personality?**
415
+ 8. **Would I recognize this as generic AI-generated UI?**
416
+
417
+ If you answer "no" to 1-3 or "yes" to 8, reconsider the implementation.
418
+
419
+ ---
420
+
421
+ ## Examples
422
+
423
+ ### ❌ Vibe-Coded UI
424
+
425
+ ```jsx
426
+ // Generic AI aesthetic without justification
427
+ <div className="rounded-3xl bg-gradient-to-br from-purple-600 via-pink-500 to-orange-400 p-8 shadow-2xl backdrop-blur-xl">
428
+ <h2 className="text-4xl font-bold text-white animate-pulse">
429
+ ✨ Supercharge Your Workflow
430
+ </h2>
431
+ <div className="grid grid-cols-3 gap-8 mt-8">
432
+ {/* Three generic feature cards */}
433
+ </div>
434
+ </div>
435
+ ```
436
+
437
+ **Problems:**
438
+ - Arbitrary harsh gradient
439
+ - Excessive border radius
440
+ - Excessive shadow
441
+ - Decorative emoji
442
+ - Generic marketing copy
443
+ - Repetitive structure without justification
444
+
445
+ ### ✅ Design-System-Driven UI
446
+
447
+ ```jsx
448
+ // Follows documented design system
449
+ <Card className="bg-background border border-border rounded-lg shadow-md p-6">
450
+ <h2 className="text-2xl font-semibold text-foreground mb-4">
451
+ Recent Activity
452
+ </h2>
453
+ <ActivityList items={activities} />
454
+ </Card>
455
+ ```
456
+
457
+ **Good:**
458
+ - Uses design tokens (bg-background, border-border)
459
+ - Documented border radius (rounded-lg)
460
+ - Appropriate shadow (shadow-md)
461
+ - Semantic HTML
462
+ - Clear purpose
463
+
464
+ ---
465
+
466
+ ## Summary
467
+
468
+ **Vibe coding is not about prohibiting patterns.**
469
+
470
+ **It's about ensuring patterns are:**
471
+ - ✅ Justified by design system, brand, or user needs
472
+ - ✅ Consistently applied
473
+ - ✅ Accessible and performant
474
+ - ✅ Purposeful, not decorative
475
+ - ✅ Adapted to the product, not copy-pasted
476
+
477
+ **Before implementing any UI pattern, ask:**
478
+ 1. Does the design system document this?
479
+ 2. Does this serve the user?
480
+ 3. Is this consistent with existing UI?
481
+ 4. Does this fit brand personality?
482
+ 5. Is this accessible and performant?
483
+
484
+ **When in doubt, prefer:**
485
+ - Simplicity over complexity
486
+ - Function over decoration
487
+ - Consistency over novelty
488
+ - Accessibility over aesthetics
489
+ - Performance over effects
490
+
491
+ **The goal:** Maintainable, accessible, performant UI that serves users and reflects the actual brand—not generic AI trends.