How to stop AI coding assistants from generating generic purple gradients: single neutral ramps, 4px spacing grids, tabular numerals, and AGENTS.md constraints.
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;
}
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;
}
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)