Architecture
Hozo shares the decisions it can make at build time. It does not try to make the two platforms run the same host code. Web output can use a DOM element and CSS; Native output can use a React Native host and styles.
From source to a target
Section titled “From source to a target”- Read the source and project configuration. An integration such as Vite or Metro hands the compiler the source and the available project styling context. Supported primitives and style inputs are recognized here. An existing React Native app is not automatically converted: Migration Audit reports where work remains.
- Make shared decisions. The Rust compiler records the style and semantic information it can establish. For example, the same Tailwind precedence rules apply before either backend emits output. Diagnostics explain input that could not be resolved or represented; they are a report, not a third input to the backends.
- Emit for the target. The Web backend can emit a semantic element, a CSS class and ARIA attributes. Native can emit a platform component and a React Native style. A compound widget may keep its runtime owner on either target.
What stays at runtime
Section titled “What stays at runtime”A known literal such as className="p-4" can become output without a
class lookup at render time. A class selected at runtime still needs the
appropriate dynamic style path. Focus, events and
interactive widget state still belong to the runtime. A static style does
not mean the entire component is static.
How the packages stack explains what runs in the build and what ships with your app. For the design behind ordering, text inheritance and runtime ownership, start with RFCs. For evidence of specific behaviours, use the Conformance Matrix and known limits.