Theming
Change Loom's look with one set of loom-* tokens, in light and dark.
Every color, radius, shadow and curve in the kit comes from a --loom-* CSS variable. The theme item adds them to your global CSS under :root and .dark, and maps them into Tailwind, so components use classes like bg-loom-surface, text-loom-muted and rounded-loom. Change a token and every component follows.
The loom- prefix keeps the kit’s tokens apart from your app’s own shadcn tokens, so neither overrides the other.
Tokens
| Token | Used for |
|---|---|
--loom-bg |
The thread’s background |
--loom-fg |
Text |
--loom-muted |
Secondary text, icons |
--loom-subtle |
Code, hover fills, quiet surfaces |
--loom-surface |
Cards: tool calls, interactions, the composer |
--loom-border |
Borders and dividers |
--loom-ring |
Focus rings |
--loom-accent, --loom-accent-fg |
Primary actions, the send button, the launcher. Ink by default |
--loom-accent-soft |
Quiet fills |
--loom-user, --loom-user-fg |
The person’s own messages |
--loom-success, --loom-warning, --loom-danger |
Call and interaction states |
--loom-danger-soft |
A quiet error fill, for your own parts |
--loom-signal, --loom-signal-fg |
One loud color, for the moments you want noticed; the kit itself uses it sparingly |
--loom-shadow |
Floating surfaces: the widget, the composer |
--loom-radius, --loom-radius-sm |
Containers and controls |
--loom-ease |
Every transition’s curve |
Change the theme
Edit the values the install added to your CSS, or override them after:
:root {
--loom-accent: oklch(0.55 0.17 160);
--loom-accent-fg: oklch(0.99 0 0);
--loom-radius: 0.5rem;
}
.dark {
--loom-accent: oklch(0.75 0.14 160);
--loom-accent-fg: oklch(0.16 0 0);
}
To match your app’s existing shadcn theme instead, point Loom’s tokens at yours:
:root {
--loom-bg: var(--background);
--loom-fg: var(--foreground);
--loom-muted: var(--muted-foreground);
--loom-border: var(--border);
--loom-accent: var(--primary);
--loom-accent-fg: var(--primary-foreground);
}
Dark mode
The dark values live under .dark, the class shadcn apps toggle. If your app switches themes another way, such as a data-theme attribute, move the dark block under that selector.
Beyond tokens
The components are files in your app. For changes tokens can’t make, edit them: every part also carries a data-slot (such as loom-message, loom-tool and loom-composer) and state attributes (data-role, data-state, data-status) to target from your own CSS.

