UI Rules & Visual Engineering Standards
This skill defines the mandatory visual engineering standards, interaction invariants, and anti-patterns across all frontend applications and portfolios in the MishraShardendu22 product ecosystem.
1. Rule: Absolute Ban on Hover Levitation & Moving Up
**ZERO VERTICAL DISPLACEMENT ON HOVER**: Elements must NEVER move up or shift vertically on hover. Physical levitation (`hover:-translate-y-*`, `translateY(-...)`, float, or bounce) is strictly forbidden.
Why This Rule Exists:
Prohibited Patterns:
/* FORBIDDEN: NEVER USE LEVITATION ON HOVER */
.card:hover {
transform: translateY(-2px); /* BANNED */
}
/* FORBIDDEN: TAILWIND HOVER TRANSLATE-Y CLASSES */
hover:-translate-y-0.5 /* BANNED */
hover:-translate-y-1 /* BANNED */
hover:-translate-y-2 /* BANNED */
group-hover:-translate-y-0.5 /* BANNED */
group-hover:-translate-y-1 /* BANNED */Approved Interactive Feedback:
2. Rule: Elimination of AI-Generated Aesthetic Bloat
Frontend code must avoid the stereotypical hallmarks of unreviewed AI outputs:
- Do NOT decorate cards or modals with fake red/yellow/green macOS terminal dots.
- Do NOT decorate every heading, card title, and badge with generic Lucide icons (`Sparkles`, `Bot`, `Layers`, `Cpu`, `Wrench`, `ShieldCheck`).
- Use only functional UI controls (`Search`, `X`, `Copy`, `Check`, `ArrowUpRight`, authentic brand icons).
- Do NOT add pulsing radar green beacons ("Available for hire/collaboration") or arbitrary metric pills (`Verified Links`, `3 Categories`, `Open Source Contributor`).
- Avoid loud multi-color gradients (`bg-gradient-to-r from-violet-600 to-cyan-500`). Use subtle single-tint or dual-tint background glows (`bg-violet-500/8`, `bg-teal-500/8`).
3. Rule: Layout Discipline & Unified Container Architecture
- Every primary route must use the unified container constraint:
```tsx
<div className="container mx-auto px-4 py-6 relative z-10 max-w-400">
```
- Standard 4-column responsive grid matching the canonical `ListCard` structure:
```tsx
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">
```
- Server-rendered headers with clean typography: `text-2xl font-bold text-white font-heading` with count and category summary.
4. Automated Verification & CI Rules
Automated unit tests must assert that no components introduce `hover:-translate-y-` or `hover:translate-y-` regressions. Any pull request introducing hover vertical displacement must fail CI validation.