layout-discipline
Standardize typography, spacing, cards, and color tokens in AI-generated HTML.
Standardize typography, spacing, cards, and color tokens in AI-generated HTML.
Layout Discipline gives Claude and other agents a fixed set of typography, 4-pixel spacing, alignment, card, color-token, and vertical-rhythm rules for generated web pages and HTML demos. A zero-dependency checker can flag off-grid spacing, unsupported font sizes, and raw hex colors by line before delivery. Because it scans text rather than parsing a full CSS syntax tree, hex values in documentation can produce false positives.
Resource types
Use cases
Platforms
Public GitHub facts last synced Jul 10, 2026.
Build scroll-driven 3D websites from tested templates and reusable creative-development patterns.
Preview visual directions first, then let Claude build the selected website.
Replicate a mobile UI screenshot as an interactive, styled HTML demo.
Create and maintain Storybook stories for React, Vue, and Svelte components.