@stylexjs/stylex 0.19.0•a second frontend

StyleX, read into the same compiler

Hozo reads static stylex.create sheets and stylex.props spreads into the IR its Tailwind classes go into, then lowers both through the same Web and Native backends. Whatever it does not lower stays with the official StyleX transform, which runs after it.

Six samples, compiled when this page was built

Each tab is one source file through both backends, with every diagnostic the compiler raised.

A className and a StyleX spread on one element become one class on the Web and one style on Native. The conditional argument keeps its guard.

Source

Source
const styles = stylex.create({  root: { padding: 16, backgroundColor: '#2563eb' },  active: { opacity: 0.7 },})export function Card({ active }) {  return <View className="rounded-xl" {...stylex.props(styles.root, active && styles.active)} />}

Web

Web
<div className={["hozo-view hozo-0", (active) && 'hozo-cond-311-317'].filter(Boolean).join(' ')}></div>.hozo-0 {  border-radius: 12px;  padding-top: 16px;  padding-right: 16px;  padding-bottom: 16px;  padding-left: 16px;  background-color: #2563eb;}.hozo-0:where(.hozo-cond-311-317) {  opacity: 0.7;}

iOS and Android

iOS and Android
return <View style={[hozoStyles.hozo0, (active) && hozoStyles.hozo0_cond_311_317]}></View>// hozoStyles{  hozo0: {    borderRadius: 12,    paddingTop: 16,    paddingRight: 16,    paddingBottom: 16,    paddingLeft: 16,    backgroundColor: '#2563eb',  },  hozo0_cond_311_317: {    opacity: 0.7,  },}

No diagnostics.

How the two transforms share a file

Hozo runs first

Hozo needs the stylex.props spread as written. Run StyleX first and the spread is already a second className, and JSX's last-one-wins has lost what was needed to combine the two. Put hozo() before the StyleX plugin in Vite; Metro's wrapper already hands its output on.

StyleX's order, kept

StyleX 0.19's property-specificity mode is resolved before the IR, so a physical longhand still beats a later shorthand on both platforms. There is no runtime priority machinery.

Half a rule is fine

When one rule mixes supported and unsupported properties, Hozo lowers what it can and rebuilds the rest as a smaller stylex.create for the official transform. Where the two halves would overlap, it leaves the whole rule alone rather than guess at the cascade.

Sheets from other files

A static sheet can live in another module and arrive through named, star or namespace re-exports. Vite, Next and Metro feed their own alias resolution into the module registry.

Still with StyleX: createTheme, dynamic styles, unsupported nested selectors and at-rules, sx, and conflicts whose Native answer depends on writing direction or a richer Grid model. Each is reported as STYLEX_NOT_LOWERED, not approximated.

Measured against StyleX

From the conformance snapshot (pnpm --filter @hozo/tailwind-conformance report). Property names are an upper bound: each property still accepts only the static values the IR can represent. The practical corpus is the stricter measure, because a case counts only when the Web output agrees with the official StyleX Babel plugin.

Property names505 / 522

Of every name StyleX's types publish. The other 17 are shorthands StyleX itself rejects by default, @font-face descriptors, or obsolete.

Compiler-relevant504 / 504

The reviewed surface, without the optional Native backdropFilter adapter.

Universal134 / 134

Names React Native has, or has an exact compile-time equivalent for.

Web-only349 / 366

Lowered on the Web; on Native, refused by name.

Contextual21 / 21

Names that need a runtime on Native: Grid tracks, containers, transitions.

Values349 / 349

Representative values, each through both compilers and the official plugin.

Constructs19 / 19

Common ways of writing create and props.

Scenarios271 / 271

Declarations across card, typography, input, scroll, motion, grid and border scenarios. 0 silent failures.

The full report

The conformance page has these numbers beside Tailwind, ARIA and the Native component tree.

See the conformance report →