How it works
The registry, the CLI and the files they write into your project.
The registry
Every item is a JSON file in the shadcn registry format: its source files, the npm packages it needs, and the other items it builds on. Free items are public at /r/<name>.json, and /r/index.json lists every item, free and Pro, without Pro source.
The CLI
npx @swipeui/cli add <item>:
- reads the item and the items it depends on (for example,
buttonneedscn,textanduse-haptics); - writes their files under
components/swipeui/(insidesrc/when your project uses it); - rewrites imports between SwipeUI files to match your project: your path alias in Expo projects, relative paths in bare React Native apps;
- installs missing packages with
npx expo install(or your package manager in projects without Expo).
Each file starts with a version line such as // swipeui:button@1.0.0. Keep it: future outdated and diff commands use it to tell you what changed.
Styling
Items are styled with class names through Uniwind, using design tokens only: colours such as bg-primary, a radius scale and the iOS type scale. Change the tokens in your global.css and every item follows. See Tokens.
Using the shadcn CLI instead
The registry is shadcn-compatible, so npx shadcn add @swipeui/button works with the components.json that init writes. shadcn removes the version line from each file, though, so updates can't be tracked. Prefer the SwipeUI CLI.
AI tooling
An MCP server and a design skill are planned. They will let your coding agent search the registry, install items and keep a design profile in your repo. See AI and MCP for how they will work and what agents can use today.