Skip to content
Control UIalpha

App components,in your own skin.

React components for shadcn and Tailwind apps, from form controls to AI chat. The look is a skin you write in CSS.

The versioned npm package. Updates with bun update.

Get started
data-skin="xp"
The Team chat template, rendered twice. Inside the lens, only data-skin changes.Open Team chat
CodeDiff

button, dialog, dropdown, mixer strip, node graph, infinite canvas, 80 more.

86 components in nine categories, from a button to a console mixer. Each one lands as source in your repo, where you and your agent can read it.

Browse all 86

A skin isthree files.

Tokens, behavior, component knobs. Start from a preset or an empty folder. The files live in your repo, and no component source changes.

Read Create a skin
data-skin="acme"

skin-theme.css

tokens
  1. [data-skin="acme"] {
  2. --primary: oklch(0.57 0.2 38);
  3. --primary-foreground: oklch(0.99 0 0);
  4. --scale-neutral-seed: oklch(0.5 0.012 60);
  5. --radius: 4px;
  6. --font-display: "Instrument Serif", serif;
  7. }

skin.config.tsx

behavior
  1. export const skin: ControlUiSkin = {
  2. id: "acme",
  3. icons: { chevronDown: AcmeChevron },
  4. scrollAreaScrollbarVisibility: "always",
  5. scrollAreaScrollbarButtons: true,
  6. buttonGroupJoin: "overlap",
  7. };

skin.css

component knobs
  1. [data-skin="acme"] :where(
  2. [data-control-family="button"][data-control="true"]
  3. ) {
  4. --cui-button-radius: 999px;
  5. }
  6. [data-skin="acme"] :where(
  7. [data-control-family="scroll-area"][data-slot="root"]
  8. ) {
  9. --cui-scroll-area-scrollbar-size: 14px;
  10. }
@property--cui-button-radius
syntax
<length-percentage>
initial
0px
on Button
33 knobs

Typed, so a bad value falls back to the initial instead of breaking the paint.

skins/acme0 component files edited

One command for the screen.One for any part of it.

The Coding agent template is the shell. Tool approval, the task list and the context meter are kits you add to it. None of them call a model: props in, callbacks out.

Browse kits and templates
  1. 1

    Template

    the whole screen
    9 templates
    • Coding agenton the screen above
    • Chat
    • Theme toggle
    • Discussion
    • Agent run
    • Settings
    • Team chat
    • File explorer
    • Design canvas
  2. 2

    Kit

    one part of it
    24 kits
    • ChatMessageon the screen above
    • ChatComposeron the screen above
    • ToolApprovalon the screen above
    • TaskListon the screen above
    • Activityon the screen above
    • Contexton the screen above
    • ChatLayouton the screen above
    • Email
    • ChatComposerAttachment
    • UserAsk
    • AudioDeviceSelect
    • AudioRecorder
    • AudioVisualizer
    • DynamicNotification
    • FilterBar
    • TranscriptDivider
    • InlineCitation
    • SourceBadge
    • ActionBar
    • InlineAttachment
    • MarkdownEditor
    • MarkdownBlock
    • ChatWorkspace
    • ThreadRail
  3. 3

    Component

    one primitive
    86 components
    • Buttonon the screen above
    • Sidebaron the screen above
    • Popoveron the screen above
    • Kbdon the screen above
    • Avataron the screen above
    • Badgeon the screen above
    • Live statuson the screen above
    • Spinneron the screen above
    • and 78 more, in the index above

All three levels install as source and read the same skin.

We overwrite our files.Never yours.

You never edit an installed component. Everything you change lives in the skin, and a typed contract sits between the two. So an update is a diff you read, then an overwrite you run.

Read the update contract
How an update stays out of your files: your skin sets the contract, and the installed source reads it.
  1. you write

    Your skin

    Three files.No update ever lists them. It sets the contract.
    skin-theme.css

    tokens

    never overwritten
    skin.config.tsx

    behavior

    never overwritten
    skin.css

    component knobs

    never overwritten
    0 lines in any update diff
  2. both sides agree on

    The contract

    Every knob is a typed CSS propertywith a declared default. Set by your skin, read by the installed source.
    @property
    --cui-button-radius
    syntax
    <length-percentage>
    initial
    0px
    default
    var(--nest-radius,var(--radius-control))
    1,072 knobs · 81 families/r/contract/button.json
  3. we overwrite

    Installed source

    You read it and never edit it,so an update can replace it. It reads the contract.
    Then control-ui:doctor, a read-only audit.

The manual shipsin the install.

Every item installs with a doc that matches its source, and the set brings a skill that tells your agent how to work in it. The registry speaks MCP. Every docs page answers in markdown.

Claude Code
example agent session
5 steps
Ask before the agent pushes to origin.
  1. Search the registry

    MCP
    tool-approval · kit · Inline approve or deny card for an agent action, with risk, a preview of what will run, and keyboard shortcuts.
  2. Inspect the item

    MCP
    Install command, 2 npm packages, 5 registry dependencies, 2 source files and the anatomy, in one { type, data } envelope.
  3. Install it

    CLI
    Writes tool-approval.tsx, its recipe CSS, its knob contract and docs/tool-approval.md.
  4. Read the installed doc

    FILE
    “This file matches the installed tool-approval source.” The online docs may already describe a newer version.
  5. Restyle through the contract

    HTTP
    27 knobs it may re-value. It writes one rule in skin.css and no component file.

1 kit added · 1 rule in skin.css · 0 component files edited

Make data-skin yours.

Start from an empty folder, or from a preset you rewrite.

Either way the three skin files are yours, and no update will ever list them.

run it yourself

Everything, as source, with no preset. The defaults work without a skin.

or hand it to your agent

One setup prompt makes the agent already in your project read the repo, install from the registry, wire the CSS, run the doctor and design the theme with you.

Read it first