For a while, part of my job was reviewing work from junior candidates: take-home tests, portfolio sites, the occasional “I built this over the weekend” landing page. More often than I’d like to admit, I’d open the HTML and just sit there. I am not a professionally trained HTML guy, and I have a knowledge gap. So what would I do? I would copy from StackOverflow.
My code had clearly been copied from 30 different places. Nothing talked to anything else. The CSS worked, technically, but how the eff it worked was anyone’s guess, and it was the kind of stylesheet where you’re scared to touch a single margin.
I see the exact same tendency in AI-generated UI today. Same habits. Bigger scale.
That makes sense when you think about it. An LLM is basically the most well-read junior candidate in history. It has seen every tutorial and every forum answer, and when you ask it for a screen without any rules, it does what those juniors did: it stitches together the most common version of everything it has ever seen. You get a subtitle under the heading, a description under the subtitle, and a button that says “Save Your Notification Preferences.” You get a modal where a side drawer should have been, and a three-step flow for a one-step task.
Designers keep blaming the model for this. I think the blame is in the wrong place. The AI over-designs because nobody told it where to stop.
So first things first
Where did “vibe coding” even come from?
On February 2, 2025, Andrej Karpathy posted about a new kind of coding where you “fully give in to the vibes, embrace exponentials, and forget that the code even exists.” He was also upfront that it was “not too bad for throwaway weekend projects.” Then the internet did what the internet does. Collins Dictionary named vibe coding its Word of the Year on 6 November 2025. A few months later, Karpathy himself said vibe coding is passé, replaced by “agentic engineering” for professional AI-assisted development.
So the original definition literally meant not caring about the code. That’s fine for a weekend toy. It turns into a problem the second someone has to maintain what you built. Steve Krouse of Val Town said it best: “We already have a phrase for code that nobody understands: legacy code.” He also pointed out that if you don’t understand the code, your only option is asking the AI to fix it, which is like paying off one credit card with another.
So here’s how this piece uses the term. You describe, the AI builds, you review. Vibe coding doesn’t mean taking whatever the AI hands back. The vibes are yours, and the rules should be too.
Why the AI does too much
Why does it always land on the same thing?
Anthropic has already set ground rules for this. Ask an LLM to build a landing page without guidance and it’ll almost always land on Inter, purple gradients on white, and minimal animation. The cause is distributional convergence. A model predicts the most likely next thing, and the most likely UI on the internet is a safe, generic one. The average screen out there is full of helper text, extra subtitles and three calls to action, so that’s what you get by default.
Why does it forget my rules halfway through?
Long chats are the problem. When Chroma tested 18 models, including GPT-4.1, Claude 4, Gemini 2.5 and Qwen3, it found that models don’t use their context evenly, and performance gets more and more unreliable as the input grows. The rule you typed in message three is competing with forty messages of back-and-forth by message forty-three. Smaller, cheaper models give up even sooner.
Why does it write the same box five times?
Because copying is easier than reusing. GitClear analyzed 211 million lines of code and found that code blocks with five or more duplicated lines increased eightfold during 2024. 2024 was also the first year on record where copy/paste beat “moved” (refactored) code. To be fair, GitClear sells code-review analytics, so treat this as vendor research, and Google’s 2024 DORA report found AI adoption improved code quality by 3.4% while cutting delivery stability by an estimated 7.2%. Either way, the direction is the same: more code, less reuse.
Is anyone actually happy with this?
Not really. In Stack Overflow’s 2025 survey, 46% of developers said they don’t trust the accuracy of AI output, up from 31% the year before. Their biggest frustration, named by 45%, was AI answers that look mostly right but hide subtle flaws. That’s exactly the junior-candidate CSS. It works until you touch it.
Why everything looks the same
This is where designers are failing.
Open ten vibe-coded products and they could be the same app wearing different logos. Part of that is the tooling. Lovable, v0 and Claude Code all start from the same defaults (Inter for type, ShadCN for components, Lucide for icons, Tailwind for spacing) before the model makes a single design decision. Iterating doesn’t save you either: each round, the AI treats its own last output as the baseline, so a few rounds in you’re spending tokens drifting further from anything distinctive.
You might argue the defaults are good. Yes, I agree. Inter is a lovely typeface and shadcn is solid work. The defaults aren’t the problem. Shipping them untouched is the problem, because then your product looks like everyone else’s. According to an articel on Anthropic, for customer-facing products, the generic look weakens brand identity and makes AI-built interfaces instantly recognizable, and easy to dismiss.
The good news is that the sameness is a choice. Claude is highly steerable: tell it to “avoid Inter and Roboto” or use atmospheric backgrounds instead of solid colors, and the results improve immediately. The model will follow your taste. You just have to write your taste down.
Every gap in your rulebook gets filled with the internet’s average.
Write the law before the code
Most designers open Claude Code and start typing “build me a settings page.” That’s where it goes wrong. The spec should exist before the prompt does.
This isn’t just a designer quirk. Engineering is moving the same way. GitHub announced Spec Kit on Sept. 2, 2025, an open-source toolkit for spec-driven development with AI coding agents, built to move teams beyond quick “vibe-coding” experiments toward a repeatable, verifiable workflow. Figma went there too: one of the core workflows in its MCP server is “Create Design System Rules,” which generates project-specific guidelines so AI agents follow consistent Figma-to-code workflows.
For a designer, a spec doesn’t have to be a 20-page PRD. It needs to cover the screens, the states, which existing components each screen uses, the exact copy, and which container each interaction lives in (more on that below). If something isn’t in the spec, it doesn’t get built. That one rule kills most of the over-designing before it starts.
Your library, your rules
Curate the library. Never let the AI invent one.
Never ask an AI to “create a design system” for you. You’ll get the average of every design system on the internet. Write the specs yourself, have it build only the components you’ve specced, and add new ones to the library when (and only when) a real screen needs them.
The tooling world has caught up to this. Storybook now openly pitches its MCP server as a way to force agents to reuse existing components instead of inventing new ones or hallucinating. The reason is clear from a LogRocket test: with no AGENTS.md and no MCP tools available, Claude Code read the file tree, noticed that Button and TextInput components already existed, and wrote a fully self-contained component anyway. That’s the junior candidate again, ignoring the component library and pasting from somewhere else.
When agents do get your real components, the numbers move. In Figma’s tests with Code Connect, median task duration dropped by 19.6%, and Coinbase’s design system team found it boosted design system adherence while cutting token costs by an average of 22.5%. Figma’s own line on this is worth pinning to your wall: “Design systems are the lingua franca between design and AI.”
Cap your variants
Here’s a simple example. Say your system has four button variants. Four should be enough for the entire product. If the AI wants a fifth, it should have to ask you first, and the answer should usually be no.
That’s not stingy. It’s how serious systems work. The UK Parliament design system has three button types, and it asks teams using the older types still in the codebase to replace them. Even Parliament had variant sprawl to clean up. The European Commission’s button system has four variants, each tied to a specific level of action importance. Material has five types of common buttons, and it says to use elevated buttons only when absolutely necessary, to prevent shadow creep. shadcn ships six: default, outline, ghost, destructive, secondary and link. On warning buttons, Greece’s government design system says “Most services should not need one.”
If Google stops at five, your app doesn’t need eleven. The same goes for cards, inputs, badges, everything. Pick a number, write it down, and make the AI respect it.
Write text once
Text styles should be defined once and reflected everywhere. You should never have to style a heading twice. That’s what tokens are for. Material’s typography uses a standard set of 15 tokens in 5 groups, each with exactly three sizes: Large, Medium and Small. And tokens now have a real standard behind them: on October 28, 2025, the Design Tokens Community Group announced the first stable version of the Design Tokens Specification (2025.10).
In Tailwind v4, this can be as simple as putting everything in @theme:
@import "tailwindcss";
@theme {
--font-sans: "Your Typeface", system-ui, sans-serif;
--text-display: 2.25rem;
--text-display--line-height: 2.75rem;
--text-title: 1.25rem;
--text-title--line-height: 1.75rem;
--text-body: 1rem;
--text-body--line-height: 1.5rem;
--text-label: 0.875rem;
--text-label--line-height: 1.25rem;
--color-ink: oklch(0.21 0.01 260);
--color-muted: oklch(0.55 0.01 260);
--color-surface: oklch(0.99 0 0);
--color-line: oklch(0.92 0.005 260);
}
Then a single Text component becomes the only way text gets onto a screen:
const variants = {
display: "text-display font-semibold text-ink",
title: "text-title font-semibold text-ink",
body: "text-body text-ink",
label: "text-label font-medium text-muted",
} as const;
type TextProps = {
variant?: keyof typeof variants;
as?: React.ElementType;
children: React.ReactNode;
};
export function Text({ variant = "body", as: Tag = "p", children }: TextProps) {
return <Tag className={variants[variant]}>{children}</Tag>;
}
Change --text-title once and every title in the product updates. And the AI has nowhere to sneak in a text-[15px].
Dumb components, smart parents
Keep components boring: simple hooks, simple state, and no interactivity except what the parent passes in. This isn’t some personal quirk either. It’s straight out of React’s own docs: shared state moves up to the closest common ancestor of the components that need it, and that owner becomes the “source of truth.” A controlled component gets its value and change handler from outside, so what it shows is always whatever the parent says.
For AI, this matters even more. A Button that only takes variant, onClick and children has almost no surface for the model to get creative with. A Button that fetches data, tracks its own loading state and decides its own label is a playground. Give the AI as little room as possible.
Never write a box twice
Boxes, panels, stacks and cards are shared components. You write each one once and never again.
export function Panel({ children }: { children: React.ReactNode }) {
return <div className="rounded-lg border border-line bg-surface p-4">{children}</div>;
}
If you write a box twice, the AI will write it thirty times.
Here’s the kind of thing an unconstrained run tends to give you:
<div className="rounded-xl border border-gray-200 bg-white p-6 shadow-sm">
<h2 className="text-lg font-semibold text-gray-900">Notification Settings</h2>
<p className="mt-1 text-sm text-gray-500">
Manage how and when you'd like to receive notifications from us.
</p>
<div className="mt-6 space-y-4">{/* toggles */}</div>
<button className="mt-6 w-full rounded-lg bg-gradient-to-r from-indigo-500 to-purple-600 px-4 py-2.5 font-medium text-white">
Save Your Notification Preferences
</button>
</div>
And here’s the same screen built under rules:
<Panel>
<Stack gap="md">
<Text variant="title" as="h2">Notifications</Text>
{/* toggles */}
<Button variant="primary" onClick={onSave}>Save</Button>
</Stack>
</Panel>
There’s no hand-rolled box, no hard-coded grays, no purple gradient, and no description nobody asked for. The button just says “Save.”
Tell it when to stop
Copy
The AI loves adding words. Your users don’t read them. In Nielsen Norman Group’s data, users had time to read at most 28% of a page’s words, and about 20% is more realistic. Every subtitle and description the AI adds eats into that budget.
The standards for button labels are short and strict. Shopify’s Polaris says buttons should lead with a strong verb and use the {verb}+{noun} format, except for common actions like Save, Close, Cancel or OK. Shopify’s extension guidelines say to aim for 2 words and skip unnecessary words like “the,” “an” or “a.” Splunk’s style guide aims for 1 or 2 words and no more than 4.
So write copy rules the AI can’t misread. No subtitle under a heading unless the spec has one. No helper text under inputs unless the spec has one. Button labels are verb + noun, two words max.
Containers
This is the drawer-versus-modal problem, and it’s where AI confuses designers the most. It’s also among the best-documented decisions in UX, so there’s no excuse for guessing.
NN/g says to use modal dialogs when you need information that’s critical for continuing the current process. IBM’s Carbon says not to show large amounts of data in a dialog, not to recreate a full app or page inside one, and not to open one the user didn’t trigger. Vercel’s Geist uses a Sheet for persistent context like deployment details, log rows or a member profile, where the page behind stays useful, and a Modal for blocking decisions. Vitaly Friedman’s decision tree in Smashing Magazine says to show a modal only when users will value the disruption, and to default to non-blocking dialogs.
Turn that into a table and paste it straight into your rules:
| Container | Use it when | Examples |
|---|---|---|
| Modal | The user can’t continue without answering, and the answer is short | Confirm delete, rename, re-enter password |
| Side sheet | Supporting detail where the page behind still matters | Row details, filters, profiles, logs |
| Page | It’s long, multi-step, or needs its own URL | Checkout, onboarding, full settings |
| Bottom sheet | The mobile and React Native version of a side sheet | Filters on mobile |
That last row matters if you’re in React Native. Material notes that side sheets often become bottom sheets on mobile, and Geist renders its Drawer as a bottom sheet only on small viewports.
Flows
The AI also likes to add steps: a confirmation here, an onboarding tooltip there. Public-sector design systems are ruthless about this, and they’re good role models. The NHS service manual says to try not to put multiple buttons on a page, and points to GOV.UK’s guidance on starting with one thing per page. Your rule should be just as blunt: use the fewest steps that satisfy the spec, with one primary action per screen and nothing extra unless it’s specced.
Make the rules stick
Where do the rules live?
In a skill, ideally. More than 70 agent platforms, including ChatGPT, Cursor, GitHub Copilot and VS Code, have integrated Agent Skills since Anthropic published the standard in December 2025. That means a rulebook you write for Claude Code isn’t locked into Claude. Skills also work through progressive disclosure: when an agent starts up, it doesn’t read every skill’s full content. Your UI rules load only when you’re doing UI work, so they don’t clutter every other conversation.
How long should the rules be?
Short. Anthropic’s guidance is to keep each CLAUDE.md under 200 lines, because longer files take up more context and get followed less reliably. Make every rule binary, too. A line like “Be concise” is scalar, so the model decides where on the spectrum to land, while “Do not write an introduction paragraph” is binary. “Keep copy minimal” will get ignored. “No subtitle under page titles” gets followed.
Here’s a starter skill built around everything above. Drop it into .claude/skills/ui-directive/SKILL.md and make it yours. The numbers and variant names are placeholders, so pick your own.
---
name: ui-directive
description: Use for any UI work in this repo (React, React Native, Tailwind): new screens, components, copy or layout changes.
---
# UI directive
## Before building
- Read the spec in /specs. No spec, no build: ask for one.
- Build only what the spec lists. No extra sections, states or screens.
## Components
- Use only components in src/components/ui. If something is missing, stop and ask. Never create one.
- Components are presentational. Data, state and handlers come from the parent (value + onChange, open + onOpenChange).
- Hooks inside components are visual only (hover, focus). No fetching, no business logic.
- Button has 4 variants: primary, secondary, ghost, destructive. Never add one. Never override colors with className.
- One primary button per screen.
## Type and tokens
- All text goes through <Text variant>. Never set font size, weight or color directly.
- No arbitrary Tailwind values (text-[15px], p-[13px], raw hex). Tokens only.
## Layout
- Containers come from Box, Panel and Stack. Never hand-write a bordered, rounded or padded wrapper.
- If the same JSX appears twice, extract it or use an existing component.
## Copy
- No subtitle or description under a heading unless the spec has one.
- No helper text under inputs unless the spec has one. Placeholders never repeat the label.
- Button labels: verb + noun, 2 words max. Save, Cancel, Close and Done can stand alone.
- Sentence case. No exclamation marks. No emojis.
## Containers
- Modal: short, blocking decisions only (confirm, rename, re-auth). Max 3 fields.
- Side sheet: details or filters where the page behind stays useful.
- Page: long, multi-step, or anything that needs its own URL.
- React Native: bottom sheet instead of side sheet.
## Flows
- Fewest steps that meet the spec. No added confirmations, onboarding, tooltips or empty-state illustrations unless specified.
## Done means
- No new files in src/components/ui
- No arbitrary values
- No copy outside the spec or the rules above
And then?
Then you review like a hiring manager. Juniors don’t get better by being told to “write cleaner code.” They get better with a style guide, a component library, and a reviewer who sends work back. AI is no different. Check every output against “Done means” and send it back when it fails.
Final notes
Yes, a lot of this is design systems 101. That’s kind of the point. The fundamentals didn’t stop mattering when AI arrived; they became the main thing that separates a product from a template.
It also costs time upfront. You’ll spend a few days writing specs and a rulebook before the AI builds anything worth keeping. For a throwaway prototype, skip all of it and vibe away; Karpathy was right about weekend projects. But for anything you’ll ship and maintain, the rulebook is the work. Even Brad Frost talks about vibe coding maturing into “vibe engineering,” with coverage on one side and validation, including human sign-off, on the other.
The AI was never the junior candidate here. If anything, we were, copying from whatever was nearby and hoping it held together. The difference now is that we can hand the machine our standards instead of the internet’s.
Write your rules. Keep your boxes to one. Peace.
Further reading
- Andrej Karpathy’s original “vibe coding” post
- Steve Krouse, “Vibe code is legacy code”
- Anthropic, “Improving frontend design through Skills”
- Chroma, “Context Rot”
- GitClear, AI Copilot Code Quality 2025
- GitHub Spec Kit
- Storybook MCP
- Figma, “The benefits of Code Connect in MCP”
- Design Tokens Specification 2025.10
- React, “Sharing State Between Components”
- NN/g, “Modal & Nonmodal Dialogs”
- NN/g, “How Little Do Users Read?”
- Shopify Polaris, Button
- Smashing Magazine, “Modal vs. Separate Page: UX Decision Tree”