Zero Legacy
The props/token contract, palette theme engine, Tailwind preset and layout primitives that @sigx/lynx-daisyui and @sigx/lynx-heroui build on. Frozen: no new features.
Installation
pnpm add @sigx/lynx-zero-legacyAbout
@sigx/lynx-zero-legacy is the design-system foundation that @sigx/lynx-zero was up to lynx 0.27. In lynx 0.28 it took this name, and @sigx/lynx-zero was rebuilt on the zero contract. The code is the same as before the rename.
It is frozen: it gets fixes only, no new features, and it is wound down once the zero-contract stack reaches component parity. Two design systems still build on it, @sigx/lynx-daisyui and @sigx/lynx-heroui, and they re-export what they use from it. An app on either one normally never imports this package directly.
What it holds:
- The props/token contract:
SizeScale,ColorVariant,ColorToken, and prop fragments such asWithColor,WithDisabledandPressEvent. - The palette theme engine:
registerThemewith full palettes,ThemeProvider,themeController,StatusBarSync, anduseThemeColorsfor native widgets. - The Tailwind preset (
./preset) and the.lynx-zerotoken stylesheet (./styles/tokens.css). - Layout primitives (
Row,Col,Center,Spacer,ScrollView) andSwiperIndicator.
It is versioned in lockstep with the rest of the Lynx module family.
Next steps
- Usage: the theme engine, the contract types and the preset.
- API reference: every export.
- Migrating to
@sigx/lynx-zero.
