Skip to content
Back to skills

Ui Change

ASecurity

Make a visual change to Arakun's GPUI interface the way the project expects - use the theme and ui design tokens so design_lint passes, see the result in a headless test Arakun with `arakun dev`, take before and after screenshots, and update the docs for changed shortcuts or settings. Use when editing a view, panel, dialog, tab or component in src/, or when the user asks to restyle, lay out or fix how something looks.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
developmentgogitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add ArakunHQ/arakun --skill ui-change --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ui Change?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ui Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arakunhq-ui-change/badge)](https://www.skillsdirectory.com/skills/arakunhq-ui-change)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ui-change
description: Make a visual change to Arakun's GPUI interface the way the project expects - use the theme and ui design tokens so design_lint passes, see the result in a headless test Arakun with `arakun dev`, take before and after screenshots, and update the docs for changed shortcuts or settings. Use when editing a view, panel, dialog, tab or component in src/, or when the user asks to restyle, lay out or fix how something looks.
---

# Change the UI

## Use the design system

Colors, grays, text sizes, radii and fonts come from `core/src/theme.rs` and
`core/src/ui.rs`. Never write a value by hand where the system has a name.

| Need | Use |
| --- | --- |
| Text color | `theme::text()`, `text_muted()`, `text_subtle()`, `text_faint()` |
| Border | `theme::border_subtle()`, `border()`, `border_strong()` |
| Background | `theme::fill_raised()`, `fill_hover()`, `fill_selected()`, `surface(..)` |
| Status | `theme::success()`, `error()`, `attention()`, `link()`, `accent()`, `danger()` |
| Text size | `ui::TEXT_XS` .. `TEXT_LG`, `TEXT_TITLE`, or `.ty(Type::…)` |
| Radius, heights | `ui::RADIUS_*`, `BUTTON_H`, `INPUT_H`, `CONTROL_H`, `TOOLBAR_H`, `PAGE_PAD` |
| Font | `theme::FONT_SANS`, `theme::FONT_MONO` |
| Building blocks | `ui::button`, `icon_button`, `card`, `field`, `segmented`, `modal_panel`, `page_title`, and `core/src/ui/kit.rs` |

Read the code around you and reuse its components before writing new ones. The
Design system tab (Settings → Design system → Open) shows every token and
component; it is behind the `gallery` feature, which `--features extras` turns on. A new reusable component goes in `ui`, and shows up in
`src/gallery_view.rs`.

Screen readers only see what has a role and a label. The kit's controls set
both (`icon_button` takes its label, which is also its tooltip). A clickable
`div` of your own needs `.role(Role::…)` and `.aria_label(…)`, or
`ui::labelled(d, Role::Button, "Name (Ctrl+K)")`. A row that holds a `switch`
is the switch to them: `ui::as_switch(d, "Name", on)`.

`src/a11y_lint.rs` fails `cargo test` on an `on_click` element without a role.
Files that had some when it came in are counted in `src/a11y_baseline.txt`;
the count may only go down. Something clickable that is not a control (a
backdrop that closes a dialog) says why in an `// a11y: …` comment instead.

```sh
cargo test --locked --no-default-features --features extras --bin arakun a11y_lint
```

`src/design_lint.rs` fails `cargo test` on hand-written text colors, faint
borders and fills from `theme::mix(..)`, literal `.text_size(px(N))`, font
names, animations with a literal duration and `.repeat()` loops. Run it alone
while you work:

```sh
cargo test --locked --no-default-features --features extras design_lint
```

Fix what it reports with the token it names. Don't add a file to its `EXEMPT`
list.

Labels, tooltips, errors and other text in the view follow the `ui-copy` skill.

## Motion

Anything that animates follows "Motion" in CONTRIBUTING.md: a named duration
from `ui::motion` (`FAST`, `BASE`, `SLOW`), `motion::enter` and its siblings to
come in, `motion::Leaving` with `leave_at` and `inert` to go out the way it
came, and `motion::looping` for loops, shown only while something works. Don't
check Reduce motion yourself; gpui and those helpers handle it. `design_lint`
fails on a literal duration and on `.repeat()`. Then measure the change with
the `transitions` scenario of the `bench` skill and put the before and after in
the pull request.

## See it

`arakun dev` runs a second, fresh Arakun from your build. On Linux it runs on a
virtual display and needs `Xvfb`. On macOS it opens a window of its own that
never takes the focus, and `dev shot` has it render its own window, so it needs
no Screen Recording permission and works while the window is covered. Input goes into the test Arakun directly, so
it never touches the user's pointer, keyboard or own Arakun. `dev text` and
clicking by text need `tesseract` (`tools/setup-dev.sh --yes --display`
installs what is missing).

```sh
cargo build --no-default-features --features extras
./target/debug/arakun dev start            # this checkout as its project
./target/debug/arakun dev click "Settings" # by visible text, or x y
./target/debug/arakun dev key ctrl-f       # also: type, scroll, move, wait, text
./target/debug/arakun dev shot "${TMPDIR:-/tmp}/after.png"
./target/debug/arakun dev stop
```

`arakun dev` with no arguments lists every subcommand. Look at the screenshot
yourself (open the PNG) before you call the change done. Check light and dark
if the change touches color.

For product screenshots of the start screen in dark and light (the brand book,
the README, the site), `tools/product-shots.sh` starts a fresh, isolated Arakun
per mode and captures its window. It never types or clicks, so nothing lands
in another app.

For the "before" shot, build `main` in another worktree, or take it before your
first edit, and save it as `before.png` the same way.

## Hand it over

- Keep screenshots outside the repository (`${TMPDIR:-/tmp}`), not in
  `docs/screenshots/`, which holds the README's images.
- The pull request needs before and after screenshots (a short GIF for an
  interaction). GitHub has no API to upload images, so `tools/pr-assets.sh`
  pushes them to the public [ArakunHQ/pr-assets](https://github.com/ArakunHQ/pr-assets)
  repository and prints the Markdown to paste under Changes. Name each file; never pass a glob,
  which could publish an old capture:

  ```sh
  tools/pr-assets.sh "${TMPDIR:-/tmp}/before.png" "${TMPDIR:-/tmp}/after.png"
  ```

  Each run gets a new folder (the script's header says how it is named), so a
  retake never replaces images a pull request already shows.

  Anything there is public at once: use made-up data, and look at every file
  you upload for a real account, token, email or home-directory path (the status
  bar shows the project's path; the test Arakun can show your GitHub
  notifications). Without push access the script says so: give the user the
  paths and say they need to be dragged into the pull request.
- Changed a shortcut, a setting or a command? Update its page in `docs/`
  (`docs/features.md` for settings), and `docs/windows.md` if Windows differs.
- Code for one platform goes behind `cfg(...)`. Say in the pull request which
  platforms you saw it on: `arakun dev` runs on Linux and macOS.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.