ui

Treat the reference UI or specification as an executable visual contract, not inspiration.

UI (@hanzo/ui + Visual Parity by Measurement)

Treat the reference UI or specification as an executable visual contract, not inspiration. Preserve working business logic, data model, semantics, and accessibility while making every visible state converge across mobile, duo, laptop, and desktop viewports.

1. Substrate Rules (@hanzo/ui + @hanzo/gui + @hanzo/design)

2. Convergence Order

Never begin by polishing individual components. Converge in dependency order:

  1. capture conditions
  2. shell geometry
  3. typography metrics
  4. spacing and control primitives
  5. screen topology / information architecture
  6. compound components
  7. state families and data-dependent regions (loading · empty · failure · populated-minimal · populated-realistic)
  8. responsive layouts (mobile · duo · laptop · desktop)
  9. pixel-level cleanup

A lower-level mismatch invalidates measurements below it. If the shell shifts every child, fix the shell and remeasure. If typography changes wrapping, fix type before vertical spacing.

3. Hard Verification Rules