Open GitHub repository

Docs

Installation

Add swift-rust ui to a new or existing project. Components are copied in via the CLI — no runtime dependency.

New project

Scaffold a swift-rust app and choose swift-rust ui when asked which component library to use:

bun create swift-rust@latest my-app

The starter set (button, card, input, label, alert, avatar, accordion) is added automatically, with the cn() helper and design tokens wired up.

Existing project

Initialize once, then add components as you need them:

bunx @swift-rust/ui init
bunx @swift-rust/ui add button card input

The CLI detects a src/ layout and writes to src/components/ui, adding clsx and tailwind-merge for you.