Arc
Put Arc and Arc Pro items on Khaeli tokens.
Arc is a separate component library with its own registries and
its own licence. Its items read Arc's custom properties: --accent, --surface,
--text-sm, --radius-panel and the rest. Arc theme declares
those names with Khaeli values, so an Arc item takes the Khaeli palette, the type roles,
the 30px control and the radius ladder, and follows .dark.
Only the variable names come from Arc. No Arc or Arc Pro source is in the Khaeli Registry.
Install the theme
Install Foundation first, as Installation shows, then the theme:
npx shadcn@latest add @khaeli/arc-themebunx --bun shadcn@latest add @khaeli/arc-theme
- Install it after
foundation, and again whenever you addfoundationagain. - It stands in for Arc's own foundation. Arc's installation guide adds Arc's foundation
item and imports its
foundation.cssat the root: skip both.
Add Arc items
Arc items come from Arc's own registries, under Arc's licence. Its
installation guide gives the registry entry, which
sits beside @khaeli:
{
"registries": {
"@khaeli": "https://ui.khaeli.com/r/{name}.json",
"@uiarc": "https://uiarc.dev/r/{name}.json"
}
}Then install an item by name, as Arc documents:
npx shadcn@latest add @uiarc/buttonbunx --bun shadcn@latest add @uiarc/button
Arc Pro items install from Arc's token-gated registry with a Pro token. Arc's documentation has the entry and the token setup; this site does not repeat them.
What to know
- Dark mode. Arc switches on
data-theme="dark"; Khaeli switches on the.darkclass. Set the class on<html>, or both. - The accent. Arc's
--accentis the ink of what is selected, which is Khaeli's primary, so the theme gives--accentto Arc. Tailwind'saccentcolours move to--secondary, the same fill, sobg-accentin Khaeli components keeps its look. - Keyboard focus. The theme draws a 2px outline in the Khaeli ring colour on an Arc
item's
:focus-visible. Text fields, menu rows and options keep their own focus state, and Khaeli components, which carrydata-slot, draw their own ring. - Gradients. Arc's brand wash resolves to a flat neutral: Khaeli surfaces carry no decorative gradient.
Licence
- Arc's free items are MIT. Arc Pro source is licensed and may not be redistributed, even modified, so none of it is in this Registry or on this site. See Arc's licence.
- Motion tokens is the one Arc file here: an unchanged copy of Arc's free motion tokens, with its MIT notice in the file.
What the theme maps
Every variable the item declares, read from the item itself. Names that foundation
already defines with the meaning Arc gives them are not here, because foundation
supplies them: --background, --foreground, --border, --surface-raised, --info,
--warning, --radius-control, --tone-violet, --tone-amber, the four durations and
the three eases Arc shares with Khaeli.
| Arc variable | Khaeli value |
|---|---|
| Light and shared (:root) | |
| --border-strong | rgb(from var(--foreground) r g b / 0.16) |
| --accent-subtle | rgb(from var(--primary) r g b / 0.12) |
| --control-on-subtle | rgb(from var(--control-checked) r g b / 0.1) |
| --control-thumb | #ffffff |
| --control-thumb-on | #ffffff |
| --surface | var(--card) |
| --surface-muted | var(--secondary) |
| --text-secondary | var(--muted-foreground) |
| --text-muted | var(--subtle-foreground) |
| --border-subtle | var(--border) |
| --accent | var(--primary) |
| --accent-strong | var(--primary-hover) |
| --accent-foreground | var(--primary-foreground) |
| --control-on | var(--control-checked) |
| --control-glyph | var(--control-checked-foreground) |
| --control-fill | var(--control-checked) |
| --control-track | var(--input) |
| --control-track-hover | var(--meter-empty) |
| --control-thumb-shadow | 0 3px 8px rgb(0 0 0 / 0.15), 0 3px 1px rgb(0 0 0 / 0.06) |
| --control-height-sm | 30px |
| --control-height-md | 30px |
| --control-height-lg | 36px |
| --focus-ring | transparent |
| --focus-outline | var(--ring) |
| --focus-outline-width | 2px |
| --focus-outline-offset | 2px |
| --success | var(--positive) |
| --danger | var(--destructive) |
| --tone-green | var(--positive) |
| --tone-rose | var(--destructive) |
| --tone-sky | var(--info) |
| --tone-teal | var(--tint-mint-foreground) |
| --tone-orchid | var(--tint-pink-foreground) |
| --series-1 | var(--chart-1) |
| --series-2 | var(--chart-2) |
| --series-3 | var(--chart-3) |
| --series-4 | var(--chart-4) |
| --neutral-0 | var(--background) |
| --neutral-1 | var(--row-hover) |
| --neutral-2 | var(--muted) |
| --neutral-3 | var(--secondary) |
| --neutral-4 | var(--input) |
| --neutral-5 | var(--meter-empty) |
| --neutral-6 | var(--control-border) |
| --neutral-7 | var(--subtle-foreground) |
| --neutral-8 | var(--muted-foreground) |
| --neutral-9 | var(--muted-foreground) |
| --neutral-10 | var(--foreground) |
| --neutral-11 | var(--foreground) |
| --arc-gradient | var(--secondary) |
| --arc-gradient-soft | var(--muted) |
| --arc-gradient-line | var(--border) |
| --arc-gradient-ink | var(--foreground) |
| --arc-gradient-from | var(--secondary) |
| --arc-gradient-to | var(--secondary) |
| --arc-gradient-foreground | var(--foreground) |
| --shadow-resting | var(--shadow-control) |
| --shadow-floating | var(--shadow-modal) |
| --radius-panel | var(--radius-card) |
| --radius-surface | var(--radius-tray) |
| --radius-pill | 9999px |
| --text-xs | var(--type-caption) |
| --text-sm | var(--type-body) |
| --text-base | var(--type-title) |
| --text-lg | var(--type-title) |
| --text-xl | var(--type-heading) |
| --text-2xl | var(--type-display) |
| --text-3xl | var(--type-display) |
| --text-4xl | var(--type-display) |
| --text-5xl | var(--type-display) |
| --leading-body | var(--type-body-leading) |
| --leading-display | var(--type-display-leading) |
| --tracking-body | 0 |
| --tracking-display | var(--type-display-tracking) |
| --space-1 | calc(var(--spacing) * 1) |
| --space-2 | calc(var(--spacing) * 2) |
| --space-3 | calc(var(--spacing) * 3) |
| --space-4 | calc(var(--spacing) * 4) |
| --space-5 | calc(var(--spacing) * 5) |
| --space-6 | calc(var(--spacing) * 6) |
| --space-8 | calc(var(--spacing) * 8) |
| --space-10 | calc(var(--spacing) * 10) |
| --space-12 | calc(var(--spacing) * 12) |
| --space-16 | calc(var(--spacing) * 16) |
| --space-20 | calc(var(--spacing) * 20) |
| --space-24 | calc(var(--spacing) * 24) |
| --duration-spring | 400ms |
| --ease-in-out | var(--ease-move) |
| --ease-spring | var(--ease-out-strong) |
| Dark (.dark) | |
| --control-thumb | #f1f2f3 |
| --accent | var(--primary) |
| --accent-foreground | var(--primary-foreground) |
| --control-thumb-shadow | 0 3px 8px rgb(0 0 0 / 0.4), 0 3px 1px rgb(0 0 0 / 0.2) |
| Tailwind theme (@theme inline) | |
| --color-accent | var(--secondary) |
| --color-accent-foreground | var(--secondary-foreground) |