Saer CLI Infers the Design System a Frontend Codebase Actually Uses
A developer has built Saer, a command-line tool that scans an existing frontend codebase to infer the design system the code truly uses, rather than the one declared in configuration. The beta reconciles Tailwind config, CSS custom properties, and React components into one model covering colour, type, spacing, and components. Findings are separated by confidence: exact drift where a raw value bypasses a declared token, dead declarations, and experimental near-match and conflict findings with confidence scores. The author describes testing that caught errors such as misread nested CSS themes, which led to a structural CSS parser and a whole-report evidence rating. The tool also distinguishes between 'unknown' from insufficient repository evidence and 'unresolved' from limits of the tool itself. Scanning is local and deterministic, with no AI model running at scan time.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in