Stop generic purple gradients and floating badges. Here is how to enforce schema-based AI design rules in Claude Code, Cursor, and ChatGPT.
Imdadullah BabuDesigner & Developer
Ask Claude Code, Cursor, or ChatGPT to generate a simple analytics dashboard or landing page, and you will almost certainly get the exact same visual output: dark purple neon gradients, tiny uppercase headers with extreme letter spacing (like PLATFORM ANALYTICS), decorative pulsing green dots next to static text, and input boxes with hyper-verbose placeholder text like "Search through your universal enterprise workspace...".
This visually repetitive aesthetic is known in the developer community as AI UI slop. While modern Large Language Models (LLMs) write reliable React components, state hooks, and API integrations, their default visual choices make every application look like an unbranded open-source boilerplate.
The solution is not to write longer human prompts every time you need a button. Instead, enforce deterministic ai design rules for coding agents directly inside your repository. By injecting schema-based design rules, token definitions, and anti-slop linters into configuration files like CLAUDE.md or .cursor/rules, you force coding agents to generate code that matches your actual design system.
Key takeaways
- AI UI slop occurs because LLMs lack real-time visual feedback and default to high-frequency visual patterns overrepresented in their training data.
- Context files like
CLAUDE.mdand.cursor/ruleslock down design constraints before an agent writes CSS or JSX. - Open-source tooling (e.g.,
dev-ik/ai-design-rules,Taste Skill,unslop-mcp) automates design auditing to catch visual clichés during generation. - W3C Design Token JSON schemas prevent AI models from hallucinating arbitrary hex codes, arbitrary margin scales, and non-standard line heights.
The Anatomy of AI UI Slop: Why Generated Interfaces Look Identical
To stop AI agents from building generic interfaces, you must first recognize the distinct visual signatures of modern AI UI generation drift.
When an LLM generates UI code without explicit visual constraints, it defaults to high-frequency patterns present in public code repositories and template sites. Because it cannot "see" canvas rendering in real time without external visual tooling, it stacks decorative visual elements to simulate polish.
| Slop Pattern Feature | AI Default Output | Clean Production Alternative |
|---|---|---|
| Section Kickers | • • • FEATURE OVERVIEW (10px all-caps, letter-spacing: 0.2em) |
Standard sentence-case section header without uppercase kickers |
| Hero Copy | "Unleash the Power of AI-Driven Workspaces" | Direct, functional product benefit statement |
| Form Placeholders | "Type your search query here to filter all database items..." |
Concise noun cue: "Search items" |
| Card Styling | Dark glossy card + diagonal neon purple/slate gradient background | Flat neutral background (bg-slate-50 / bg-zinc-900) with 1px border |
| Status Indicators | 🟢 Active (animate-ping) on non-real-time labels |
Plain text status label or semantic static badge |
Common Visual Clichés of AI-Generated Code
- Letter-Spaced Uppercase Eyebrows: Small, all-caps category labels forced above headings (for example,
TRACKING & ANALYTICSin 10px uppercase font withletter-spacing: 0.2em). - Decorative Status Dots: Animated pulses (
animate-ping) next to text labels that are not real-time operational status indicators. - Arbitrary Dark Mode Gradients: Deep purple-to-slate diagonal background gradients (
bg-gradient-to-r from-purple-900 via-indigo-900 to-slate-900) applied to basic container boxes. - Verbose Input Placeholders: Conversational instructions inside form fields instead of concise cues (e.g.,
"Enter your full legal email address here..."instead of"Email"). - Redundant Card Numbering: Prefixing list items or feature cards with artificial index tags like
01.,02., orStep #1. - Bot Explaining Text: Small text blocks placed under headers explaining what the section does, treating the interface like an assistant response rather than functional UI.
When building custom software—whether an internal business tool or an enterprise SaaS portal—these visual signatures immediately indicate an unrefined build. Adopting strict anti-slop rules ensures your frontend remains clean, readable, and aligned with your brand architecture.
The Anti-Slop Tooling Ecosystem: Skills, Rules, and Linters
Open-source tooling has emerged specifically to prevent AI visual drift. Rather than fixing UI defects manually after code generation, developers now integrate specialized linting engines and design skill modules into their agent setups.
The primary open-source tools establishing deterministic design boundaries for AI agents include:
1. dev-ik/ai-design-rules
The dev-ik/ai-design-rules repository provides rule sets via npm packages and text files. It enforces core micro-typography standards:
- Requires sentence-case headers over title-case or all-caps.
- Strips decorative uppercase kickers/eyebrows.
- Limits form input placeholders to concise 1–3 word noun phrases.
- Imposes strict caps on component padding scales.
2. Leonxlnx/taste-skill
Available as Leonxlnx/taste-skill (v2.5.1), this open-source skill acts as an art direction module for Claude Code, Cursor, and Codex. It applies layout density constraints, visual reference bounds, and spatial alignment rules to prevent agents from defaulting to sparse, generic hero layouts.
3. The Unslop Tool Suite
Targeted linters that audit visual tells at context-time or build-time:
- unslop-mcp (by VibeFoundry): An anti-slop CLI and Model Context Protocol (MCP) server. It audits code against 72 specific rules across seven design pillars (typography, spacing, color contrast, component isolation, elevation, interactive states, and layout structure). It can generate automated refactor blueprints for React, Vue, Svelte, and Tailwind CSS codebases.
- erkamyaman/unslop-anything: A static analyzer containing 33 visual craft rules derived from App Store and Google Play frontend reviews to flag structural visual clichés.
- felipebasurto/unslop-ui: An agent skill that scans frontend component trees for visual tells—such as floating status dots, bot explanation copy, and letter-spaced eyebrows—and swaps them for simple alternatives.
4. Component Transformation Frameworks
- superdesigndev/superdesign-skill: Installed via npm (
npx skills add superdesigndev/superdesign-skill), this skill converts unstructured, unconstrained layouts into structured, token-backed component trees. - bitjaru/styleseed: Contains 22 pre-configured directives for Claude Code, Cursor, and Codex to enforce semantic color palettes, token mappings, and verified grid systems.
Step-by-Step: Installing Anti-Slop Addons in Claude Code, Cursor, and ChatGPT
Configuring ai design rules for coding agents requires providing your tools with persistent context files. Below are configuration patterns for standard development environments.
repository-root/
├── CLAUDE.md # Global instructions for Claude Code CLI
├── .cursor/rules/ # Component rules for Cursor IDE
├── AGENTS.md # Shared multi-agent configuration
└── tokens.json # W3C DTCG Token JSON schema
Method 1: Installing Agent Skills via CLI (Claude Code & MCP Tools)
For Claude Code or MCP-compatible setups, install design skills directly into your working directory using standard terminal workflows.
Step 1: Add the Superdesign Skill
Run the following command in your repository root to equip your AI agent with design system constraints:
npx skills add superdesigndev/superdesign-skill
Step 2: Initialize unslop-mcp for Auditing
To configure automated design checks across your codebase, initialize unslop-mcp:
npx -y unslop-mcp@latest init
This command writes a local configuration file that hooks into your agent workflow, allowing it to evaluate components against 72 design craft rules before committing changes.
Method 2: Injecting Rules into Context Files (CLAUDE.md and .cursor/rules)
Coding agents parse specific Markdown configuration files in your repository. Key files include CLAUDE.md, .cursor/rules, AGENTS.md, and SKILL.md.
Config File 1: For Claude Code (CLAUDE.md)
Create a file named CLAUDE.md in your project root:
# Frontend Design System Rules & Anti-Slop Guidelines
## Typography & Hierarchy
- Use sentence-case for all headings (e.g., "Account settings", not "ACCOUNT SETTINGS" or "Account Settings").
- NEVER use letter-spaced all-caps eyebrow text above section headings.
- Limit form placeholders to a maximum of 3 words (e.g., placeholder="Search projects").
## Styling & Colors
- DO NOT generate background gradients unless explicitly requested in the prompt. Use solid, semantic surface tokens.
- Use primary action colors only for main call-to-action buttons. Never add bright accent fills to passive container borders.
- Avoid decorative glowing dots, pulsing status indicators, or decorative badge indicators on static text labels.
## Layout & Components
- Ensure tight padding scales (use Tailwind `p-3`, `p-4`, or `p-6` based on spatial rules). Avoid arbitrary padding like `p-[23px]`.
- All cards must use semantic border tokens (`border border-slate-200` or dark equivalent) rather than heavy drop shadows or glow effects.
Config File 2: For Cursor (.cursor/rules/frontend-design.mdc)
If you use Cursor, place a rule file at .cursor/rules/frontend-design.mdc:
---
description: Enforce anti-slop rules and design tokens for React/Tailwind frontend components
globs: **/*.tsx, **/*.jsx, **/*.vue, **/*.svelte
---
# Cursor Rules Frontend Design System
1. ZERO GRADIENT DEFAULT: Default all card and modal containers to flat neutral surfaces (`bg-white` or `bg-zinc-900`).
2. NO BOT TELLS: Omit decorative card numbers ("01", "Step 1"), bot explanation copy, and unnecessary section icons.
3. STRICT TOKEN MATCHING: Do not write arbitrary Tailwind values like `h-[342px]` or `bg-[#1a1b26]`. Always use standard spatial scales and theme variables.
4. HEADINGS: Use standard `font-semibold` or `font-bold` with standard tracking (`tracking-normal` or `tracking-tight`). Never use `tracking-widest` on uppercase text.
Method 3: Binding AI to W3C Design Tokens (DTCG Standard)
AI agents often generate inconsistent details because they lack formal spatial scales, typography hierarchies, and color boundaries.
Using a machine-readable JSON schema built on the W3C Design Tokens format (DTCG standard) restricts models from inventing arbitrary hex codes or margins.
Create a tokens.json file inside your design system or root folder:
{
"color": {
"surface": {
"base": { "$value": "#ffffff", "$type": "color" },
"subtle": { "$value": "#f8fafc", "$type": "color" },
"overlay": { "$value": "#0f172a", "$type": "color" }
},
"brand": {
"primary": { "$value": "#2563eb", "$type": "color" },
"text": { "$value": "#0f172a", "$type": "color" },
"muted": { "$value": "#64748b", "$type": "color" }
}
},
"spacing": {
"sm": { "$value": "0.5rem", "$type": "dimension" },
"md": { "$value": "1rem", "$type": "dimension" },
"lg": { "$value": "1.5rem", "$type": "dimension" }
}
}
Reference this schema directly in your prompts or CLAUDE.md:
"Map all component styles strictly to variables in
tokens.json. Do not introduce hex values or inline spatial adjustments outside these parameters."
If you are starting a new application and need a production frontend system, Pen Programmer builds structured codebases using these principles through our Service: Web Development and Service: MVP Development offerings.
Practical Prompt Templates to Prevent AI UI Slop
Even with system configuration files present, structured prompting helps agents maintain focus. Below are prompt templates for Claude Code, Cursor, and ChatGPT.
| Prompt Approach | Strategy | Focus |
|---|---|---|
| Vibe Prompt (Avoid) | Unstructured requests (e.g., "Make a modern, dark, futuristic tech dashboard UI"). | Triggers default visual clichés, dark purple gradients, and heavy drop shadows. |
| Structured Prompt (Recommended) | Explicit constraints (e.g., "Build a high-density React table. Sentence-case headers, flat neutral surfaces, no gradients"). | Binds agent output directly to design tokens and functional requirements. |
Prompt Template 1: For Claude Code (CLI)
Use this structure when asking Claude Code to build a layout or UI component:
/code Build a user management settings panel in React and Tailwind.
[DESIGN SYSTEM CONSTRAINTS]
1. Surface Architecture: Flat neutral backgrounds (bg-slate-50 page background, white card background). No background gradients.
2. Typography Rules: All headers must be sentence-case (e.g., "User permissions"). No letter-spaced uppercase category kickers.
3. Micro-Copy: Keep action button text to 1-2 words ("Save changes", "Cancel"). Input placeholders must be concise nouns ("Filter by name").
4. Anti-Slop: Do not add decorative pulsing status dots, glossy borders, or artificial card numbering.
5. Tokens: Use standard Tailwind spacing classes (p-4, gap-3, space-y-4).
Prompt Template 2: For ChatGPT (Custom Instructions or Web Interface)
Add these rules to your Custom Instructions in ChatGPT (GPT-4o / O3 models) or paste them before requesting UI code:
Act as a Principal Design System Engineer specializing in clean, enterprise frontend components.
Whenever I ask you to write HTML, CSS, React, or Tailwind components, follow these Anti-AI UI Rules:
- Never generate purple or neon gradients. Use clean, single-tone surfaces.
- Never place uppercase letter-spaced category tags above main titles.
- Never output arbitrary hex colors; use semantic CSS variable classes or standard Tailwind values.
- Keep component spatial density clean and compact without excessive padding gaps.
- Avoid decorative badges, unneeded icons inside form fields, or artificial step numbering ("01.", "02.").
- Write all copy in clean, direct human tone without bot explanation paragraphs.
Comparing Output: Vibe-Coding vs. Anti-Slop Generation
| Prompt Approach | Input Prompt | Visual Result |
|---|---|---|
| Vibe-Coding | "Build a modern, tech-focused feature section for my SaaS app with nice gradients." | Purple and violet diagonal gradients, all-caps NEXT-GEN ANALYTICS kicker, pulsing green dot on static text, "Search for your enterprise options..." placeholder, thick neon borders. |
| Anti-Slop Structured | "Build a high-density SaaS feature section using sentence-case headers, flat slate surfaces, semantic buttons, and concise placeholders." | Flat white card on light grey background, clean 20px slate header "Platform features", "Search features" input, subtle 1px borders, compact layout. |
Building a Continuous AI Design Verification Workflow
Adding guidelines to context files helps prevent initial drift, but enforcing long-term quality requires automated verification. Integrating auditing tools into your pipeline ensures AI-generated code meets standards before merging.
- Generation: AI tool (Claude Code / Cursor) generates frontend code under local
CLAUDE.mdor.cursor/rulesconstraints. - Static Audit:
unslop-mcpanalyzes the diff against 72 visual craft rules, flagging non-standard tracking or inline hex overrides. - Viewport Verification:
Taste Skillruns headless layout checks to confirm spatial density and line-wrap rules. - Code Review: Developer audits component semantics prior to merging.
1. Static Audit Automation with unslop-mcp
Integrate unslop-mcp into your pre-commit hooks or local development scripts to audit components against 72 design craft rules automatically.
If the linter finds non-standard tracking, unmapped hex codes, or arbitrary margins, it prints exact file locations and exports a refactor blueprint for your agent to execute.
2. Headless Viewport Checks with Taste Skill
For agents executing inside headless environments or test runners (like Playwright), tools such as Taste Skill allow agents to inspect visual snapshots of rendered components.
The agent checks visual density and spatial scaling against reference criteria, catching alignment defects or awkward text breaks before opening a pull request.
3. Reviewing Code as a Design System Auditor
When building with tools like Claude Code or Cursor, shift your focus from writing raw syntax to reviewing design system compliance:
- Are headings formatted in sentence-case?
- Is letter-spaced uppercase text removed?
- Are form placeholders limited to short noun phrases (1–3 words)?
- Are container surfaces flat and semantic, with zero arbitrary gradients?
- Are glowing status dots and artificial card index numbers absent?
- Are spatial spacing and colors mapped to standard design tokens?
Setting strict boundaries keeps software interfaces readable, accessible, and aligned with your core product requirements. If your product needs a custom design system or enterprise frontend architecture, explore our specialized Service: UI/UX Design and Service: SaaS Development teams.
Frequently asked questions
What is AI UI slop?
AI UI slop refers to visually repetitive, over-designed UI code generated by Large Language Models. Typical indicators include dark purple gradients, small uppercase headers with extreme letter spacing, decorative green pulse dots on static text, and conversational form field placeholders.
Why do Claude Code and Cursor generate generic templates by default?
LLMs are trained on vast public codebases and template sites that feature recurring SaaS landing page styles. Because models write code without continuous visual canvas feedback, they combine visual decorative elements to simulate completeness unless restricted by design system constraints.
How do context files like CLAUDE.md and .cursor/rules prevent visual drift?
Configuration files like CLAUDE.md, .cursor/rules, AGENTS.md, and SKILL.md reside in your repository root and load rules directly into the agent's context window. They define explicit boundaries for typography, color usage, margins, and component structure before any code generation occurs.
How do W3C Design Tokens prevent AI models from generating random CSS values?
The W3C Design Token (DTCG) specification provides a JSON schema defining exact colors, typography tiers, and spacing scales. Referencing this schema in your prompt or system configuration forces AI tools to map styling to defined theme variables instead of inventing arbitrary hex values or padding numbers.
Can open-source anti-slop tools refactor existing UI code automatically?
Yes. Tools like unslop-mcp audit existing codebases against visual design rules and generate structural refactor plans for React, Vue, Svelte, and Tailwind CSS. AI agents can process these output plans to replace visual clichés with standardized components.
Take Control of Your AI Frontend Workflow
Using AI agents to generate UI components should increase delivery speed without degrading visual quality. By defining explicit design rules in CLAUDE.md or .cursor/rules, connecting design token schemas, and auditing changes with tools like unslop-mcp and Taste Skill, you ensure generated components remain clean, functional, and production-ready.
If you are planning a software project, mobile application, or SaaS system and need an engineering team to establish a clean, scalable frontend architecture, we can help. Start a project with Pen Programmer to discuss your product requirements with our team.
Sources
- github.com/Leonxlnx/taste-skill
- github.com/dev-ik/ai-design-rules
- github.com/marketplace/actions/unslop-anti-ai-slop-ui-design-craft-linter
- github.com/erkamyaman/unslop-anything
- github.com/felipebasurto/unslop-ui
- github.com/superdesigndev/superdesign-skill
- github.com/bitjaru/styleseed
- github.com/topics/ai-rules
- #AI Coding
- #UI UX Design
- #Frontend Development
- #Claude Code
- #Cursor
- #AI Integration
- #Beginners
- #Fine-Tuning
Working on something similar?
We help teams design, build and scale software like this. Tell us about your project.
Start a projectKeep reading
Local LLM Fine Tuning Compute: Use Team Idle GPUs Overnight
Local LLM Fine Tuning Compute: Use Team Idle GPUs Overnight
Learn how engineering teams use TorchTitan, DiLoCo, and QLoRA to pool idle developer workstation GPUs overnight for private local LLM fine-tuning.
By Imdadullah Babu
Learn Programming in 2027: A Complete Roadmap for India
Learn Programming in 2027: A Complete Roadmap for India
A realistic, zero-cost 6-month roadmap to learn programming from scratch in India, written by engineers who built apps with over 5 million downloads.
By Imdadullah Babu

How to Use Claude Ship AI Code Review in GitHub PRs
Following Anthropic's historic Nasdaq debut, the launch of Claude Ship introduces autonomous GitHub agents for code reviews, policy enforcement, and PR approvals.