Treat the reference UI or specification as an executable visual contract, not inspiration.
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.
@hanzo/ui and @hanzo/gui (YStack, XStack, Box, View, Text, Button, Input, Textarea, Card, Separator).$ink, $soft, $faint, $edge, $sunken, $hover, $1–$8) so light and dark themes resolve automatically without hardcoded hex overrides.Zen and Zen Mono variable font families ($sans, $mono, $heading).Never begin by polishing individual components. Converge in dependency order:
loading · empty · failure · populated-minimal · populated-realistic)mobile · duo · laptop · desktop)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.
loading, empty, failure, populated), each entered deliberately by a deterministic fixture or live API seed.hasRenderedTextRect && intersectsScope && intersectsAllClippingAncestors && !hiddenByAncestor).opacity: 0, offscreen transforms, zero-height clips, or closed disclosures to pass a census.