Installation
Add Klarhimmel UI to a React 19 project that uses Tailwind CSS v4. Takes about two minutes.
Steps
New Vite app? Add Tailwind
Skip this if your project already runs Tailwind CSS v4. A new Vite app does not yet: install it and add its plugin.
Map the @/ alias
Every snippet imports from @/components/klarhimmel/. Vite does not map @/ yet: add it to both tsconfig files and to Vite (npm i -D @types/node). Next.js and most starters have it.
Create components.json
Tells the CLI where files go and where Klarhimmel items live. No shadcn init needed, and its style does not matter: files are copied as written. Already have one? Add only the registries entry.
Add a block
Files land in components/klarhimmel/, with everything the block needs. They are yours now.
Import the tokens
In your main CSS file, after Tailwind. The tokens are scoped to .kh-root and never reset your own theme.
Render it
Wrap the page in Theme once. Each block sits on a BlockSurface and takes one props object.
Check a page before you ship
A real page keeps your text and never shows sample copy. Each installed block ships its spec: check your props against its schema in your build, so an over-limit or missing text fails there, not on the page.
Host your own registry
The public registry is served at ui.klarhimmel.com. You can also build and host your own copy from the source.
Serve your own build
Run npm run site:build in the repository. It writes every item to dist-site/r/ and llms.txt beside it. Serve dist-site with any static server and use that address, ending in /r/{name}.json, as the @klarhimmel registry above.
Or copy the source
Every block and component is a plain file in the repository under src/. Copy the files and the theme item by hand; the registry only automates that.