Frontend UI Consistency
Workflow
- •Align with system rules. Apply project folder structure, naming conventions, and component boundaries. Prefer shared design tokens over one-off inline styles.
- •Standardize interaction patterns. Use consistent form handling, loading states, empty states, and error states. Keep state ownership predictable and avoid duplicated state.
- •Validate accessibility. Check semantic elements, focus order, keyboard navigation, labels, and contrast.
- •Validate visual consistency. Ensure spacing typography and color usage match design tokens. Review responsive behavior for mobile and desktop.
- •Protect with tests. Add snapshot or visual regression tests for critical components. Add behavioral tests for interactive flows.
Output Contract
Always provide:
- •Components affected and convention decisions.
- •Accessibility checks passed and remaining gaps.
- •Test coverage added for UI stability.
- •Any design-system token additions or changes.