Paste static JSX exported by Paper anywhere on the page and get StyleX source
that uses tailwind-stylex tokens.
The generated source is copied to the clipboard automatically.
npm install
npm run devThe app uses Next.js 16, Tailwind CSS 4, and source-copied Million UI
components. The Million UI registry URL in components.json is local because
the registry is not publicly hosted. Existing copied components do not need the
registry during builds or deployments.
- Static
classNamestrings becomestylex.props(styles.nodeN)spreads. - Standard Tailwind values use exports from
tailwind-stylex/tokens.stylex. - Paper fractional spacing and arbitrary values stay exact.
- Static inline
styleobjects become StyleX declarations. - Dynamic inline style expressions stay in place.
- Unsupported utilities stay in
classNameand appear in the result summary.
Generated code expects @stylexjs/stylex and tailwind-stylex in the target
project, plus the target framework’s normal StyleX compiler setup.
npm test
npm run typecheck
npm run lint
npm run buildThe fixture tests cover token conversion, exact arbitrary values, static inline styles, unsupported class preservation, and source without static styles.
Suisse Intl ships with Million UI and is included. Berkeley Mono remains on the
system mono fallback because its license is per seat. The Million UI copy mark
also needs CENTRAL_LICENSE_KEY; automatic clipboard copy works without that
licensed icon package.