dislop AI slop linter · v0.8.2

Fixing AI Slop in Web UI: Beyond Purple Gradients, Pill Soup, and Dead Buttons

DIRECT ANSWER

AI-generated web UIs look interchangeable when they fall back on purple-pink gradients, pill-badge walls, 3-level nested cards, fake macOS window dots, and dead href='#' buttons. Replace template chrome with 1px structural grids, clear type hierarchy, and deterministic HTML/CSS linting.

Ask a coding agent to scaffold a landing page or admin dashboard, and eight times out of ten you get the same template. It puts blurred purple orbs on the background, adds gradient hero text, draws fake macOS window dots above pastel icon cards, and wires "Get Started" to href="#".

That convergence is why design skills like Anthropic's frontend-design (198,134 stars) and pbakaus/impeccable (114,155 stars) gained rapid adoption. Fixing it does not require rewriting your stack—it requires catching template habits automatically before merge.

1. Seven UI defects that scream "generated template"

Rule IDWhat appears in codeWhy it hurts usersClean fix
ui-dead-control<a href="#">Download</a> or unexplained <button disabled>Hard functional bug; users click controls that go nowhereWire real destinations or remove unbuilt actions
ui-ai-gradientfrom-indigo-500 via-purple-500 to-pink-500 clipped textInstantly marks a generic SaaS template and lowers contrastUse crisp solid ink and reserve a single brand accent
ui-pill-soup7+ rounded-full pill tags stacked on one cardDrowns out the one status badge users actually needFormat routine metadata as plain ·-separated text
ui-box-in-boxThree nested border rounded-xl p-4 wrappersEats mobile viewport width with repetitive paddingUse alignment, whitespace, or single 1px dividers
ui-prompt-echo-badgeEyebrow stickers saying "AI-Powered · Zero Hallucination"Echoes marketing prompt slogans instead of product functionName the concrete behavior ("Runs offline locally")
ui-glow-blob-chromeblur-3xl neon background orbs and animate-ping dotsVisual noise with zero information valueRemove decorative orbs; separate layers with surface tone
ui-template-card-grid01/02/03 eyebrow numbers, fake window dots, 🚀✨🛡️ iconsMakes every feature section look identicalLead with direct headings and real product screenshots

2. Before and after markup

bad:
<div class="border rounded-xl p-6 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500">
  <span class="rounded-full px-3 py-1">AI-Powered · Zero Hallucination</span>
  <h3>🚀 Blazing Fast Audits</h3>
  <a href="#">Download Report</a>
</div>

good:
<section class="surface-sheet">
  <span class="section-meta">Local offline engine</span>
  <h3>50ms checks with zero uploads</h3>
  <a href="./report.html">Download report</a>
</section>

For inline <svg> diagrams, check two additional failure modes: large canvases missing an explicit viewBox (which clip on mobile) and overlapping <text> coordinates.

Web UI audit flagging purple-pink gradients, pill soup, prompt-echo badges, and dead href='#' buttons before switching to a 1px paper sheet
4. Web UI audit: strip gradients & dead controls UI audit · 6.8s
Flags indigo-purple gradients, prompt-echo badges, pill walls, and dead href='#' buttons before switching to a 1px paper sheet.

3. Keep pages grounded without heavy frameworks

  1. Adopt print-inspired constraints: Study modular grids and type pairings from Norm (Zurich), Fonts In Use, and Stiftung Buchkunst. Pair one readable UI sans-serif with a monospace font for code, rule IDs, and numbers, and enforce WCAG 2.2 AA contrast (>= 4.5:1 for text, >= 3.0:1 for control borders).
  2. Keep runtime dependencies minimal: Avoid third-party font CDNs or tracking scripts when static HTML/CSS solves the job faster.
  3. Gate HTML, CSS, JSX, and SVG in CI:
npx --yes dislop check site/ --pack deck-and-ui --fail-on warning

You can also drop any .html, .css, .jsx, .svg, or .png file directly into the browser workbench on the homepage to inspect UI slop locally without uploading files.

Frequently asked questions

Why do coding agents keep generating purple-indigo gradients and glow blobs?

Under generic prompts like 'modern SaaS landing page', models default to the highest-probability Tailwind patterns in their training mix: indigo-to-pink gradients, blur-3xl orbs, and three-column icon cards.

Can static code analysis actually catch AI UI slop without opening a browser?

Yes for structural and markup defects. Deterministic probes reliably catch dead href='#' anchors, unexplained disabled buttons, purple-pink gradient stops, 7+ rounded-full pills per view, 3-level nested borders, and SVGs missing viewBox or overlapping text coordinates.

What references help teams move beyond SaaS templates?

Browse independent print, foundry, and editorial archives such as Norm (Zurich), Fonts In Use, and Stiftung Buchkunst. Rely on grid proportions, 1px hairline rules, and real product specimens instead of glowing card chrome.

Next guides

Verified references