Audit of 20 Design Systems Reveals Rampant Spacing Inconsistency in Codebases
A developer audited 20 public design systems using Rhythmguard, a Stylelint plugin for spacing scale enforcement, and found widespread spacing drift across major projects. Mastodon led with 564 off-scale spacing values despite having a well-defined custom property scale, while even established systems like Carbon and Bootstrap showed hundreds of inconsistencies. The audit found that just three recurring pixel values typically account for two-thirds of all drift in a codebase, suggesting targeted fixes can resolve most issues efficiently. However, the audit also exposed tool limitations: Sass-based systems using functions like spacing() or $spacer obscure literal values, meaning a clean report does not guarantee consistent spacing. False positives were also flagged, such as 1px focus-ring offsets and percentage-based transforms, which accounted for nearly half of findings in some repos.
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