Files
affaan-m--everything-claude…/rules/web/design-quality.md
T
wehub-resource-sync d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:55 +08:00

2.6 KiB

paths
paths
**/*.css
**/*.scss
**/*.sass
**/*.less
**/*.html
**/*.tsx
**/*.jsx
**/*.vue
**/*.svelte

This file extends common/patterns.md with web-specific design-quality guidance.

Web Design Quality Standards

Anti-Template Policy

Do not ship generic template-looking UI. Frontend output should look intentional, opinionated, and specific to the product.

Banned Patterns

  • Default card grids with uniform spacing and no hierarchy
  • Stock hero section with centered headline, gradient blob, and generic CTA
  • Unmodified library defaults passed off as finished design
  • Flat layouts with no layering, depth, or motion
  • Uniform radius, spacing, and shadows across every component
  • Safe gray-on-white styling with one decorative accent color
  • Dashboard-by-numbers layouts with sidebar + cards + charts and no point of view
  • Default font stacks used without a deliberate reason

Required Qualities

Every meaningful frontend surface should demonstrate at least four of these:

  1. Clear hierarchy through scale contrast
  2. Intentional rhythm in spacing, not uniform padding everywhere
  3. Depth or layering through overlap, shadows, surfaces, or motion
  4. Typography with character and a real pairing strategy
  5. Color used semantically, not just decoratively
  6. Hover, focus, and active states that feel designed
  7. Grid-breaking editorial or bento composition where appropriate
  8. Texture, grain, or atmosphere when it fits the visual direction
  9. Motion that clarifies flow instead of distracting from it
  10. Data visualization treated as part of the design system, not an afterthought

Before Writing Frontend Code

  1. Pick a specific style direction. Avoid vague defaults like "clean minimal".
  2. Define a palette intentionally.
  3. Choose typography deliberately.
  4. Gather at least a small set of real references.
  5. Use ECC design/frontend skills where relevant.

Worthwhile Style Directions

  • Editorial / magazine
  • Neo-brutalism
  • Glassmorphism with real depth
  • Dark luxury or light luxury with disciplined contrast
  • Bento layouts
  • Scrollytelling
  • 3D integration
  • Swiss / International
  • Retro-futurism

Do not default to dark mode automatically. Choose the visual direction the product actually wants.

Component Checklist

  • Does it avoid looking like a default Tailwind or shadcn template?
  • Does it have intentional hover/focus/active states?
  • Does it use hierarchy rather than uniform emphasis?
  • Would this look believable in a real product screenshot?
  • If it supports both themes, do both light and dark feel intentional?