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.
- 64 components: from Button and Dialog to 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, plus blocks and charts, at ui.hyuskui.com.
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, Hover Card, Input, Input Group, Input OTP, Item, Kbd, Label, Marker, Menubar, Message, Message Scroller, Navigation Menu, 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
License
MIT