rune-ui

A component library for Rune, the Rust native UI framework. A CLI copies each component into your app, where it is yours to edit, and themes are plain data.

Status
In progress
Year
2026
Role
· Everything
  • Rust
  • Rune
  • GPU rendering
  • CLI
  • Design system

What it is

Rune is a GPU-rendered Rust UI framework. It draws the pixels and handles input; it does not come with a design system. rune-ui is that missing layer, and it follows the shadcn/ui model: you don't depend on a component package, you copy the components into your own app and own them from then on.

A style system, the components, and themes stored as data sit on top of Rune's own behaviour crate. A CLI does the copying and keeps a lockfile, so it can show you what drifted from the registry and merge upstream changes into your edits three ways.

Use it

The registry is embedded in the CLI. From a clone of the repo, point it at your app:

Set up an app

cargo run -p rune-ui-cli -- init --app ../my-app

Copy components in

cargo run -p rune-ui-cli -- add button select dialog --app ../my-app

Check nothing drifted

cargo run -p rune-ui-cli -- diff --check --app ../my-app

init adds the dependencies and Rune's patch table, copies the base files and writes rune-ui.lock. add copies each item and everything it needs into src/ui/, and never overwrites a file you changed unless you pass --force. rune-ui list shows every item and the state of your copy, and rune-ui update merges registry changes into your edits.

Then add mod ui; and build from the copies:

let t = rune_ui_themes::theme(cx.system_dark());
ui::button::Button::new("save", "Save")
    .on_press(|s: &mut App| s.save())
    .build(&t)

Anything that opens over the page, such as a select, dialog or palette, pushes its surface into one overlay layer that the view mounts once at the root. That is what keeps overlays anchored to their trigger, flipping near the window's edge, and closing on Escape.

The gallery

rune-ui ships a gallery app: every component in every state, in light and dark, with a theme editor beside it. Run it with cargo run -p gallery, or add the same page to your app with rune-ui add gallery.

The pictures below are headless renders of that gallery, with placeholder content, cropped to the top of each group. Follow the site's theme or pick one.

Gallery appearance
Actions, rune-ui gallery render
Actions — Buttons and toggles in ink, raised, outline and ghost, with ActionBar and Toolbar.
Form, rune-ui gallery render
Form — Input, OTP, radio, select, slider, switch and the rest: wells hold values, tracks hold a raised thumb.
Menus and overlays, rune-ui gallery render
Menus and overlays — Dialog, command palette, menus, popover and sheet, on one floating material.
Structure, rune-ui gallery render
Structure — Accordion, tabs, table, tree, sidebar and split: one surface divided into rows.
Display, rune-ui gallery render
Display — Alert, avatar, badge, chart, progress and toast: colour is state, never alone.
Agent, rune-ui gallery render
Agent — Conversation, tool calls, permissions, diffs and a prompt box for apps built around an agent.
Materials, rune-ui gallery render
Materials — The surfaces everything is drawn from, with every state of each.
Typography, rune-ui gallery render
Typography — A type scale, tabular figures and nine font items you can copy in.

Where it stands

Version 0.12.0. Rune has no releases, so each rune-ui release is built and tested against one pinned Rune revision, and an app uses that same one. Components are tested by pressing real keys and moving a real pointer through the live path, not just by rendering them. It is MIT licensed, and young enough that the changelog says what moved.

View repository