Design Tokens as Lint Rules

Your design system probably has spacing tokens: --space-sm, --space-md, etc.

AI models don’t know about these. They’ll happily generate padding: 14px when your system expects multiples of 8.

The fix: encode tokens as lint rules. If a value doesn’t match a token, flag it.

# uilint.config.yaml
rules:
  spacing:
    allowed: [0, 4, 8, 16, 24, 32, 48, 64]
    severity: warning

This catches most spacing drift before review.