Skip to content
Klarhimmel UI

Design system skill

Beta

Teaches your agent to build with Klarhimmel UI: which block or component to use, which token to reach for, and the rules every page follows.

Install

CLI

npx shadcn add @klarhimmel/skill-design
Adds
.claude/skills/klarhimmel-design/SKILL.md. Plain Markdown, so other agents can read it too.

What it knows

  • Tokens

    Colour, type, space and motion, by name, in light and dark.

  • Components

    When to use each one, what it pairs with, what not to build twice.

  • Rules

    One primary action per view, 44 px targets, the writing rules.

SKILL.md

The file your agent loads, readable before you install. Copy for AI copies all of it.

SKILL.md
---
name: klarhimmel-design
description: Build pages and UI with Klarhimmel UI blocks, components and tokens. Use when adding or changing a page, a section or a component in a project that has components/klarhimmel/, or when asked to use the Klarhimmel design system.
---

# Klarhimmel design

Klarhimmel UI is source in this project, under `components/klarhimmel/`. Build with it; do not build a second version of something it already has.

## Set up and install

Check first: does the project have `components.json` with a `@klarhimmel` entry under `registries`, and `components/klarhimmel/`? If so, skip the setup. Otherwise do it once, exactly as https://ui.klarhimmel.com/get-started/installation.md says:

1. Map `@/*` to `./src/*` in `tsconfig.json` and `tsconfig.app.json` (`compilerOptions.paths`; no `baseUrl`, TypeScript 6 deprecates it) and as a `resolve.alias` in `vite.config.ts` (`npm i -D @types/node`).
2. Create `components.json` with `"registries": { "@klarhimmel": "https://ui.klarhimmel.com/r/{name}.json" }` and the usual `aliases` (`@/components`, `@/lib/utils`, ...). `shadcn init` is not needed, and its style (radix or base) does not matter: Klarhimmel files are copied as written.
3. `npx shadcn add @klarhimmel/<name>`; then in the main CSS, after `@import 'tailwindcss';`, add `@import './components/klarhimmel/theme/theme.css';` (path relative to that file).

An install name is the registry name, listed below, not the URL of its page: `/blocks/faq/accordion` installs `faq-list`, `/blocks/cta/banner` installs `cta-band`. Never guess a name; use this list or the install line printed on the item's page. Check an install with `tsc` and the app's build.

<!-- registry:begin -->
Install names (the part after `@klarhimmel/`), generated from the registry. Where the directory page has another URL than the name, it is in brackets:

- Blocks (289), by category:
…

Try it

A prompt to start with.

Prompt

Use the klarhimmel-design skill. Build a pricing page for {product} with three plans. Lead with the plan most people pick, then answer the questions people ask before they buy.