tasteskill: Anti-Slop Frontend Skill
Landing pages, portfolios, and redesigns. Not dashboards, not data tables, not multi-step product UI.
Every rule below is contextual. None of it fires automatically. First read the brief, then pull only what fits.
0. BRIEF INFERENCE (Read the Room Before Anything Else)
Before touching code or tweaking dials, infer what the user actually wants. Most LLM design output is bad because the model jumps to a default aesthetic instead of reading the room.
0.A Read these signals first
- Page kind - landing (SaaS / consumer / agency / event), portfolio (dev / designer / creative studio), redesign (preserve vs overhaul), editorial / blog.
- Vibe words the user used - "minimalist", "calm", "Linear-style", "Awwwards", "brutalist", "premium consumer", "Apple-y", "playful", "serious B2B", "editorial", "agency-y", "glassy", "dark tech".
- Reference signals - URLs they linked, screenshots they pasted, products they named, brands they're competing with.
- Audience - B2B procurement panel vs. design-conscious consumer vs. recruiter scanning a portfolio. The audience picks the aesthetic, not your taste.
- Brand assets that already exist - logo, color, type, photography. For redesigns, these are starting material, not optional input (see Section 11).
- Quiet constraints - accessibility-first audiences, public-sector, regulated industries, trust-first commerce, kids' products. These constraints OVERRIDE aesthetic preference.
0.B Output a one-line "Design Read" before generating
Before any code, state in one line: "Reading this as: <page kind> for <audience>, with a <vibe> language, leaning toward <design system or aesthetic family>."
Example reads:
- "Reading this as: B2B SaaS landing for technical buyers, with a Linear-style minimalist language, leaning toward Tailwind utilities + Geist + restrained motion."
- "Reading this as: solo designer portfolio for hiring managers, with an editorial / kinetic-type language, leaning toward native CSS + scroll-driven animation + custom typography."
- "Reading this as: redesign of a public-sector service site, with a trust-first language, leaning toward GOV.UK Frontend or USWDS."
0.C If the brief is ambiguous, ask one question, do not guess
Ask exactly one clarifying question - never a multi-question dump - and only when the design read genuinely diverges. Example: "Should this feel closer to Linear-clean or Awwwards-experimental?"
If you can confidently infer from context, do not ask. Just declare the design read and proceed.
0.D Anti-Default Discipline
Do not default to: AI-purple gradients, centered hero over dark mesh, three equal feature cards, generic glassmorphism on everything, infinite-loop micro-animations everywhere, Inter + slate-900. These are the LLM defaults. Reach past them deliberately based on the design read.
1. THE THREE DIALS (Core Configuration)
After the design read, set three dials. Every layout, motion, and density decision below is gated by these.
DESIGN_VARIANCE: 8 - 1 = Perfect Symmetry, 10 = Artsy Chaos
MOTION_INTENSITY: 6 - 1 = Static, 10 = Cinematic / Physics
VISUAL_DENSITY: 4 - 1 = Art Gallery / Airy, 10 = Cockpit / Packed Data
Baseline: 8 / 6 / 4. Use these unless the design read overrides them. Do not ask the user to edit this file - overrides happen conversationally.
1.A Dial Inference (design read → dial values)
| Signal |
VARIANCE |
MOTION |
DENSITY |
| "minimalist / clean / calm / editorial / Linear-style" |
5-6 |
3-4 |
2-3 |
| "premium consumer / Apple-y / luxury / brand" |
7-8 |
5-7 |
3-4 |
| "playful / wild / Dribbble / Awwwards / experimental / agency" |
9-10 |
8-10 |
3-4 |
| "landing page / portfolio / marketing site (default)" |
7-9 |
6-8 |
3-5 |
| "trust-first / public-sector / regulated / accessibility-critical" |
3-4 |
2-3 |
4-5 |
| "redesign - preserve" |
match existing |
+1 |
match existing |
| "redesign - overhaul" |
+2 |
+2 |
match existing |
1.B Use-Case Presets
| Use case |
VARIANCE |
MOTION |
DENSITY |
| Landing (SaaS, mainstream) |
7 |
6 |
4 |
| Landing (Agency / creative) |
9 |
8 |
3 |
| Landing (Premium consumer) |
7 |
6 |
3 |
| Portfolio (Designer / studio) |
8 |
7 |
3 |
| Portfolio (Developer) |
6 |
5 |
4 |
| Editorial / Blog |
6 |
4 |
3 |
| Public-sector service |
3 |
2 |
5 |
| Redesign - preserve |
match |
match+1 |
match |
| Redesign - overhaul |
+2 |
+2 |
match |
1.C How the Dials Drive Output
Use these (or user-overridden values) as global variables. Cross-references throughout this document refer to these exact variable names - never invent aliases like LAYOUT_VARIANCE or ANIM_LEVEL.
2. BRIEF → DESIGN SYSTEM MAP
Once you have the design read (Section 0) and dials (Section 1), pick the right foundation. Do not invent CSS for things that have an official package. Do not pretend an aesthetic trend is an official system.
2.A When to reach for a real design system (use official packages)
| Brief reads as… |
Reach for |
Why |
| Microsoft / enterprise SaaS / dashboards |
@fluentui/react-components or @fluentui/web-components |
Official Fluent UI, Microsoft tokens, accessibility done |
| Google-ish UI, Material-flavored product |
@material/web + Material 3 tokens |
Official, theme-able via Material Theming |
| IBM-style B2B / enterprise analytics |
@carbon/react + @carbon/styles |
Official Carbon, mature data-density patterns |
| Shopify app surfaces |
polaris.js web components / Polaris React |
Required for Shopify admin UI |
| Atlassian / Jira-style product |
@atlaskit/* + @atlaskit/tokens |
Official Atlassian DS |
| GitHub-style devtool / community page |
@primer/css or @primer/react-brand |
Official Primer; Brand variant for marketing |
| Public-sector UK service |
govuk-frontend |
Legally / regulatorily expected |
| US public-sector / trust-first |
uswds |
Same |
| Fast local-business / agency MVP |
Bootstrap 5.3 |
Boring, fast, works |
| Modern accessible React foundation |
@radix-ui/themes |
Primitives + polished theme |
| Modern SaaS where you own the components |
shadcn/ui (npx shadcn@latest add ...) |
You own the code, easy to customise; never ship default state |
| Tailwind-based modern SaaS / AI marketing |
Tailwind v4 utilities + dark: variant |
Default for indie + small team builds |
Honesty rule: if the brief reads as one of the systems above, install and use the official package. Do not recreate its CSS by hand. Do not import a system's tokens but then override 90% of them.
One system per project. Do not mix Fluent React with Carbon in the same tree. Do not import shadcn/ui components into a Material 3 app.
2.B When the brief is an aesthetic, not a system
For these directions, there is no single official package. Build with native CSS + Tailwind + a maintained component library. Be honest in code comments about what is borrowed inspiration vs. official material.
| Aesthetic |
Honest implementation |
| Glassmorphism / "frosted glass" |
backdrop-filter, layered borders, highlight overlays. Provide solid-fill fallback for prefers-reduced-transparency. |
| Bento (Apple-style tile grids) |
CSS Grid with mixed cell sizes. No single library owns this. |
| Brutalism |
Native CSS, monospace, raw borders. No library. |
| Editorial / magazine |
Serif type, asymmetric grid, generous whitespace. No library. |
| Dark tech / hacker |
Mono + accent neon, terminal motifs. No library. |
| Aurora / mesh gradients |
SVG or layered radial gradients. No library. |
| Kinetic typography |
Native CSS animations, scroll-driven animations, GSAP for hijacks. No library. |
| Apple Liquid Glass |
Apple documents this for Apple platforms only. There is no official liquid-glass.css. Web implementations are approximations using backdrop-filter + layered borders + highlights. Label clearly as approximation. |
3. DEFAULT ARCHITECTURE & CONVENTIONS
Unless the design read picks a real design system (Section 2.A), these are the defaults:
3.A Stack
- Framework: React or Next.js. Default to Server Components (RSC).
- RSC SAFETY: Global state works ONLY in Client Components. In Next.js, wrap providers in a
"use client" component.
- INTERACTIVITY ISOLATION: Any component using Motion, scroll listeners, or pointer physics MUST be an isolated leaf with
'use client' at the top. Server Components render static layouts only.
- Styling: Tailwind v4 (default). Tailwind v3 only if the existing project demands it.
- For v4: do NOT use
tailwindcss plugin in postcss.config.js. Use @tailwindcss/postcss or the Vite plugin.
- Animation: Motion (the library formerly known as Framer Motion). Import from
motion/react (import { motion } from "motion/react"). The framer-motion package still works as a legacy alias - prefer motion/react in new code.
- Fonts: Always use
next/font (Next.js) or self-host with @font-face + font-display: swap. Never link Google Fonts via <link> in production.
3.B State
- Local
useState / useReducer for isolated UI.
- Global state ONLY for deep prop-drilling avoidance - Zustand, Jotai, or React context.
- NEVER use
useState to track continuous values driven by user input (mouse position, scroll progress, pointer physics, magnetic hover). Use Motion's useMotionValue / useTransform / useScroll. useState re-renders the React tree on every change and collapses on mobile.
3.C Icons
- Allowed libraries (priority order):
@phosphor-icons/react, hugeicons-react, @radix-ui/react-icons, @tabler/icons-react.
- Discouraged:
lucide-react. Acceptable only when the user explicitly asks for it or the project already depends on it.
- NEVER hand-roll SVG icons. If a glyph is missing, install a second library or compose from primitives - do not draw icon paths from scratch.
- One family per project. Do not mix Phosphor with Lucide in the same component tree.
- Standardize
strokeWidth globally (e.g. 1.5 or 2.0).
3.D Emoji Policy
Discouraged by default in code, markup, and visible text. Replace symbols with icon-library glyphs. Override: allow emojis only when the user explicitly asks for a playful / chat-style / social-native vibe - and even then use them sparingly with intent.
3.E Responsiveness & Layout Mechanics
- Standardize breakpoints (
sm 640, md 768, lg 1024, xl 1280, 2xl 1536).
- Contain page layouts using
max-w-[1400px] mx-auto or max-w-7xl.
- Viewport Stability: NEVER use
h-screen for full-height Hero sections. ALWAYS use min-h-[100dvh] to prevent layout jumping on mobile (iOS Safari address bar).
- Grid over Flex-Math: NEVER use complex flexbox percentage math (
w-[calc(33%-1rem)]). ALWAYS use CSS Grid (grid grid-cols-1 md:grid-cols-3 gap-6).
3.F Dependency Verification (mandatory)
Before importing ANY 3rd-party library, check package.json. If the package is missing, output the install command first. Never assume a library exists.
4. DESIGN ENGINEERING DIRECTIVES (Bias Correction)
LLMs default to clichés. Override these defaults proactively. Each rule has a context-aware override path.
4.1 Typography
- Display / Headlines: Default
text-4xl md:text-6xl tracking-tighter leading-none.
- Body / Paragraphs: Default
text-base text-gray-600 leading-relaxed max-w-[65ch].
- Font choice:
- Discouraged as default:
Inter. Pick Geist, Outfit, Cabinet Grotesk, Satoshi, or a brand-appropriate serif first.
- Override: Inter is acceptable when the user explicitly asks for a neutral / standard / Linear-style feel, or when the brief is a public-sector / accessibility-first site.
- Serif: allowed for editorial / luxury / publication briefs. Not for technical SaaS dashboards.
- Pairings to know:
Geist + Geist Mono, Satoshi + JetBrains Mono, Cabinet Grotesk + Inter Tight, GT America + IBM Plex Mono.
- ITALIC DESCENDER CLEARANCE (mandatory): When italic is used in display type and the word contains a descender letter (
y g j p q), leading-[1] or leading-none will clip the descender. Use leading-[1.1] minimum and add pb-1 or mb-1 reserve on the wrapping element. Audit every italic word in display headlines before shipping.
4.2 Color Calibration
- Max 1 accent color. Saturation < 80% by default.
- THE LILA RULE: The "AI Purple / Blue glow" aesthetic is discouraged as a default. No automatic purple button glows, no random neon gradients. Use neutral bases (Zinc / Slate / Stone) with high-contrast singular accents (Emerald, Electric Blue, Deep Rose, Burnt Orange, etc.).
- Override: if the brand or brief explicitly asks for purple / violet / lila, embrace it. But execute with intent: consistent palette, harmonised neutrals, restrained gradients. Not generic AI gradient slop.
- One palette per project. Do not fluctuate between warm and cool grays within the same project.
- COLOR CONSISTENCY LOCK (mandatory): Once an accent color is chosen for a page, it is used on the WHOLE page. A warm-grey site does not suddenly get a blue CTA in section 7. A rose-accented site does not get a teal status badge in the footer. Pick one accent, lock it, audit every component before shipping.
4.3 Layout Diversification
- ANTI-CENTER BIAS: Centered Hero / H1 sections are avoided when
DESIGN_VARIANCE > 4. Force "Split Screen" (50/50), "Left-aligned content / right-aligned asset", "Asymmetric white-space", or scroll-pinned structures.
- Override: centered hero is OK for editorial / manifesto / launch-announcement briefs where the message itself is the design.
4.4 Materiality, Shadows, Cards
- Use cards ONLY when elevation communicates real hierarchy. Otherwise group with
border-t, divide-y, or negative space.
- When a shadow is used, tint it to the background hue. No pure-black drop shadows on light backgrounds.
- For
VISUAL_DENSITY > 7: generic card containers are banned. Data metrics breathe in plain layout.
- SHAPE CONSISTENCY LOCK (mandatory): Pick ONE corner-radius scale for the page and stick to it. Options: all-sharp (radius 0), all-soft (radius 12-16px), all-pill (full radius for interactive). Mixed systems are allowed only when there is a documented rule (e.g. "buttons are full-pill, cards are 16px, inputs are 8px") and that rule is followed everywhere. Round buttons in a square layout, or square cards on a pill-button page, is broken design.
4.5 Interactive UI States
LLMs default to "static successful state only." Always implement full cycles:
- Loading: Skeletal loaders matching the final layout's shape. Avoid generic circular spinners.
- Empty States: Beautifully composed; indicate how to populate.
- Error States: Clear, inline (forms), or contextual (toasts only for transient).
- Tactile Feedback: On
:active, use -translate-y-[1px] or scale-[0.98] to simulate a physical push.
- BUTTON CONTRAST CHECK (mandatory, a11y): Before shipping any button, verify the button text is readable against the button background. White button + white text,
bg-white CTA with text-white label, transparent button against the page background with no border → all banned. Audit every CTA: contrast ratio WCAG AA min (4.5:1 for body, 3:1 for large text 18px+).
4.6 Data & Form Patterns
- Label ABOVE input. Helper text optional but present in markup. Error text BELOW input. Standard
gap-2 for input blocks.
- No placeholder-as-label. Ever.
4.7 Layout Discipline (Hard Rules. Failing any of these is shipping broken work)
- Hero MUST fit in the initial viewport. Headline max 2 lines on desktop, subtext max 20 words AND max 3-4 lines, CTAs visible without scroll. If the copy is too long: reduce font scale OR cut copy. If you cannot describe the value-prop in 20 words of subtext, the value-prop is unclear, not the rule too tight. Never let the hero overflow and force scroll to find the CTA.
- Hero font-scale discipline. Plan font size and image size together. If the hero asset is large and the headline is more than 6 words, do not start at
text-7xl/text-8xl. Default sensible range: text-4xl md:text-5xl lg:text-6xl for most heroes; text-6xl md:text-7xl only when the headline is 3-5 words. A 4-line hero headline is always a font-size error, never a copy-length error.
- "Used by" / "Trusted by" logo wall belongs UNDER the hero, never inside it. The hero is for the value prop and primary CTA. The logo wall is a separate section directly below. Do not stuff trust logos into the same flex row as the hero copy.
- Navigation MUST render on a single line on desktop. If items don't fit at
lg (1024px), condense labels, drop secondary items, or move to a hamburger. A two-line nav at desktop is broken design.
- Navigation height cap: 80px max desktop, default 64-72px. No huge "agency" nav bars that eat 15% of the viewport.
- Bento grids MUST have rhythm, not one-sided repetition. Do not stack 6 left-image / right-text rows. Vary the composition: alternate full-width feature rows, asymmetric tile sizes, vertical breaks.
- BENTO CELL COUNT RULE (mandatory): A bento grid has EXACTLY as many cells as you have content for. 3 items → 3 cells (1+2 split, or 2+1, or asymmetric trio). 5 items → 5 cells (2+3, 3+2, hero+4, etc.). If your grid has an empty cell in the middle or at the end, you planned wrong. Re-shape the grid; do not paste a blank tile.
- Section-Layout-Repetition Ban. Once you use a layout family for a section (e.g., 3-column-image-cards, full-width-quote, split-text-image), that family can appear at most ONCE on the page. "Selected commissions" must not look like "What we do." A landing page with 8 sections must use at least 4 different layout families.
- Mobile collapse must be explicit per section. For every multi-column layout, declare the
< 768px fallback in the same component. No "it'll work, Tailwind handles it" assumptions.
4.8 Image & Visual Asset Strategy
Landing pages and portfolios are visual products. Text-only pages with fake-screenshot divs are slop.
Priority order for visual assets:
- Image-generation tool first. If ANY image-gen tool is available in the environment (
generate_image, MCP image tool, IDE-integrated gen, OpenAI image tools, etc.) you MUST use it to create section-specific assets: hero photography, product shots, texture backgrounds, mood images. Generate at the right aspect ratio for the section. Do not skip this step because hand-rolled CSS feels faster.
- Real web images second. When no gen tool is available, use real photography sources. Acceptable defaults:
https://picsum.photos/seed/{descriptive-seed}/{w}/{h} for placeholder photography (seed should describe the section, e.g. marrow-cookware-kitchen)
- Actual stock or brand URLs when the brief provides them
- Open-license sources (Unsplash via direct URL, Pexels) if explicitly allowed
- Last resort: tell the user. If neither is possible, do NOT fill the page with hand-rolled SVG illustrations or div-based "fake screenshots." Instead, leave clearly-labeled placeholder slots (
<!-- TODO: hero product photo, 1600x1200 -->) and at the end of the response say: "This page needs real images at: [list of placements]. Please generate or provide them."
Even minimalist sites need real images. A pure-text page is not minimalism. It is incomplete work. Even an editorial Linear-style site needs at least 2-3 real images (hero, one product/lifestyle shot, one supporting image). Generate B&W minimalist photography if the brief is restrained; do not skip images entirely because the dial is low.
Real company logos for social proof. When the brief calls for a "Trusted by / Used by / Customers" logo wall, do NOT default to plain text wordmarks (<span>Acme Co</span> styled in a row). Use real SVG logos:
- Source: Simple Icons (
https://cdn.simpleicons.org/{slug}/ffffff for any color, or simple-icons npm package). Covers most known brands.
- Alternative: devicon for tech-stack logos (
@svgr/cli or CDN).
- Make-up the brand name? Then make-up an SVG mark too. Generate a simple monogram (one letter in a circle, two-letter ligature, abstract glyph) rendered as an inline
<svg> matching the page style. Plain text wordmarks for invented brand names look generic.
- Always ensure logos render in both light and dark mode (white-on-dark, black-on-light, or single-color theme variable).
Hand-rolled illustrations:
- SVG icons from libraries: fine (see Section 3.C).
- Hand-rolled decorative SVGs (custom illustrations, logos, marks): strongly discouraged, never as default. Acceptable only when:
- The brief explicitly calls for it ("draw me an SVG logo")
- It's a single, simple geometric mark (a square, a circle, a wordmark in display type)
- You're confident in the output quality
Div-based fake screenshots are banned. A "hand-built product preview" rendered with <div> rectangles, fake task lists, fake dashboards, fake terminal windows is a Tell. If you need to show a product:
- Use a real screenshot URL if one exists
- Generate one via image tool
- Use a real component preview (an actual mini-version of the UI inside the page)
- Or skip the preview entirely and use editorial photography
Hero needs a real visual. Text + gradient blob is not a hero - it's a placeholder.
4.9 Content Density
Landing pages live on the first impression, not the full read. Cut ruthlessly.
- Default content shape per section: short headline (≤ 8 words) + short sub-paragraph (≤ 25 words) + one visual asset OR one CTA. Anything more must be justified by the section's job.
- No data-dump sections. A 20-row publication table, a 30-row award list, a giant pricing matrix on a marketing page = wrong layout. Use:
- Top 3-5 highlights + "View full list" link
- Marquee / carousel for breadth
- Different page entirely if the data is the product
- Long lists need a different UI component, not a longer list. Default
<ul> with bullets / divide-y rows is the lazy choice. If you have > 5 items, reach for one of these instead:
- 2-column split with grouped items
- Card grid with image + label per item
- Tabs / accordion if items are categorisable
- Horizontal scroll-snap pills
- Carousel for breadth-heavy lists (testimonials, logos, capabilities)
- Marquee for "lots-of-things-that-don't-need-individual-attention"
A spec sheet with 10 rows + a hairline under every row is the WORST default. Either group rows into 2-3 chunks with sparse dividers, or move to a card-per-spec layout.
- Fake-precise numbers are flagged. Numbers like
92%, 4.1×, 48k, 5.8 mm, 13.4 lb either:
- Come from real data (brief, brand guidelines, public metrics) - fine
- Are explicitly labeled as mock (
<!-- mock -->, "example", "sample data") - fine
- Are AI-invented spec aesthetics - banned. Don't fake engineering precision the brand doesn't claim.
- One copy register per page. Don't mix technical mono ("47 tasks · 0.6 ctx-switches/day"), editorial prose, and marketing punch in the same composition unless the brand voice explicitly calls for it.
4.10 Quotes & Testimonials
- Max 3 lines of quote body. Never 6. If the original quote is longer → cut it. A landing-page quote is a snippet, not the full review.
- For very small font sizes (e.g. footer-style testimonials), the line cap can stretch slightly. Spirit: "fits in a glance."
- No em-dashes inside the quote text as design flourish (long pauses, kinetic em-dashes, em-dash-bullets). See Section 9.G - em-dash is completely banned.
- Attribution: name + role + (optionally) company. Never name only ("- Sarah").
- Quote marks: use real typographic quotes ( " " ) or none at all. Not straight ASCII ( " ).
4.11 Page Theme Lock (Light / Dark Mode Consistency)
The page has ONE theme. Sections do not invert.
- If the page is dark mode, ALL sections are dark mode. No light-mode-warm-paper section sandwiched between dark sections (or vice versa). The user must not feel they walked into a different website mid-scroll.
- The exception: if the brief explicitly calls for a "Color Block Story" or "Theme Switch on Scroll" device AND that is a deliberate composition (one full theme switch with a strong transition, not random alternation), it is allowed once per page.
- Default behaviour: pick light, dark, or auto (
prefers-color-scheme) at the page level and lock it. Section-level background tints within the same theme family are fine (bg-zinc-950 next to bg-zinc-900); flipping to bg-amber-50 in the middle of a bg-zinc-950 page is broken.
- When using a design system with built-in theming (Radix Themes, shadcn/ui with
<Theme>), set the theme ONCE in layout.tsx or the page root. Do not let individual sections override.
5. CONTEXT-AWARE PROACTIVITY
These are tools, not defaults. Use them when the design read calls for them. None of these fire automatically.
- Liquid Glass / Glassmorphism: Appropriate for premium consumer, Apple-adjacent, luxury brand, or media-overlay vibes. Inappropriate for dashboards, public-sector, or "boring B2B." When used, go beyond
backdrop-blur: add a 1px inner border (border-white/10) and a subtle inner shadow (shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]) for physical edge refraction. Provide a solid-fill fallback under prefers-reduced-transparency.
- Magnetic Micro-physics: Use when
MOTION_INTENSITY > 5 AND the brief reads premium / playful / agency. Implement EXCLUSIVELY with Motion's useMotionValue / useTransform outside the React render cycle. Never useState. See Section 3.B.
- Perpetual Micro-Interactions (Pulse, Typewriter, Float, Shimmer, Carousel): Use when
MOTION_INTENSITY > 5 AND the section actively benefits from motion (status indicators, live feeds, AI-feel). Not every card needs an infinite loop. If a section is informational, leave it still. Apply Spring Physics (type: "spring", stiffness: 100, damping: 20) - no linear easing.
- "Motion claimed, motion shown." If
MOTION_INTENSITY > 4, the page must actually move: entry transitions on hero, scroll-reveal on key sections, hover physics on CTAs, at minimum. A static page that claims MOTION_INTENSITY: 7 is broken. Conversely, if you cannot ship working motion in the available scope, drop the dial to 3 and ship a clean static page. Never half-build motion that breaks (cut-off ScrollTriggers, jumpy enters, missing cleanups).
- GSAP Sticky-Stack Pattern (when scroll-stack is used). A "card stack on scroll" must be a REAL sticky-stack, not a sequential reveal list. See Section 5.A below for the canonical code skeleton. Common failure: trigger fires halfway through scroll instead of pinning at viewport top. Fix:
start: "top top" not start: "top center" or "top 80%".
- GSAP Horizontal-Pan Pattern (when horizontal scroll-hijack is used). See Section 5.B below for the canonical skeleton. Common failure: animation starts before the section is pinned, so the user sees half a slide. Same fix:
start: "top top", pin the wrapper, scrub the inner track.
5.A Sticky-Stack - Canonical Skeleton
"use client";
import { useRef, useEffect } from "react";
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
import { useReducedMotion } from "motion/react";
gsap.registerPlugin(ScrollTrigger);
export function StickyStack({ cards }: { cards: React.ReactNode[] }) {
const ref = useRef<HTMLDivElement>(null);
const reduce = useReducedMotion();
useEffect(() => {
if (reduce || !ref.current) return;
const ctx = gsap.context(() => {
const cardEls = gsap.utils.toArray<HTMLElement>(".stack-card");
cardEls.forEach((card, i) => {
if (i === cardEls.length - 1) return;
ScrollTrigger.create({
trigger: card,
start: "top top", // pin at viewport top
endTrigger: cardEls[cardEls.length - 1],
end: "top top",
pin: true,
pinSpacing: false,
});
gsap.to(card, {
scale: 0.92,
opacity: 0.55,
ease: "none",
scrollTrigger: {
trigger: cardEls[i + 1],
start: "top bottom",
end: "top top",
scrub: true,
},
});
});
}, ref);
return () => ctx.revert();
}, [reduce]);
return (
<div ref={ref} className="relative">
{cards.map((card, i) => (
<div
key={i}
className="stack-card sticky top-0 min-h-[100dvh] flex items-center justify-center"
>
{card}
</div>
))}
</div>
);
}
Critical points: start: "top top", pin: true, every card except the last is pinned, the scale/opacity transform is driven by the NEXT card's scroll trigger (so previous card shrinks as next one arrives).
5.B Horizontal-Pan - Canonical Skeleton
"use client";
import { useRef, useEffect } from "react";
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
import { useReducedMotion } from "motion/react";
gsap.registerPlugin(ScrollTrigger);
export function HorizontalPan({ children }: { children: React.ReactNode }) {
const wrap = useRef<HTMLDivElement>(null);
const track = useRef<HTMLDivElement>(null);
const reduce = useReducedMotion();
useEffect(() => {
if (reduce || !wrap.current || !track.current) return;
const ctx = gsap.context(() => {
const distance = track.current!.scrollWidth - window.innerWidth;
gsap.to(track.current, {
x: -distance,
ease: "none",
scrollTrigger: {
trigger: wrap.current,
start: "top top", // pin starts when section top hits viewport top
end: () => `+=${distance}`, // scroll distance = track width minus viewport
pin: true,
scrub: 1,
invalidateOnRefresh: true,
},
});
}, wrap);
return () => ctx.revert();
}, [reduce]);
return (
<section ref={wrap} className="relative overflow-hidden">
<div ref={track} className="flex h-[100dvh] items-center">
{children}
</div>
</section>
);
}
Critical points: start: "top top", pin: true, end: "+=${distance}" (scroll length = horizontal travel needed), scrub: 1. The wrapper is pinned, the inner track slides horizontally as the user scrolls vertically.
5.C Scroll-Reveal Stagger - Canonical Skeleton (lighter alternative)
For simple "items appear as they enter viewport" (no pinning), prefer Motion's whileInView over GSAP - lighter, no ScrollTrigger needed:
"use client";
import { motion, useReducedMotion } from "motion/react";
export function RevealStagger({ items }: { items: string[] }) {
const reduce = useReducedMotion();
return (
<ul className="grid gap-6">
{items.map((item, i) => (
<motion.li
key={item}
initial={reduce ? false : { opacity: 0, y: 24 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, amount: 0.3 }}
transition={{
duration: 0.6,
delay: i * 0.06,
ease: [0.16, 1, 0.3, 1],
}}
>
{item}
</motion.li>
))}
</ul>
);
}
Use this for: feature lists, testimonial grids, logo walls, anything that just needs "enter on scroll." Save GSAP for actual pin/scrub work.
5.D Forbidden Animation Patterns
window.addEventListener("scroll", ...) is banned. It runs on every scroll frame, jank-prone, no batching. Use Motion's useScroll(), GSAP's ScrollTrigger, IntersectionObserver, or CSS scroll-driven animations (animation-timeline: view()).
- Custom scroll progress calculations using
window.scrollY in React state. Same reason. Re-renders on every frame.
requestAnimationFrame loops that touch React state. Use motion values (useMotionValue + useTransform) instead.
- Layout Transitions: Use Motion's
layout and layoutId props for visible state changes (re-ordering lists, expanding modals, shared elements between routes). Do not wrap static content in layout props "for safety" - it costs measurement work.
- Staggered Orchestration: Use
staggerChildren (Motion) or CSS cascade (animation-delay: calc(var(--index) * 100ms)) for reveal moments where sequence matters. For staggerChildren, parent (variants) and children MUST share the same Client Component tree.
6. PERFORMANCE & ACCESSIBILITY GUARDRAILS
6.A Hardware Acceleration
- Animate ONLY
transform and opacity. Never animate top, left, width, height.
- Use
will-change: transform sparingly - only on elements that will actually animate.
6.B Reduced Motion (mandatory)
- Any motion above
MOTION_INTENSITY > 3 MUST honor prefers-reduced-motion. This is non-negotiable.
- In Motion: wrap with
useReducedMotion() and degrade to static.
- In CSS: gate animations behind
@media (prefers-reduced-motion: no-preference) or provide an override block under @media (prefers-reduced-motion: reduce) that disables.
- Infinite loops, parallax, scroll-hijack, and magnetic physics MUST collapse to static / instant under reduced motion.
6.C Dark Mode (mandatory for any consumer-facing page)
- Design for both modes from the start. Never ship light-only or dark-only without explicit user instruction.
- Use Tailwind
dark: variant OR CSS variables for tokens. Pick one strategy per project.
- Do not prescribe specific dark-mode colors here. The brief decides. Maintain visual hierarchy, brand identity, and WCAG AA contrast (AAA for body) across both modes.
- Respect
prefers-color-scheme: dark. Default to system preference unless the brand insists on one mode.
6.D Core Web Vitals Targets
- LCP < 2.5s. Hero image must be
next/image priority or preloaded.
- INP < 200ms. Heavy work off main thread.
- CLS < 0.1. Reserve space for images, fonts, embeds.
- Run Lighthouse before declaring a page done.
6.E DOM Cost
- Apply grain / noise filters EXCLUSIVELY to fixed,
pointer-events-none pseudo-elements (e.g., fixed inset-0 z-[60] pointer-events-none). NEVER on scrolling containers - continuous GPU repaints destroy mobile FPS.
- Be aware of bundle size. Motion is not tiny. Three.js is large. Lazy-load anything that's not above-the-fold.
6.F Z-Index Restraint
NEVER spam arbitrary z-50 or z-10. Use z-index strictly for systemic layer contexts (sticky navbars, modals, overlays, grain). Document the z-index scale in a project constants file.
7. DIAL DEFINITIONS (Technical Reference)
DESIGN_VARIANCE (Level 1-10)
- 1-3 (Predictable): Symmetrical CSS Grid (12-col, equal fr-units), equal paddings, centered alignment.
- 4-7 (Offset):
margin-top: -2rem overlaps, varied image aspect ratios (4:3 next to 16:9), left-aligned headers over center-aligned data.
- 8-10 (Asymmetric): Masonry layouts, CSS Grid with fractional units (
grid-template-columns: 2fr 1fr 1fr), massive empty zones (padding-left: 20vw).
- MOBILE OVERRIDE: For levels 4-10, asymmetric layouts above
md: MUST collapse to strict single-column (w-full, px-4, py-8) on viewports < 768px.
MOTION_INTENSITY (Level 1-10)
- 1-3 (Static): No automatic animations. CSS
:hover and :active states only. prefers-reduced-motion is the default mode anyway.
- 4-7 (Fluid CSS):
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1). animation-delay cascades for load-ins. Focus on transform and opacity.
- 8-10 (Advanced Choreography): Complex scroll-triggered reveals, parallax, scroll-driven animation (CSS
animation-timeline or GSAP ScrollTrigger). Use Motion hooks. NEVER use window.addEventListener('scroll') - it is a hard ban, not a "prefer-not." See Section 5.D for the allowed alternatives.
VISUAL_DENSITY (Level 1-10)
- 1-3 (Art Gallery): Lots of white space. Huge section gaps (
py-32 to py-48). Expensive, clean.
- 4-7 (Daily App): Standard web app spacing (
py-16 to py-24).
- 8-10 (Cockpit): Tight paddings. No card boxes; 1px lines separate data. Mandatory:
font-mono for all numbers.
8. DARK MODE PROTOCOL
Dual-mode by default. Never assume light-only unless the brief is print-emulating editorial.
8.A Token Strategy (pick one, stick to it)
- Tailwind
dark: variant (default for utility-first projects): every color utility paired with its dark variant (bg-white dark:bg-zinc-950, text-gray-900 dark:text-gray-100).
- CSS variables (for shadcn/ui, Radix Themes, or component libraries with theming): define semantic tokens (
--surface, --surface-elevated, --text-primary, --accent) and swap values under [data-theme="dark"] or @media (prefers-color-scheme: dark).
8.B Do Not Prescribe Specific Colors Here
The brief and brand decide. This skill enforces only:
- Contrast - WCAG AA minimum for body text, AAA target for hero copy.
- Hierarchy parity - visual hierarchy that works in light must work in dark. If a CTA pops in light, it pops in dark.
- Brand fidelity - primary brand color stays recognisable. Don't desaturate the brand into a dark mode.
- No pure
#000000 and no pure #ffffff - use off-black (zinc-950, near-black warm gray) and off-white. Pure values kill depth.
8.C Default Mode
Respect prefers-color-scheme unless the brand insists. Add a manual toggle if either mode would lose key brand expression.
8.D Test in Both Modes Before Finishing
Open the page in both modes during development. Do not ship a page you've only seen in one mode.
9. AI TELLS (Forbidden Patterns)
Avoid these signatures unless the brief explicitly asks for them.
9.A Visual & CSS
- NO neon / outer glows by default. Use inner borders or subtle tinted shadows.
- NO pure black (
#000000). Off-black, zinc-950, or charcoal.
- NO oversaturated accents. Desaturate to blend with neutrals.
- NO excessive gradient text for large headers.
- NO custom mouse cursors. Outdated, accessibility-hostile, perf-hostile.
9.B Typography
- AVOID Inter as default. See Section 4.1. Override path exists.
- NO oversized H1s that just scream. Control hierarchy with weight + color, not raw scale.
- Serif constraints: Serif for editorial / luxury / publication. Not for dashboards.
9.C Layout & Spacing
- Mathematically perfect padding and margins. No floating elements with awkward gaps.
- NO 3-column equal feature cards. The generic "three identical cards horizontally" feature row is banned. Use 2-column zig-zag, asymmetric grid, scroll-pinned, or horizontal-scroll alternative.
9.D Content & Data ("Jane Doe" Effect)
- NO generic names. "John Doe", "Sarah Chan", "Jack Su" → use creative, realistic, locale-appropriate names.
- NO generic avatars. No SVG "egg" or Lucide user icons → use believable photo placeholders or specific styling.
- NO fake-perfect numbers. Avoid
99.99%, 50%, 1234567. Use organic, messy data (47.2%, +1 (312) 847-1928).
- NO startup-slop brand names. "Acme", "Nexus", "SmartFlow", "Cloudly" → invent contextual, premium names that sound real.
- NO filler verbs. "Elevate", "Seamless", "Unleash", "Next-Gen", "Revolutionize" → concrete verbs only.
9.E External Resources & Components
- NO hand-rolled SVG icons. Use Phosphor / HugeIcons / Radix / Tabler. Lucide on explicit request only.
- **Hand-rolled decora
…(truncated)
1---2name: design-taste-frontend3description: Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.4---56# tasteskill: Anti-Slop Frontend Skill78> Landing pages, portfolios, and redesigns. Not dashboards, not data tables, not multi-step product UI.9> Every rule below is **contextual**. None of it fires automatically. First read the brief, then pull only what fits.1011---1213## 0. BRIEF INFERENCE (Read the Room Before Anything Else)1415Before touching code or tweaking dials, **infer what the user actually wants**. Most LLM design output is bad because the model jumps to a default aesthetic instead of reading the room.1617### 0.A Read these signals first181. **Page kind** - landing (SaaS / consumer / agency / event), portfolio (dev / designer / creative studio), redesign (preserve vs overhaul), editorial / blog.192. **Vibe words** the user used - "minimalist", "calm", "Linear-style", "Awwwards", "brutalist", "premium consumer", "Apple-y", "playful", "serious B2B", "editorial", "agency-y", "glassy", "dark tech".203. **Reference signals** - URLs they linked, screenshots they pasted, products they named, brands they're competing with.214. **Audience** - B2B procurement panel vs. design-conscious consumer vs. recruiter scanning a portfolio. The audience picks the aesthetic, not your taste.225. **Brand assets that already exist** - logo, color, type, photography. For redesigns, these are starting material, not optional input (see Section 11).236. **Quiet constraints** - accessibility-first audiences, public-sector, regulated industries, trust-first commerce, kids' products. These constraints OVERRIDE aesthetic preference.2425### 0.B Output a one-line "Design Read" before generating26Before any code, state in one line: **"Reading this as: \<page kind> for \<audience>, with a \<vibe> language, leaning toward \<design system or aesthetic family>."**2728Example reads:29- *"Reading this as: B2B SaaS landing for technical buyers, with a Linear-style minimalist language, leaning toward Tailwind utilities + Geist + restrained motion."*30- *"Reading this as: solo designer portfolio for hiring managers, with an editorial / kinetic-type language, leaning toward native CSS + scroll-driven animation + custom typography."*31- *"Reading this as: redesign of a public-sector service site, with a trust-first language, leaning toward GOV.UK Frontend or USWDS."*3233### 0.C If the brief is ambiguous, ask one question, do not guess34Ask exactly **one** clarifying question - never a multi-question dump - and only when the design read genuinely diverges. Example: *"Should this feel closer to Linear-clean or Awwwards-experimental?"*3536If you can confidently infer from context, **do not ask**. Just declare the design read and proceed.3738### 0.D Anti-Default Discipline39Do not default to: AI-purple gradients, centered hero over dark mesh, three equal feature cards, generic glassmorphism on everything, infinite-loop micro-animations everywhere, Inter + slate-900. These are the LLM defaults. Reach past them deliberately based on the design read.4041---4243## 1. THE THREE DIALS (Core Configuration)4445After the design read, set three dials. Every layout, motion, and density decision below is gated by these.4647* **`DESIGN_VARIANCE: 8`** - 1 = Perfect Symmetry, 10 = Artsy Chaos48* **`MOTION_INTENSITY: 6`** - 1 = Static, 10 = Cinematic / Physics49* **`VISUAL_DENSITY: 4`** - 1 = Art Gallery / Airy, 10 = Cockpit / Packed Data5051**Baseline:** `8 / 6 / 4`. Use these unless the design read overrides them. Do not ask the user to edit this file - overrides happen conversationally.5253### 1.A Dial Inference (design read → dial values)54| Signal | VARIANCE | MOTION | DENSITY |55|---|---|---|---|56| "minimalist / clean / calm / editorial / Linear-style" | 5-6 | 3-4 | 2-3 |57| "premium consumer / Apple-y / luxury / brand" | 7-8 | 5-7 | 3-4 |58| "playful / wild / Dribbble / Awwwards / experimental / agency" | 9-10 | 8-10 | 3-4 |59| "landing page / portfolio / marketing site (default)" | 7-9 | 6-8 | 3-5 |60| "trust-first / public-sector / regulated / accessibility-critical" | 3-4 | 2-3 | 4-5 |61| "redesign - preserve" | match existing | +1 | match existing |62| "redesign - overhaul" | +2 | +2 | match existing |6364### 1.B Use-Case Presets65| Use case | VARIANCE | MOTION | DENSITY |66|---|---|---|---|67| Landing (SaaS, mainstream) | 7 | 6 | 4 |68| Landing (Agency / creative) | 9 | 8 | 3 |69| Landing (Premium consumer) | 7 | 6 | 3 |70| Portfolio (Designer / studio) | 8 | 7 | 3 |71| Portfolio (Developer) | 6 | 5 | 4 |72| Editorial / Blog | 6 | 4 | 3 |73| Public-sector service | 3 | 2 | 5 |74| Redesign - preserve | match | match+1 | match |75| Redesign - overhaul | +2 | +2 | match |7677### 1.C How the Dials Drive Output78Use these (or user-overridden values) as global variables. Cross-references throughout this document refer to these exact variable names - never invent aliases like `LAYOUT_VARIANCE` or `ANIM_LEVEL`.7980---8182## 2. BRIEF → DESIGN SYSTEM MAP8384Once you have the design read (Section 0) and dials (Section 1), pick the right foundation. Do not invent CSS for things that have an official package. Do not pretend an aesthetic trend is an official system.8586### 2.A When to reach for a real design system (use official packages)87| Brief reads as… | Reach for | Why |88|---|---|---|89| Microsoft / enterprise SaaS / dashboards | `@fluentui/react-components` or `@fluentui/web-components` | Official Fluent UI, Microsoft tokens, accessibility done |90| Google-ish UI, Material-flavored product | `@material/web` + Material 3 tokens | Official, theme-able via Material Theming |91| IBM-style B2B / enterprise analytics | `@carbon/react` + `@carbon/styles` | Official Carbon, mature data-density patterns |92| Shopify app surfaces | `polaris.js` web components / Polaris React | Required for Shopify admin UI |93| Atlassian / Jira-style product | `@atlaskit/*` + `@atlaskit/tokens` | Official Atlassian DS |94| GitHub-style devtool / community page | `@primer/css` or `@primer/react-brand` | Official Primer; Brand variant for marketing |95| Public-sector UK service | `govuk-frontend` | Legally / regulatorily expected |96| US public-sector / trust-first | `uswds` | Same |97| Fast local-business / agency MVP | Bootstrap 5.3 | Boring, fast, works |98| Modern accessible React foundation | `@radix-ui/themes` | Primitives + polished theme |99| Modern SaaS where you own the components | shadcn/ui (`npx shadcn@latest add ...`) | You own the code, easy to customise; never ship default state |100| Tailwind-based modern SaaS / AI marketing | Tailwind v4 utilities + `dark:` variant | Default for indie + small team builds |101102**Honesty rule:** if the brief reads as one of the systems above, install and use the **official** package. Do not recreate its CSS by hand. Do not import a system's tokens but then override 90% of them.103104**One system per project.** Do not mix Fluent React with Carbon in the same tree. Do not import shadcn/ui components into a Material 3 app.105106### 2.B When the brief is an aesthetic, not a system107For these directions, there is **no single official package**. Build with native CSS + Tailwind + a maintained component library. Be honest in code comments about what is borrowed inspiration vs. official material.108109| Aesthetic | Honest implementation |110|---|---|111| Glassmorphism / "frosted glass" | `backdrop-filter`, layered borders, highlight overlays. Provide solid-fill fallback for `prefers-reduced-transparency`. |112| Bento (Apple-style tile grids) | CSS Grid with mixed cell sizes. No single library owns this. |113| Brutalism | Native CSS, monospace, raw borders. No library. |114| Editorial / magazine | Serif type, asymmetric grid, generous whitespace. No library. |115| Dark tech / hacker | Mono + accent neon, terminal motifs. No library. |116| Aurora / mesh gradients | SVG or layered radial gradients. No library. |117| Kinetic typography | Native CSS animations, scroll-driven animations, GSAP for hijacks. No library. |118| **Apple Liquid Glass** | Apple documents this for Apple platforms only. **There is no official `liquid-glass.css`.** Web implementations are approximations using `backdrop-filter` + layered borders + highlights. Label clearly as approximation. |119120---121122## 3. DEFAULT ARCHITECTURE & CONVENTIONS123124Unless the design read picks a real design system (Section 2.A), these are the defaults:125126### 3.A Stack127* **Framework:** React or Next.js. Default to Server Components (RSC).128 * **RSC SAFETY:** Global state works ONLY in Client Components. In Next.js, wrap providers in a `"use client"` component.129 * **INTERACTIVITY ISOLATION:** Any component using Motion, scroll listeners, or pointer physics MUST be an isolated leaf with `'use client'` at the top. Server Components render static layouts only.130* **Styling:** **Tailwind v4** (default). Tailwind v3 only if the existing project demands it.131 * For v4: do NOT use `tailwindcss` plugin in `postcss.config.js`. Use `@tailwindcss/postcss` or the Vite plugin.132* **Animation:** **Motion** (the library formerly known as Framer Motion). Import from `motion/react` (`import { motion } from "motion/react"`). The `framer-motion` package still works as a legacy alias - prefer `motion/react` in new code.133* **Fonts:** Always use `next/font` (Next.js) or self-host with `@font-face` + `font-display: swap`. Never link Google Fonts via `<link>` in production.134135### 3.B State136* Local `useState` / `useReducer` for isolated UI.137* Global state ONLY for deep prop-drilling avoidance - Zustand, Jotai, or React context.138* **NEVER** use `useState` to track continuous values driven by user input (mouse position, scroll progress, pointer physics, magnetic hover). Use Motion's `useMotionValue` / `useTransform` / `useScroll`. `useState` re-renders the React tree on every change and collapses on mobile.139140### 3.C Icons141* **Allowed libraries (priority order):** `@phosphor-icons/react`, `hugeicons-react`, `@radix-ui/react-icons`, `@tabler/icons-react`.142* **Discouraged:** `lucide-react`. Acceptable only when the user explicitly asks for it or the project already depends on it.143* **NEVER hand-roll SVG icons.** If a glyph is missing, install a second library or compose from primitives - do not draw icon paths from scratch.144* **One family per project.** Do not mix Phosphor with Lucide in the same component tree.145* **Standardize `strokeWidth` globally** (e.g. `1.5` or `2.0`).146147### 3.D Emoji Policy148Discouraged by default in code, markup, and visible text. Replace symbols with icon-library glyphs. **Override:** allow emojis only when the user explicitly asks for a playful / chat-style / social-native vibe - and even then use them sparingly with intent.149150### 3.E Responsiveness & Layout Mechanics151* Standardize breakpoints (`sm 640`, `md 768`, `lg 1024`, `xl 1280`, `2xl 1536`).152* Contain page layouts using `max-w-[1400px] mx-auto` or `max-w-7xl`.153* **Viewport Stability:** NEVER use `h-screen` for full-height Hero sections. ALWAYS use `min-h-[100dvh]` to prevent layout jumping on mobile (iOS Safari address bar).154* **Grid over Flex-Math:** NEVER use complex flexbox percentage math (`w-[calc(33%-1rem)]`). ALWAYS use CSS Grid (`grid grid-cols-1 md:grid-cols-3 gap-6`).155156### 3.F Dependency Verification (mandatory)157Before importing ANY 3rd-party library, check `package.json`. If the package is missing, output the install command first. **Never** assume a library exists.158159---160161## 4. DESIGN ENGINEERING DIRECTIVES (Bias Correction)162163LLMs default to clichés. Override these defaults proactively. Each rule has a context-aware override path.164165### 4.1 Typography166* **Display / Headlines:** Default `text-4xl md:text-6xl tracking-tighter leading-none`.167* **Body / Paragraphs:** Default `text-base text-gray-600 leading-relaxed max-w-[65ch]`.168* **Font choice:**169 * **Discouraged as default:** `Inter`. Pick `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`, or a brand-appropriate serif first.170 * **Override:** Inter is acceptable when the user explicitly asks for a neutral / standard / Linear-style feel, or when the brief is a public-sector / accessibility-first site.171* **Serif:** allowed for editorial / luxury / publication briefs. Not for technical SaaS dashboards.172* **Pairings to know:** `Geist` + `Geist Mono`, `Satoshi` + `JetBrains Mono`, `Cabinet Grotesk` + `Inter Tight`, `GT America` + `IBM Plex Mono`.173* **ITALIC DESCENDER CLEARANCE (mandatory):** When italic is used in display type and the word contains a descender letter (`y g j p q`), `leading-[1]` or `leading-none` will clip the descender. Use `leading-[1.1]` minimum and add `pb-1` or `mb-1` reserve on the wrapping element. Audit every italic word in display headlines before shipping.174175### 4.2 Color Calibration176* Max 1 accent color. Saturation < 80% by default.177* **THE LILA RULE:** The "AI Purple / Blue glow" aesthetic is discouraged as a default. No automatic purple button glows, no random neon gradients. Use neutral bases (Zinc / Slate / Stone) with high-contrast singular accents (Emerald, Electric Blue, Deep Rose, Burnt Orange, etc.).178* **Override:** if the brand or brief explicitly asks for purple / violet / lila, embrace it. But execute with intent: consistent palette, harmonised neutrals, restrained gradients. Not generic AI gradient slop.179* **One palette per project.** Do not fluctuate between warm and cool grays within the same project.180* **COLOR CONSISTENCY LOCK (mandatory):** Once an accent color is chosen for a page, it is used on the WHOLE page. A warm-grey site does not suddenly get a blue CTA in section 7. A rose-accented site does not get a teal status badge in the footer. Pick one accent, lock it, audit every component before shipping.181182### 4.3 Layout Diversification183* **ANTI-CENTER BIAS:** Centered Hero / H1 sections are avoided when `DESIGN_VARIANCE > 4`. Force "Split Screen" (50/50), "Left-aligned content / right-aligned asset", "Asymmetric white-space", or scroll-pinned structures.184* **Override:** centered hero is OK for editorial / manifesto / launch-announcement briefs where the message itself is the design.185186### 4.4 Materiality, Shadows, Cards187* Use cards ONLY when elevation communicates real hierarchy. Otherwise group with `border-t`, `divide-y`, or negative space.188* When a shadow is used, tint it to the background hue. No pure-black drop shadows on light backgrounds.189* For `VISUAL_DENSITY > 7`: generic card containers are banned. Data metrics breathe in plain layout.190* **SHAPE CONSISTENCY LOCK (mandatory):** Pick ONE corner-radius scale for the page and stick to it. Options: all-sharp (radius 0), all-soft (radius 12-16px), all-pill (full radius for interactive). Mixed systems are allowed only when there is a documented rule (e.g. "buttons are full-pill, cards are 16px, inputs are 8px") and that rule is followed everywhere. Round buttons in a square layout, or square cards on a pill-button page, is broken design.191192### 4.5 Interactive UI States193LLMs default to "static successful state only." Always implement full cycles:194* **Loading:** Skeletal loaders matching the final layout's shape. Avoid generic circular spinners.195* **Empty States:** Beautifully composed; indicate how to populate.196* **Error States:** Clear, inline (forms), or contextual (toasts only for transient).197* **Tactile Feedback:** On `:active`, use `-translate-y-[1px]` or `scale-[0.98]` to simulate a physical push.198* **BUTTON CONTRAST CHECK (mandatory, a11y):** Before shipping any button, verify the button text is readable against the button background. White button + white text, `bg-white` CTA with `text-white` label, transparent button against the page background with no border → all banned. Audit every CTA: contrast ratio WCAG AA min (4.5:1 for body, 3:1 for large text 18px+).199200### 4.6 Data & Form Patterns201* Label ABOVE input. Helper text optional but present in markup. Error text BELOW input. Standard `gap-2` for input blocks.202* No placeholder-as-label. Ever.203204### 4.7 Layout Discipline (Hard Rules. Failing any of these is shipping broken work)205206* **Hero MUST fit in the initial viewport.** Headline max 2 lines on desktop, subtext max **20 words** AND max 3-4 lines, CTAs visible without scroll. If the copy is too long: reduce font scale OR cut copy. If you cannot describe the value-prop in 20 words of subtext, the value-prop is unclear, not the rule too tight. Never let the hero overflow and force scroll to find the CTA.207* **Hero font-scale discipline.** Plan font size and image size *together*. If the hero asset is large and the headline is more than 6 words, do not start at `text-7xl/text-8xl`. Default sensible range: `text-4xl md:text-5xl lg:text-6xl` for most heroes; `text-6xl md:text-7xl` only when the headline is 3-5 words. A 4-line hero headline is always a font-size error, never a copy-length error.208* **"Used by" / "Trusted by" logo wall belongs UNDER the hero, never inside it.** The hero is for the value prop and primary CTA. The logo wall is a separate section directly below. Do not stuff trust logos into the same flex row as the hero copy.209* **Navigation MUST render on a single line on desktop.** If items don't fit at `lg` (1024px), condense labels, drop secondary items, or move to a hamburger. A two-line nav at desktop is broken design.210* **Navigation height cap: 80px max desktop, default 64-72px.** No huge "agency" nav bars that eat 15% of the viewport.211* **Bento grids MUST have rhythm, not one-sided repetition.** Do not stack 6 left-image / right-text rows. Vary the composition: alternate full-width feature rows, asymmetric tile sizes, vertical breaks.212* **BENTO CELL COUNT RULE (mandatory):** A bento grid has EXACTLY as many cells as you have content for. 3 items → 3 cells (1+2 split, or 2+1, or asymmetric trio). 5 items → 5 cells (2+3, 3+2, hero+4, etc.). If your grid has an empty cell in the middle or at the end, you planned wrong. Re-shape the grid; do not paste a blank tile.213* **Section-Layout-Repetition Ban.** Once you use a layout family for a section (e.g., 3-column-image-cards, full-width-quote, split-text-image), that family can appear at most ONCE on the page. "Selected commissions" must not look like "What we do." A landing page with 8 sections must use at least 4 different layout families.214* **Mobile collapse must be explicit per section.** For every multi-column layout, declare the `< 768px` fallback in the same component. No "it'll work, Tailwind handles it" assumptions.215216### 4.8 Image & Visual Asset Strategy217218Landing pages and portfolios are **visual products**. Text-only pages with fake-screenshot divs are slop.219220**Priority order for visual assets:**2211. **Image-generation tool first.** If ANY image-gen tool is available in the environment (`generate_image`, MCP image tool, IDE-integrated gen, OpenAI image tools, etc.) you MUST use it to create section-specific assets: hero photography, product shots, texture backgrounds, mood images. Generate at the right aspect ratio for the section. Do not skip this step because hand-rolled CSS feels faster.2222. **Real web images second.** When no gen tool is available, use real photography sources. Acceptable defaults:223 * `https://picsum.photos/seed/{descriptive-seed}/{w}/{h}` for placeholder photography (seed should describe the section, e.g. `marrow-cookware-kitchen`)224 * Actual stock or brand URLs when the brief provides them225 * Open-license sources (Unsplash via direct URL, Pexels) if explicitly allowed2263. **Last resort: tell the user.** If neither is possible, do NOT fill the page with hand-rolled SVG illustrations or div-based "fake screenshots." Instead, leave clearly-labeled placeholder slots (`<!-- TODO: hero product photo, 1600x1200 -->`) and at the end of the response say: *"This page needs real images at: \[list of placements\]. Please generate or provide them."*227228**Even minimalist sites need real images.** A pure-text page is not minimalism. It is incomplete work. Even an editorial Linear-style site needs at least 2-3 real images (hero, one product/lifestyle shot, one supporting image). Generate B&W minimalist photography if the brief is restrained; do not skip images entirely because the dial is low.229230**Real company logos for social proof.** When the brief calls for a "Trusted by / Used by / Customers" logo wall, do NOT default to plain text wordmarks (`<span>Acme Co</span>` styled in a row). Use real SVG logos:231* **Source: Simple Icons** (`https://cdn.simpleicons.org/{slug}/ffffff` for any color, or `simple-icons` npm package). Covers most known brands.232* **Alternative: devicon** for tech-stack logos (`@svgr/cli` or CDN).233* **Make-up the brand name? Then make-up an SVG mark too.** Generate a simple monogram (one letter in a circle, two-letter ligature, abstract glyph) rendered as an inline `<svg>` matching the page style. Plain text wordmarks for invented brand names look generic.234* **Always** ensure logos render in both light and dark mode (white-on-dark, black-on-light, or single-color theme variable).235236**Hand-rolled illustrations:**237* SVG icons from libraries: fine (see Section 3.C).238* Hand-rolled decorative SVGs (custom illustrations, logos, marks): **strongly discouraged**, never as default. Acceptable only when:239 - The brief explicitly calls for it ("draw me an SVG logo")240 - It's a single, simple geometric mark (a square, a circle, a wordmark in display type)241 - You're confident in the output quality242243**Div-based fake screenshots are banned.** A "hand-built product preview" rendered with `<div>` rectangles, fake task lists, fake dashboards, fake terminal windows is a Tell. If you need to show a product:244* Use a real screenshot URL if one exists245* Generate one via image tool246* Use a real component preview (an actual mini-version of the UI inside the page)247* Or skip the preview entirely and use editorial photography248249**Hero needs a real visual.** Text + gradient blob is not a hero - it's a placeholder.250251### 4.9 Content Density252253Landing pages live on the **first impression**, not the full read. Cut ruthlessly.254255* **Default content shape per section:** short headline (≤ 8 words) + short sub-paragraph (≤ 25 words) + one visual asset OR one CTA. Anything more must be justified by the section's job.256* **No data-dump sections.** A 20-row publication table, a 30-row award list, a giant pricing matrix on a marketing page = wrong layout. Use:257 - Top 3-5 highlights + "View full list" link258 - Marquee / carousel for breadth259 - Different page entirely if the data is the product260* **Long lists need a different UI component, not a longer list.** Default `<ul>` with bullets / `divide-y` rows is the lazy choice. If you have > 5 items, reach for one of these instead:261 - 2-column split with grouped items262 - Card grid with image + label per item263 - Tabs / accordion if items are categorisable264 - Horizontal scroll-snap pills265 - Carousel for breadth-heavy lists (testimonials, logos, capabilities)266 - Marquee for "lots-of-things-that-don't-need-individual-attention"267 A spec sheet with 10 rows + a hairline under every row is the WORST default. Either group rows into 2-3 chunks with sparse dividers, or move to a card-per-spec layout.268* **Fake-precise numbers are flagged.** Numbers like `92%`, `4.1×`, `48k`, `5.8 mm`, `13.4 lb` either:269 - Come from real data (brief, brand guidelines, public metrics) - fine270 - Are explicitly labeled as mock (`<!-- mock -->`, "example", "sample data") - fine271 - Are AI-invented spec aesthetics - banned. Don't fake engineering precision the brand doesn't claim.272* **One copy register per page.** Don't mix technical mono ("47 tasks · 0.6 ctx-switches/day"), editorial prose, and marketing punch in the same composition unless the brand voice explicitly calls for it.273274### 4.10 Quotes & Testimonials275276* **Max 3 lines** of quote body. Never 6. If the original quote is longer → cut it. A landing-page quote is a snippet, not the full review.277* For very small font sizes (e.g. footer-style testimonials), the line cap can stretch slightly. Spirit: "fits in a glance."278* **No em-dashes inside the quote text** as design flourish (long pauses, kinetic em-dashes, em-dash-bullets). See Section 9.G - em-dash is completely banned.279* Attribution: name + role + (optionally) company. Never name only ("- Sarah").280* Quote marks: use real typographic quotes ( " " ) or none at all. Not straight ASCII ( " ).281282### 4.11 Page Theme Lock (Light / Dark Mode Consistency)283284The page has ONE theme. Sections do not invert.285286* If the page is dark mode, ALL sections are dark mode. No light-mode-warm-paper section sandwiched between dark sections (or vice versa). The user must not feel they walked into a different website mid-scroll.287* The exception: if the brief explicitly calls for a "Color Block Story" or "Theme Switch on Scroll" device AND that is a deliberate composition (one full theme switch with a strong transition, not random alternation), it is allowed once per page.288* Default behaviour: pick light, dark, or auto (`prefers-color-scheme`) at the page level and lock it. Section-level background tints within the same theme family are fine (`bg-zinc-950` next to `bg-zinc-900`); flipping to `bg-amber-50` in the middle of a `bg-zinc-950` page is broken.289* When using a design system with built-in theming (Radix Themes, shadcn/ui with `<Theme>`), set the theme ONCE in `layout.tsx` or the page root. Do not let individual sections override.290291---292293## 5. CONTEXT-AWARE PROACTIVITY294295These are tools, not defaults. Use them when the design read calls for them. **None of these fire automatically.**296297* **Liquid Glass / Glassmorphism:** Appropriate for premium consumer, Apple-adjacent, luxury brand, or media-overlay vibes. Inappropriate for dashboards, public-sector, or "boring B2B." When used, go beyond `backdrop-blur`: add a 1px inner border (`border-white/10`) and a subtle inner shadow (`shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]`) for physical edge refraction. Provide a solid-fill fallback under `prefers-reduced-transparency`.298* **Magnetic Micro-physics:** Use when `MOTION_INTENSITY > 5` AND the brief reads premium / playful / agency. Implement EXCLUSIVELY with Motion's `useMotionValue` / `useTransform` outside the React render cycle. Never `useState`. See Section 3.B.299* **Perpetual Micro-Interactions** (Pulse, Typewriter, Float, Shimmer, Carousel): Use when `MOTION_INTENSITY > 5` AND the section actively benefits from motion (status indicators, live feeds, AI-feel). **Not every card needs an infinite loop.** If a section is informational, leave it still. Apply Spring Physics (`type: "spring", stiffness: 100, damping: 20`) - no linear easing.300* **"Motion claimed, motion shown."** If `MOTION_INTENSITY > 4`, the page must actually move: entry transitions on hero, scroll-reveal on key sections, hover physics on CTAs, at minimum. A static page that claims `MOTION_INTENSITY: 7` is broken. Conversely, if you cannot ship working motion in the available scope, drop the dial to 3 and ship a clean static page. Never half-build motion that breaks (cut-off ScrollTriggers, jumpy enters, missing cleanups).301* **GSAP Sticky-Stack Pattern (when scroll-stack is used).** A "card stack on scroll" must be a REAL sticky-stack, not a sequential reveal list. See Section 5.A below for the canonical code skeleton. Common failure: trigger fires halfway through scroll instead of pinning at viewport top. Fix: `start: "top top"` not `start: "top center"` or `"top 80%"`.302* **GSAP Horizontal-Pan Pattern (when horizontal scroll-hijack is used).** See Section 5.B below for the canonical skeleton. Common failure: animation starts before the section is pinned, so the user sees half a slide. Same fix: `start: "top top"`, pin the wrapper, scrub the inner track.303304### 5.A Sticky-Stack - Canonical Skeleton305306```tsx307"use client";308import { useRef, useEffect } from "react";309import { gsap } from "gsap";310import { ScrollTrigger } from "gsap/ScrollTrigger";311import { useReducedMotion } from "motion/react";312313gsap.registerPlugin(ScrollTrigger);314315export function StickyStack({ cards }: { cards: React.ReactNode[] }) {316 const ref = useRef<HTMLDivElement>(null);317 const reduce = useReducedMotion();318319 useEffect(() => {320 if (reduce || !ref.current) return;321 const ctx = gsap.context(() => {322 const cardEls = gsap.utils.toArray<HTMLElement>(".stack-card");323 cardEls.forEach((card, i) => {324 if (i === cardEls.length - 1) return;325 ScrollTrigger.create({326 trigger: card,327 start: "top top", // pin at viewport top328 endTrigger: cardEls[cardEls.length - 1],329 end: "top top",330 pin: true,331 pinSpacing: false,332 });333 gsap.to(card, {334 scale: 0.92,335 opacity: 0.55,336 ease: "none",337 scrollTrigger: {338 trigger: cardEls[i + 1],339 start: "top bottom",340 end: "top top",341 scrub: true,342 },343 });344 });345 }, ref);346 return () => ctx.revert();347 }, [reduce]);348349 return (350 <div ref={ref} className="relative">351 {cards.map((card, i) => (352 <div353 key={i}354 className="stack-card sticky top-0 min-h-[100dvh] flex items-center justify-center"355 >356 {card}357 </div>358 ))}359 </div>360 );361}362```363364Critical points: `start: "top top"`, `pin: true`, every card except the last is pinned, the scale/opacity transform is driven by the NEXT card's scroll trigger (so previous card shrinks as next one arrives).365366### 5.B Horizontal-Pan - Canonical Skeleton367368```tsx369"use client";370import { useRef, useEffect } from "react";371import { gsap } from "gsap";372import { ScrollTrigger } from "gsap/ScrollTrigger";373import { useReducedMotion } from "motion/react";374375gsap.registerPlugin(ScrollTrigger);376377export function HorizontalPan({ children }: { children: React.ReactNode }) {378 const wrap = useRef<HTMLDivElement>(null);379 const track = useRef<HTMLDivElement>(null);380 const reduce = useReducedMotion();381382 useEffect(() => {383 if (reduce || !wrap.current || !track.current) return;384 const ctx = gsap.context(() => {385 const distance = track.current!.scrollWidth - window.innerWidth;386 gsap.to(track.current, {387 x: -distance,388 ease: "none",389 scrollTrigger: {390 trigger: wrap.current,391 start: "top top", // pin starts when section top hits viewport top392 end: () => `+=${distance}`, // scroll distance = track width minus viewport393 pin: true,394 scrub: 1,395 invalidateOnRefresh: true,396 },397 });398 }, wrap);399 return () => ctx.revert();400 }, [reduce]);401402 return (403 <section ref={wrap} className="relative overflow-hidden">404 <div ref={track} className="flex h-[100dvh] items-center">405 {children}406 </div>407 </section>408 );409}410```411412Critical points: `start: "top top"`, `pin: true`, `end: "+=${distance}"` (scroll length = horizontal travel needed), `scrub: 1`. The wrapper is pinned, the inner track slides horizontally as the user scrolls vertically.413414### 5.C Scroll-Reveal Stagger - Canonical Skeleton (lighter alternative)415416For simple "items appear as they enter viewport" (no pinning), prefer Motion's `whileInView` over GSAP - lighter, no ScrollTrigger needed:417418```tsx419"use client";420import { motion, useReducedMotion } from "motion/react";421422export function RevealStagger({ items }: { items: string[] }) {423 const reduce = useReducedMotion();424 return (425 <ul className="grid gap-6">426 {items.map((item, i) => (427 <motion.li428 key={item}429 initial={reduce ? false : { opacity: 0, y: 24 }}430 whileInView={{ opacity: 1, y: 0 }}431 viewport={{ once: true, amount: 0.3 }}432 transition={{433 duration: 0.6,434 delay: i * 0.06,435 ease: [0.16, 1, 0.3, 1],436 }}437 >438 {item}439 </motion.li>440 ))}441 </ul>442 );443}444```445446Use this for: feature lists, testimonial grids, logo walls, anything that just needs "enter on scroll." Save GSAP for actual pin/scrub work.447448### 5.D Forbidden Animation Patterns449450* **`window.addEventListener("scroll", ...)`** is banned. It runs on every scroll frame, jank-prone, no batching. Use Motion's `useScroll()`, GSAP's `ScrollTrigger`, IntersectionObserver, or CSS `scroll-driven animations` (`animation-timeline: view()`).451* **Custom scroll progress calculations using `window.scrollY`** in React state. Same reason. Re-renders on every frame.452* **`requestAnimationFrame` loops that touch React state.** Use motion values (`useMotionValue` + `useTransform`) instead.453* **Layout Transitions:** Use Motion's `layout` and `layoutId` props for visible state changes (re-ordering lists, expanding modals, shared elements between routes). Do not wrap static content in `layout` props "for safety" - it costs measurement work.454* **Staggered Orchestration:** Use `staggerChildren` (Motion) or CSS cascade (`animation-delay: calc(var(--index) * 100ms)`) for reveal moments where sequence matters. For `staggerChildren`, parent (`variants`) and children MUST share the same Client Component tree.455456---457458## 6. PERFORMANCE & ACCESSIBILITY GUARDRAILS459460### 6.A Hardware Acceleration461* Animate ONLY `transform` and `opacity`. Never animate `top`, `left`, `width`, `height`.462* Use `will-change: transform` sparingly - only on elements that will actually animate.463464### 6.B Reduced Motion (mandatory)465* **Any motion above `MOTION_INTENSITY > 3` MUST honor `prefers-reduced-motion`.** This is non-negotiable.466* In Motion: wrap with `useReducedMotion()` and degrade to static.467* In CSS: gate animations behind `@media (prefers-reduced-motion: no-preference)` or provide an override block under `@media (prefers-reduced-motion: reduce)` that disables.468* Infinite loops, parallax, scroll-hijack, and magnetic physics MUST collapse to static / instant under reduced motion.469470### 6.C Dark Mode (mandatory for any consumer-facing page)471* Design for **both modes from the start**. Never ship light-only or dark-only without explicit user instruction.472* Use Tailwind `dark:` variant OR CSS variables for tokens. Pick one strategy per project.473* **Do not prescribe specific dark-mode colors here.** The brief decides. Maintain visual hierarchy, brand identity, and WCAG AA contrast (AAA for body) across both modes.474* Respect `prefers-color-scheme: dark`. Default to system preference unless the brand insists on one mode.475476### 6.D Core Web Vitals Targets477* **LCP** < 2.5s. Hero image must be `next/image priority` or preloaded.478* **INP** < 200ms. Heavy work off main thread.479* **CLS** < 0.1. Reserve space for images, fonts, embeds.480* Run Lighthouse before declaring a page done.481482### 6.E DOM Cost483* Apply grain / noise filters EXCLUSIVELY to fixed, `pointer-events-none` pseudo-elements (e.g., `fixed inset-0 z-[60] pointer-events-none`). NEVER on scrolling containers - continuous GPU repaints destroy mobile FPS.484* Be aware of bundle size. Motion is not tiny. Three.js is large. Lazy-load anything that's not above-the-fold.485486### 6.F Z-Index Restraint487NEVER spam arbitrary `z-50` or `z-10`. Use z-index strictly for systemic layer contexts (sticky navbars, modals, overlays, grain). Document the z-index scale in a project constants file.488489---490491## 7. DIAL DEFINITIONS (Technical Reference)492493### DESIGN_VARIANCE (Level 1-10)494* **1-3 (Predictable):** Symmetrical CSS Grid (12-col, equal fr-units), equal paddings, centered alignment.495* **4-7 (Offset):** `margin-top: -2rem` overlaps, varied image aspect ratios (4:3 next to 16:9), left-aligned headers over center-aligned data.496* **8-10 (Asymmetric):** Masonry layouts, CSS Grid with fractional units (`grid-template-columns: 2fr 1fr 1fr`), massive empty zones (`padding-left: 20vw`).497* **MOBILE OVERRIDE:** For levels 4-10, asymmetric layouts above `md:` MUST collapse to strict single-column (`w-full`, `px-4`, `py-8`) on viewports `< 768px`.498499### MOTION_INTENSITY (Level 1-10)500* **1-3 (Static):** No automatic animations. CSS `:hover` and `:active` states only. `prefers-reduced-motion` is the default mode anyway.501* **4-7 (Fluid CSS):** `transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1)`. `animation-delay` cascades for load-ins. Focus on `transform` and `opacity`.502* **8-10 (Advanced Choreography):** Complex scroll-triggered reveals, parallax, scroll-driven animation (CSS `animation-timeline` or GSAP ScrollTrigger). Use Motion hooks. **NEVER use `window.addEventListener('scroll')`** - it is a hard ban, not a "prefer-not." See Section 5.D for the allowed alternatives.503504### VISUAL_DENSITY (Level 1-10)505* **1-3 (Art Gallery):** Lots of white space. Huge section gaps (`py-32` to `py-48`). Expensive, clean.506* **4-7 (Daily App):** Standard web app spacing (`py-16` to `py-24`).507* **8-10 (Cockpit):** Tight paddings. No card boxes; 1px lines separate data. Mandatory: `font-mono` for all numbers.508509---510511## 8. DARK MODE PROTOCOL512513Dual-mode by default. Never assume light-only unless the brief is print-emulating editorial.514515### 8.A Token Strategy (pick one, stick to it)516* **Tailwind `dark:` variant** (default for utility-first projects): every color utility paired with its dark variant (`bg-white dark:bg-zinc-950`, `text-gray-900 dark:text-gray-100`).517* **CSS variables** (for shadcn/ui, Radix Themes, or component libraries with theming): define semantic tokens (`--surface`, `--surface-elevated`, `--text-primary`, `--accent`) and swap values under `[data-theme="dark"]` or `@media (prefers-color-scheme: dark)`.518519### 8.B Do Not Prescribe Specific Colors Here520The brief and brand decide. This skill enforces only:521* **Contrast** - WCAG AA minimum for body text, AAA target for hero copy.522* **Hierarchy parity** - visual hierarchy that works in light must work in dark. If a CTA pops in light, it pops in dark.523* **Brand fidelity** - primary brand color stays recognisable. Don't desaturate the brand into a dark mode.524* **No pure `#000000` and no pure `#ffffff`** - use off-black (zinc-950, near-black warm gray) and off-white. Pure values kill depth.525526### 8.C Default Mode527Respect `prefers-color-scheme` unless the brand insists. Add a manual toggle if either mode would lose key brand expression.528529### 8.D Test in Both Modes Before Finishing530Open the page in both modes during development. Do not ship a page you've only seen in one mode.531532---533534## 9. AI TELLS (Forbidden Patterns)535536Avoid these signatures unless the brief explicitly asks for them.537538### 9.A Visual & CSS539* **NO neon / outer glows** by default. Use inner borders or subtle tinted shadows.540* **NO pure black (`#000000`).** Off-black, zinc-950, or charcoal.541* **NO oversaturated accents.** Desaturate to blend with neutrals.542* **NO excessive gradient text** for large headers.543* **NO custom mouse cursors.** Outdated, accessibility-hostile, perf-hostile.544545### 9.B Typography546* **AVOID Inter as default.** See Section 4.1. Override path exists.547* **NO oversized H1s** that just scream. Control hierarchy with weight + color, not raw scale.548* **Serif constraints:** Serif for editorial / luxury / publication. Not for dashboards.549550### 9.C Layout & Spacing551* **Mathematically perfect** padding and margins. No floating elements with awkward gaps.552* **NO 3-column equal feature cards.** The generic "three identical cards horizontally" feature row is banned. Use 2-column zig-zag, asymmetric grid, scroll-pinned, or horizontal-scroll alternative.553554### 9.D Content & Data ("Jane Doe" Effect)555* **NO generic names.** "John Doe", "Sarah Chan", "Jack Su" → use creative, realistic, locale-appropriate names.556* **NO generic avatars.** No SVG "egg" or Lucide user icons → use believable photo placeholders or specific styling.557* **NO fake-perfect numbers.** Avoid `99.99%`, `50%`, `1234567`. Use organic, messy data (`47.2%`, `+1 (312) 847-1928`).558* **NO startup-slop brand names.** "Acme", "Nexus", "SmartFlow", "Cloudly" → invent contextual, premium names that sound real.559* **NO filler verbs.** "Elevate", "Seamless", "Unleash", "Next-Gen", "Revolutionize" → concrete verbs only.560561### 9.E External Resources & Components562* **NO hand-rolled SVG icons.** Use Phosphor / HugeIcons / Radix / Tabler. Lucide on explicit request only.563* **Hand-rolled decora564565…(truncated)