UI Library
1.0.0Design system primitives from @app-factory/ui and usage guidance.
Cross-platform primitives
@app-factory/ui provides React + React Native compatible components. Each component exposes web + native entry points so generated apps share the same design tokens.
import { Button, Card, InputField } from '@app-factory/ui/web';
Buttonsupports primary/secondary/ghost variants with Tailwind-friendly classNames.Cardwraps layout primitives with padding + shadow defaults.InputFieldintegrates labels, validation, and helper text.
Design tokens
- Spacing, colors, and typography live under
packages/ui/tokens.ts. - Tailwind config consumes tokens for the web; React Native consumes them through StyleSheet factories.
Storybook
View
CLI
pnpm --filter @app-factory/ui storybook:webGuidelines
Info
Prefer UI primitives over bespoke component styling in generated apps. Shared components ensure white-label apps stay on-brand and accessible.
- Add new components inside
common/ui/src/componentsand export viaindex.ts. - Update Storybook stories to document props and usage.
- Run
pnpm --filter @app-factory/ui testafter changes to keep snapshot tests in sync.