🎨 UI Craft & Anti-AI-Slop Guidelines¶
Portfolio apps are judged in the first 5 seconds. Generic AI-generated UI instantly signals low craft. Every frontend in this workspace must follow these rules.
1. Explicitly Banned ("AI Slop" Checklist)¶
Never ship any of these unless the product brand explicitly calls for it:
Visual & Color Clichés¶
- Generic purple / indigo / cyan-to-pink linear gradients on dark backgrounds, hero text, or buttons.
- Neon glow box-shadows (
shadow-[0_0_25px_rgba(139,92,246,0.5)]) or gratuitous glassmorphism stacked on busy gradients. - Rainbow badge walls or random pastel background colors on every card/avatar/tag.
- Giant
rounded-3xlcards with heavy drop shadows (shadow-2xl) and huge empty padding inside dense data tools.
Layout & Component Clichés¶
- Cookie-cutter "SaaS Landing Page" 3-column icon-in-tinted-circle feature grid dropped inside a dashboard or utility tool.
- Unnecessary full-viewport marketing hero banners blocking access to the actual app workspace.
- Fake decorative status dots (
● Live) or faux macOS window traffic-light headers around random cards.
Copy & Data Clichés¶
- Emoji-prefixed UI headings (
🚀 Get Started,✨ AI Insights,🔥 Trending) — keep app UI typography clean; reserve emojis only for deliberate semantic status or user content. - Empty hype copy ("Supercharge your productivity", "Unleash next-gen AI magic", "Revolutionize...").
- Hardcoded fake metrics (
+142% growth,99.99% uptime,John Doe / acme@example.comdummy cards) shown as real telemetry. - Dead buttons (
onClick={() => {}}), non-working toggles, orwindow.alert()/window.confirm()dialogs.
2. Required Design Craft¶
Intentional Tokens (Theme First)¶
Define surfaces, borders, text hierarchy, and a single primary accent in CSS variables / Tailwind @theme before writing screens:
- Surfaces: 2–3 subtle neutral levels (canvas, card/panel, elevated/popover) with crisp 1px borders instead of heavy shadows.
- Typography: Clear scale — 1 primary sans/display font + 1 monospace font for code/IDs/metrics. Always use tabular-nums on numbers, tables, timers, and counters.
- Iconography: One consistent icon library (e.g. lucide-react) with unified stroke weight (1.5 or 1.75). Never mix icon packs.
Mandatory 4-State UI Contract¶
Every async view, list, table, or detail panel must explicitly handle all 4 states:
1. Loading: Layout-matched skeleton preserving container height (prevent CLS / layout jump).
2. Empty: Domain-specific explanation + clear primary action button (never a blank white box).
3. Error: Calm, actionable error banner with retry button (never raw stack traces or silent failure).
4. Populated: Crisp spacing, scannable hierarchy, explicit truncation/overflow handling (truncate, min-w-0).
Component Reusability¶
- Build shared primitives once in
components/ui/(Button,Input,Badge,Card,Dialog,EmptyState,ErrorBanner,DataTable). - Feature components in
components/features/composeui/primitives rather than repeating 40-line Tailwind utility strings across pages. - Form controls use accessible labels, inline validation errors, disabled submit states while pending, and toast/inline feedback on completion.
3. Accessibility & Responsiveness¶
- Semantic HTML:
<button>for actions,<a href>for navigation,<label htmlFor>for inputs,<main>/<nav>/<header>landmarks. Never attachonClickto a<div>without role/keyboard handling. - Keyboard & Focus: Every interactive element must be reachable via
Taband show a clearfocus-visiblering. Modals/drawers must supportEscapeand focus return. - Contrast: Text and interactive controls must meet WCAG 2.1 AA (≥ 4.5:1 normal text, ≥ 3:1 large text/UI icons).
- Viewports: Zero horizontal scroll (
scrollWidth <= innerWidth) and usable touch targets (≥ 40px) at both mobile (375px) and desktop (1280px).
4. Standard Hosted Site Footer, Legal Pages & Core Shell¶
Every hosted portfolio web app (except Client Website repos, which preserve client branding) must include a clean, consistent shell (stack-templates/site-footer.tsx, not-found.tsx, error.tsx, privacy-page.tsx, terms-page.tsx):
- Dynamic copyright & author link:
© <currentYear> | Tanish Poddar — crafted with ❤where<currentYear>is computed dynamically vianew Date().getFullYear()(never hardcoded) andTanish Poddarlinks tohttps://tanisheesh.in(target="_blank" rel="noopener noreferrer"). - Real live health indicator (never fake green): Poll
GET /api/health(or backend/health) on mount withcache: "no-store"and a 5s timeout: - Green dot +
All Systems Functional(linking to the health route) only when HTTP200andstatusis"ok"or"healthy". - Neutral dot +
Checking status...while loading; amber dot +System Degradedon failure/timeout. - Footer navigation links: Cleanly link
Privacy(/privacy),Terms(/terms),♥ Sponsor(https://github.com/sponsors/tanisheesh),Buy Me a Coffee(https://buymeacoffee.com/tanisheesh) — lightweight links, zero render-blocking iframe widgets — andAPI Docs(/api-docsor/docs) when the app exposes API endpoints. - Value-moment support nudge (optional, anti-slop): On high-utility portfolio tools, you may show one subtle, dismissible 1-line note after a user completes a real action (e.g., exporting a file or finishing an analysis) linking GitHub Sponsors & Buy Me a Coffee. Never show popups, countdowns, or paywall nags on load.
- Real
404& error boundary: Always ship a genuine HTTP404page (not-found.tsx) with recovery links and a calm error boundary (error.tsx) with zero raw stack traces.
5. Visual Verification Loop¶
Before marking any UI task complete:
1. Run the Playwright smoke + @axe-core/playwright check (375px and 1280px), confirming GET /api/health returns 200 and the footer renders the current year + live status.
2. Confirm 0 console errors, 0 uncaught page errors, 0 broken images, and 0 accessibility violations.
3. If browser/screenshot tooling is available, visually inspect rendered screenshots for alignment, contrast, truncation, and AI-slop regression.