hyuskui
Beautifully designed components for GPUI, the GPU-accelerated Rust UI framework behind the Zed editor. Copy them into your app with one command and make them your own, the way shadcn/ui does for React.
This crate is the CLI. It doesn't add a dependency to your app: cargo hyuskui add button copies the component's Rust source into your src/, where it's yours to read and change.
- 66 components: from Button and Dialog to Form, Onchain, Data Table, Sidebar, Calendar and Chart.
- One theme: every color and radius in a single
src/theme.rs, with light and dark built in. - Icons: the Lucide set and brand marks in
src/icons.rs, installed with any component that needs them. - Works offline: the whole registry is built into the binary.
Browse every component live at ui.hyuskui.com, along with:
- AI Elements: 21 patterns for agent apps, such as Chat, Prompt Input, Reasoning, Tool, Plan and Terminal, built from these components.
- Crypto Elements: 17 patterns for wallets and dApps on EVM, Solana and Bitcoin, such as balances, swaps, gas estimates and transaction status.
- Blocks: whole screens such as dashboards, sidebars and login pages.
- Charts: area, bar, line, pie, radar and radial charts drawn natively.
- Create: pick a base color, accent, radius and font, then copy the generated
theme.rs. - Figma: the theme tokens and components as a Figma design file.
Install
It installs cargo-hyuskui, so you run it as cargo hyuskui.
Quick start
1. Add GPUI. The crates.io release of GPUI lags behind, so hyuskui is tested against a pinned Zed commit:
# Cargo.toml
[]
= { = "https://github.com/zed-industries/zed", = "a36d4850f3c087bfef8a3552e2e15d72d97efdf4" }
= { = "https://github.com/zed-industries/zed", = "a36d4850f3c087bfef8a3552e2e15d72d97efdf4" }
Zed builds with a specific Rust version; pin the same one:
# rust-toolchain.toml
[]
= "1.100.0"
2. Add components.
3. Use them.
use ;
use ActiveTheme;
use Button;
;
Commands
| Command | What it does |
|---|---|
cargo hyuskui init |
Writes src/theme.rs, creates src/ui/mod.rs, and declares both modules in main.rs or lib.rs. |
cargo hyuskui add <name...> |
Copies components into src/ui/ with everything they depend on, and registers them in mod.rs. --all adds every component; --overwrite replaces files you already have. |
cargo hyuskui add icons |
Adds src/icons.rs on its own. |
cargo hyuskui list |
Lists every component. |
cargo hyuskui diff <name> |
Shows how your copy differs from the registry, before you overwrite it. |
Run it anywhere inside your project; it finds the nearest Cargo.toml. Pass --path to point it elsewhere.
Components
Accordion, Alert, Alert Dialog, Aspect Ratio, Attachment, Avatar, Badge, Breadcrumb, Bubble, Button, Button Group, Calendar, Card, Carousel, Chart, Checkbox, Code Block, Collapsible, Combobox, Command, Context Menu, Data Table, Date Picker, Dialog, Drawer, Dropdown Menu, Empty, Field, Form, Hover Card, Input, Input Group, Input OTP, Item, Kbd, Label, Marker, Menubar, Message, Message Scroller, Navigation Menu, Onchain, Pagination, Popover, Progress, Questionnaire, Radio Group, Resizable, Scroll Area, Select, Separator, Sheet, Sidebar, Skeleton, Slider, Spinner, Switch, Table, Tabs, Textarea, Toast, Toggle, Toggle Group, Tooltip, Trace, Typography.
Platforms
GPUI runs on macOS (Metal), Linux (Vulkan, X11 or Wayland), Windows, and the web through WebAssembly; every preview on ui.hyuskui.com is the real component running in your browser.
Links
Contributing
This README is also the crate's page on crates.io (readme = "../../README.md"), so keep links absolute. cargo test in crates/hyuskui fails if the component count or list here falls behind registry/.
Repository layout
registry/: component sources (ui/*.rs,theme.rs), usage examples, andregistry.jsoncrates/hyuskui: thecargo hyuskuiCLI (cratehyuskui, binarycargo-hyuskui). It bundlesregistry/at build time.apps/www: the documentation site (Next.js).scripts/build-registry.mjsturns the registry into the site's data andpublic/r/*.json
Develop the site
Releases and deploys
- CI (
ci.yml) runs on every pull request. It checks the CLI (fmt, clippy, tests, a crates.io dry run), compiles every component and example through the WebAssembly previews, and lints, typechecks and builds the site. - Releases (
release.yml) work like shadcn/ui's changesets flow, using release-plz. Every push tomainopens or updates a release PR with the next version and changelog. Merging that PR publisheshyuskuito crates.io with trusted publishing and tags a GitHub release. - Deploys (
deploy.yml) build the GPUI previews, then deploy ui.hyuskui.com to Vercel:maingoes to production, and each pull request gets a preview URL.
License
MIT
