Skip to content

Components

Try a control, then open its page.

Browse directory

Component directory

Controls

Overlays

Feedback

Labels & identity

Layout

Content and data

Agents

Charts

Canvas

Sign-in

Set up the root

Boot the theme before paint and mount each host once.

server.ts
import { themeBootScript } from "@arcadia/ui";

const boot = themeBootScript({ themeKey: "myapp.theme", motionKey: "myapp.reduceMotion" });
const head = `<script>${boot}</script><link rel="stylesheet" href="/app.css" />`;
app.tsx
import "@arcadia/ui/styles.css";
import "./app.css";
import {
  Button, ConfirmHost, Toaster, TooltipProvider, useMotionPreference, useTheme,
} from "@arcadia/ui";

export function App() {
  useTheme(undefined, { storageKey: "myapp.theme" });
  useMotionPreference(undefined, { storageKey: "myapp.reduceMotion" });
  return (
    <TooltipProvider>
      <Button variant="primary" icon="arrow-up">Send</Button>
      <Toaster />
      <ConfirmHost />
    </TooltipProvider>
  );
}

Setup checks

No ConfirmHost
Mount ConfirmHost so confirmation requests can open.
No Toaster
Mount Toaster to show feedback.
No boot script
Boot the saved theme before paint to prevent a flash.
CSS outside a layer
Put product styles in @layer features so kit overrides still win.

Grey and two inks
Step from the page to cards, controls and floating surfaces.
The beacon
Keep amber for waiting, unread and live signals.
One corner and one highlight
Use one control radius and one moving highlight per list.
The pine sweep
The running glyph lights the Arcadia pine one stroke at a time.
One clock
Keep live agent signals in sync on the same watch.
Calm motion
Use small movements to show where something came from.
Four radii
Match corners to their role and keep nested corners concentric.
Inter, cut for code
Distinguish letters from digits without switching to a code font.

Layers
Keep kit styles in ds and product styles in features.
Tokens
Use role tokens like and , not raw colours.
Naming
Use kebab-case files, PascalCase components and present-or-absent state attributes.
Product code
Compose public kit parts. Add a variant when a pattern recurs.
Focus
Use neutral rings for keyboard focus and borders for text fields.
Hierarchy
Use ink rank first, then the bold form of the same style.

Variant vocabulary

Compare common props and their defaults.

PropValuesDefault
variantprimarysecondaryghosttextdangerbareinverseghost
sizexssmmdlgmd (IconButton sm)
toneneutralmutedaccentattentionsuccesswarningdangerplanaskdebugneutral
renderSwap the element, keep the behaviour.The part's own