Anti-Slop UI Rules for React 19, Tailwind CSS v4 & Coding Agents

How to stop AI coding assistants from generating generic purple gradients: single neutral ramps, 4px spacing grids, tabular numerals, and AGENTS.md constraints.

1. Pick One Temperature-Matched Neutral Ramp

Mixing cool slate grays with warm off-white surfaces creates subtle muddiness. Lock your canvas, raised card surface, hairline border, and secondary text to one Graphite or Warm Paper CSS custom property ramp.

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: rgba(23, 23, 23, 0.1);
  --ink-2: #525252;
}

2. Enforce tabular-nums on Financial Tables & KPIs

Proportional digits cause columns and live counters to jitter horizontally whenever numbers update. Apply font-variant-numeric: tabular-nums on every metric card, invoice cell, and chart axis.

.metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

3. Put Design Constraints Directly in AGENTS.md

Code agents revert to gradient pills and random shadow glows unless explicit forbidden patterns live in your repo root AGENTS.md or CLAUDE.md.

# AGENTS.md Rule
- No multi-hue hero gradients or glowing box-shadows
- Keep spacing strictly on multiples of 4px (4, 8, 12, 16, 24, 32)
Open Free React 19 Token Starter (MIT) Get QuietCraft UI Pro 16-Block Kit ($2.00 w/ FIRST10)