# Design Reference ## Tech Stack Conflicts These combinations produce silent failures or incoherent output. Never combine them: | Never combine | Why | |---|---| | Tailwind + CSS Modules on the same element | Specificity conflicts, unpredictable cascade | | Framer Motion + CSS transitions on the same element | Double-animating the same property causes jank | | styled-components or emotion + Tailwind | Two competing class systems fighting for the same DOM node | | Heroicons + Lucide + Font Awesome in one project | Visual inconsistency, size mismatches, bundle bloat | | Multiple Google Font families as display fonts | Competing personalities cancel each other out | | Glassmorphism backdrop-filter + solid `border: 1px solid` | Solid borders shatter the layered depth illusion | | Dark background + `#ffffff` text at full opacity | Too harsh; use `rgba(255,255,255,0.85)` or `#f0f0f0` | | Tailwind v4 `@theme` + dynamically constructed class names | `@theme` tokens generate utility classes JIT; if class names are built from variables or not present in scanned source, the class is purged and styles silently disappear. Fix: use static class names in source files, add to `safelist`, or define custom colors in `:root` + `extend.colors` in `tailwind.config.js` instead of `@theme` | Before writing the first component, name the single CSS strategy for the project: Tailwind only, CSS Modules only, or CSS-in-JS only. Do not drift from it. ## Common Traps Before submitting, check whether any of the following slipped in without intention: - A three-part hero: large headline, one-line subtext, two CTA buttons side by side - A grid of cards with identical rounded corners, identical drop shadows, identical padding - A top navigation bar with logo left, links center, primary action far right - Sections that alternate between white and `#f9f9f9` - A centered icon or illustration sitting above a heading above a paragraph - A four-column footer with equal-weight columns Any of these can appear if they serve the design intentionally. They cannot appear by default. Final test: if you swapped in completely different content and the layout still made sense without changes, you built a template, not a design. Redo it. ## Content Authenticity Placeholder copy that looks real but is not real breaks the illusion the moment a user reads it. Apply these rules before handoff. **Sample data:** - No generic names: not John Doe, Jane Smith, Alex Johnson, or any first-name-last-name combination that reads as filler. Use culturally varied names with real specificity (e.g., Priya Mehta, Lars Eriksson, Nia Okafor). - No generic company names: not Acme Corp, Nexus, SmartFlow, TechCorp, Initech. Pick names with a domain (e.g., Meridian Logistics, Hokkaido Ceramics, Vantage Bioworks). - No Lorem Ipsum. Write short real copy that matches the layout's reading level. - No round numbers in data samples. `99.99%` uptime, `50%` conversion, `$100.00` MRR look synthetic. Use organic values instead: `99.94%`, `47.2%`, `$99.00`. - Multiple avatar instances must not share the same image. Multiple blog post or event cards must not share the same date. **UI copy:** - **Meaning lost in a copy cut:** Judge what the remaining text implies, not just whether words repeat a heading. Keep guarantees, scope and limits when removing them changes that implication; clearer wording can be the right edit without shortening. Before rendering a candidate, run existing copy checks across affected locales and reconcile corresponding surfaces on other platforms with their accepted wording. Compare the whole surface before and after: a settings list with uneven descriptions or a card left holding only an icon needs a layout decision, not another isolated text deletion. - Sentence case on all headings. Title Case On Every Heading is the most common AI tell in body copy. - Remove exclamation marks from success states ("Saved!" becomes "Saved", "Done!" becomes "Done"). Reserve `!` for genuine urgency. - Never open an error message with "Oops!". It reads as condescending. - No passive voice in error messages ("Something went wrong" becomes "We couldn't load your data. Try refreshing."). - Banned AI marketing words in hero copy, CTAs, and feature descriptions: Elevate, Seamless, Unleash, Delve, Tapestry, Game-changer, Next-Gen, "In the world of...". These words communicate nothing about the product. Name the specific value instead. ## Placeholders Over Imitations When an icon, image, or component is unavailable: use a placeholder. In hi-fi design a labeled placeholder is always better than a low-quality attempt at the real thing. Examples: a grey rectangle for a hero image, a monogram wordmark for a missing logo, a dashed border for a component not yet designed. Never draw illustrative imagery using inline SVG. SVG is for icons and geometric shapes. For photography, illustrations, or product shots, use a placeholder and ask the user to supply real assets. ## Production Quality Baseline Check before handoff. Accessibility and the CSS-pattern bans are non-negotiable; everything else below is craft detail in service of the locked direction. > Treat the sections below as craft details, not defaults. Only apply them when they serve the locked visual direction. If removing a detail changes nothing about how the interface feels, leave it out. ### Accessibility - Icon-only buttons need `aria-label` - Actions use `