Code audit
Frontend components and design system
Enji Guard checks how consistently your UI code uses shared components and design rules.
What did the design system audit find?
Connecting to Enji Guard via MCP…
Reading the latest design system audit…
Worked 4 s · Enji Guard via MCP ›
Score 86/100 — healthy. 2 findings:
- Medium riskCheckout button ignores the pending state
- Medium riskCatalog filter hides the shared focus ring
Fix them.
Fixing the checkout wrapper and filter…
Checking states in a local build…
Worked 33 s ›
Done. Both fixed and checked:
- The button shows progress and blocks clicks
- The filter uses the shared focus ring again
Tabbed through it locally. Ready for review.
What the audit checks
Eight areas, from design guidance to docs that match code.
Design guidance
Where rules live, which apply and which take priority.
Shared components
Do equivalent screens reuse the same components?
Variants and states
How variants, sizes and states reach the screen.
Color, spacing and size
Do shared values apply in equivalent contexts?
Typography and icons
Text roles, type styles, icon size and alignment.
Responsive patterns
How similar forms and layouts adapt across widths.
Overrides and themes
Do overrides and themes preserve shared behavior?
Guidance and code
Do docs and examples match the components in use?
From shared component to page
What a report can find at each step
Shared component
Find the exported component and its published contract.
Variants and states
Check variants, sizes and states against the component contract.
Props and wrappers
Follow the props passed through wrappers in equivalent flows.
Theme and local styles
Trace which tokens and overrides apply to each consumer.
Use on the page
Compare equivalent uses across screens and breakpoints.
What's in the report
- A 0–100 score
- Eight criterion assessments and findings with code locations
- Scope — what was checked and what wasn't
What the audit is not
- Does not require a formal design system
- Does not recommend a redesign based on taste
- Does not flag overrides without a proven mismatch
Connect a repository
GitHub or GitLab. The audit doesn't change your code.
Enji Guard