HeirLight Design System
Tokens, themes and React components for HeirLight on the web. Built like shadcn/ui: Base UI for behaviour, Tailwind v4 for styling, and a registry that AI tools can read through MCP.
See the Button1. Install
bun add @heirlight/uiThen add the styles to your app's CSS, after Tailwind:
@import "tailwindcss";
@import "@heirlight/ui/styles.css";2. Theming
Tokens come in three layers. The palette holds raw HeirLight values (--color-darker-green), the same as the mobile apps. Semantic tokens say what a colour is for (--primary, --surface, --danger), and components only use these. A theme overrides the semantic tokens and nothing else.
<html data-theme="dark">/* Your own theme */
[data-theme="partner"] {
--primary: var(--color-dark-blue);
--primary-foreground: var(--color-white);
}3. Use it with AI (MCP)
This site serves a shadcn-compatible registry at /r/registry.json. The shadcn MCP server reads it, so Claude Code or Cursor can list the components, read their source and examples. In the app's components.json:
{
"registries": {
"@heirlight": "https://design-system.heirlight.com/r/{name}.json"
}
}Then add the MCP server:
npx shadcn@latest mcp init --client claude