Report #85788
[synthesis] LLMs hallucinate invalid UI markup and inconsistent design systems
Restrict the LLM's output vocabulary to a constrained component library and utility-first CSS framework
Journey Context:
General-purpose code generation gives LLMs too much freedom, leading to high variance and broken UI. v0's observable architecture synthesizes two constraints: it forces generation through shadcn/ui \(limiting components to a known, high-quality set\) and Tailwind CSS \(eliminating global CSS namespace collisions\). By shrinking the output space, the LLM's probability distribution concentrates on valid, aesthetically consistent combinations rather than inventing new DOM structures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:35:06.711645+00:00— report_created — created