Audits
How the frontend components and design system audit works
See how Enji Guard compares shared design rules and component contracts with the interfaces that use them.
Audit page Frontend components and design system auditWhat this audit answers
How consistently does an interface apply its shared components and design rules? Any project with a user interface can be assessed. The audit looks at how a contributor finds the current guidance and how the implemented screens follow it.
What Enji Guard inspects
Enji Guard traces guidance from repository instructions, design references, examples, and token or theme definitions to component exports and page consumers. It compares equivalent forms, lists, navigation, and other repeated UI families across workflows, states, breakpoints, and themes. It checks how variants and overrides resolve in code.
The audit distinguishes explicit requirements, component contracts, and conventions inferred from comparable uses. The comparison accounts for deliberate brand, platform, and workflow differences, and checks whether a contributor can discover which rule applies when guidance overlaps.
Diagnostic criteria
The report rates applicable criteria from 0 to 5. An inapplicable criterion or one with insufficient evidence has an explanation in place of a rating.
- Design guidance. Check whether current requirements, scope, and precedence are easy to find.
- Shared components. Trace equivalent uses to common components, justified variants, or independently maintained copies.
- Variants and states. Compare sizes and applicable focus, disabled, loading, empty, error, and selected states with component contracts.
- Color, spacing, and sizing. Follow shared scales and semantic tokens into consumers.
- Typography and icons. Check text roles, font settings, and icon families, sizes, and alignment.
- Page patterns and responsive behavior. Compare equivalent layouts and flows across breakpoints.
- Overrides and themes. Trace specificity, wrappers, and theme modes to see how they affect shared behavior.
- Guidance and implementation. Compare current examples and rules with actual components, consumers, and exceptions.
How evidence becomes findings
A finding names the applicable rule or a specific gap in guidance, the affected workflow and state, and the source evidence showing drift or a maintenance cost. For example, it can trace a local override that removes a shared focus state in several forms. The structured report includes a summary, findings and confidence, diagnostic criteria, recommendations, scope limits, and a score when supported. A recommendation identifies which consumers to compare and the behavior to verify.
Low covers minor inconsistency or unclear guidance with limited effects. Medium covers a bounded contract violation, unjustified duplication, or fragmented guidance that makes routine choices harder. High requires systemic violations that impair important tasks or make major surfaces materially inconsistent, or missing or contradictory core requirements across major UI families. The audit assigns severities up to High. Unconfirmed opportunities can appear as Info.
How the score works
Enji Guard calculates scores the same way across audits. The calculation starts at 100 and deducts 25 points per Critical finding, 14 per High, 7 per Medium, and 3 per Low. Info findings deduct zero. The calculation counts each independent root cause once when the evidence supports medium or high confidence. One Critical or at least two High findings cap the result at 69. The final score stays within 0–100. Diagnostic criterion ratings do not enter the calculation.
Limitations and boundaries
This read-only audit evaluates the project’s own design rules. Visual taste, redesign proposals, and independent compliance assessments sit outside its scope. Source evidence can establish how a rule resolves. Measured geometry or contrast requires a render. When useful, an isolated fixture or page with synthetic data can help verify the affected state.
Review and rerun
Check the recommendation against equivalent consumers, including the theme, state, and viewport implicated by the finding. After a change, rerun against the new commit and check whether consumers and guidance now agree.
Enji Guard