Beyond-UI (@unicornlove/beyond-ui) is the UI library for the design system. This doc summarizes why it exists and how it compares to the previous UI package.
@unicornlove/ui to @unicornlove/beyond-ui incrementally. See MIGRATION.md.| Aspect | Previous (@unicornlove/ui) | @unicornlove/beyond-ui |
|---|---|---|
| Runtime deps | Heavy (theme compiler, table, editor, DnD, etc.) | Minimal (e.g. lucide-react-native); optional/peer for maps, rich text, DnD |
| Theme | Theme-builder, HSL-based | Token-based (colors, spacing, typography, borders, shadows, breakpoints) |
| Styling | Stack components, $tokens |
Inline styles + style factories, same tokens |
| Layout | Stack-based | Stack, Row, Grid, Box |
| Responsive | useWindowDimensions, media in config | useResponsive, useWindowDimensions, Show/Hide, Grid |
| Platform | .native / .web file splits | Platform.OS and optional .web files |
Beyond-UI adds accessibility (FocusGuard, LiveRegion, SkipLink, useFocusTrap, useFocusRing), animation (AnimatedView, transitions, spring/timing configs), form (Fieldset, FormField, FormRow, FormActions), CommandMenu, Sidebar, Stepper, PasswordStrength, and others, while staying dependency-light.