Skip to content

Arc theme

Arc's foundation CSS variables (--accent, --surface, --text-sm, --radius-panel, …) resolved onto Khaeli tokens, so stock Arc and Arc Pro items installed with the shadcn CLI wear the Khaeli palette, type roles, control height and radii. Replaces Arc's own foundation.css.

For a product that uses components written against these variable names beside Khaeli components. Install it after @khaeli/foundation, and in place of the stylesheet those components would otherwise bring: it declares the custom properties they read and points each one at a Khaeli token, so they take the palette, the type roles, the radius ladder and the 30px control, and follow the dark class. It also gives them a keyboard focus outline, 2px in the ring colour. Getting started has the steps. The examples here are plain elements drawn with the theme's variable names; none of them is a component from another library.

Colours

  • --accent--primary
  • --accent-strong--primary-hover
  • --accent-foreground--primary-foreground
  • --surface--card
  • --surface-muted--secondary
  • --border-subtle--border
  • --text-secondary--muted-foreground
  • --text-muted--subtle-foreground
  • --control-track--input
  • --success--positive
  • --danger--destructive
  • --series-1--chart-1

Type

  • --text-2xl--type-displayThe notes go out on Wednesday
  • --text-xl--type-headingThe notes go out on Wednesday
  • --text-lg--type-titleThe notes go out on Wednesday
  • --text-base--type-titleThe notes go out on Wednesday
  • --text-sm--type-bodyThe notes go out on Wednesday
  • --text-xs--type-captionThe notes go out on Wednesday

Radius and control heights

  • --radius-panel--radius-card
  • --radius-surface--radius-tray
  • --control-height-sm
  • --control-height-md
  • --control-height-lg

A surface

Release 4.2

Twelve tasks shipped and three moved to the next release.

PublishedStable channel

All checks passed

Installation

npx shadcn@latest add @khaeli/arc-theme

Install after @khaeli/foundation (and again whenever you re-add foundation). Do not import Arc's foundation.css.

Installs with

Nothing else. This item needs no other Registry item and no npm package.

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/arc-theme.json