@candiesocean/craftui
v0.1.2
Published
Minimal React Native UI primitives for Expo apps using Uniwind, Pressto, and rn-squircle
Maintainers
Readme
craftui
Minimal React Native UI primitives for Expo apps using Uniwind, Pressto, and rn-squircle.
Installation
bun expo install @candiesocean/craftuiInstall the required peer dependencies in the host app as well:
bun expo install expo expo-image pressto rn-squircle uniwind react-native-gesture-handler react-native-reanimated react-native-workletsUsage
import { Button, Squircle, Text } from '@candiesocean/craftui';
// ...
<Squircle borderRadius={24} className="bg-card p-6">
<Text variant="title">Hello</Text>
<Button label="Continue" />
</Squircle>;Notes
craftuiis provider-free. It reads your Uniwind theme from CSS variables.- The host app should define the color tokens used by the library, such as
--color-primary,--color-foreground, and--color-border. Buttonstays generic on purpose. If your app has its own icon system, compose it through accessories or an app-side wrapper.- Keep token names semantic so different apps can skin the same components without changing library code.
Contributing
License
MIT
