A component library built on the actual kernel of the web: real semantic HTML elements, not div soup.
Documentation: kernelui.com · GitHub: kemiljk/kernel-ui
Kernel is built for coding agents as well as people. One command sets up a project:
npx @kernelui-lib/cli agentsIt installs Kernel's skills (they ship in the npm packages), registers an MCP server that gives exact component props and tokens, and adds a Kernel section to AGENTS.md. Agents can check their own output with npx @kernelui-lib/cli check <files>. See kernelui.com/agents, llms.txt and when Kernel fits a project.
This repository is also a Claude Code plugin marketplace. The kernel-ui plugin gives every project Kernel's skills and MCP server. Inside Claude Code:
/plugin marketplace add kemiljk/kernel-ui
/plugin install kernel-ui@kernel-ui
The plugin lives in plugins/kernel-ui. Its skills are copied from packages/*/skills by bun run plugin:sync, so edit them there; CI fails if the copy is stale.
| Package | Description |
|---|---|
@kernelui-lib/react |
React components on real semantic HTML |
@kernelui-lib/elements |
The same design as framework-free Custom Elements |
@kernelui-lib/cli |
Integration CLI — init, doctor, and local component lookup |
@kernelui-lib/styles |
Design tokens, reset, and Tailwind v4 bridge |
npx @kernelui-lib/cli initAlready using shadcn/ui? Add components from Kernel's shadcn registry, which installs the package and writes a re-export to components/kernel/:
npx shadcn@latest add https://www.kernelui.com/r/dialog.jsonOr install manually:
npm install @kernelui-lib/react @kernelui-lib/stylesimport "@kernelui-lib/styles";
import "@kernelui-lib/react/styles.css";
import { Button } from "@kernelui-lib/react";
export function App() {
return <Button variant="primary">Save changes</Button>;
}npm install @kernelui-lib/elements @kernelui-lib/styles<script type="module">
import "@kernelui-lib/elements";
</script>
<kernel-button variant="primary">Save changes</kernel-button>See the installation guide and platforms overview for framework-specific notes.
This monorepo uses Bun for installs and scripts (bun.lock).
bun install
bun run devThe docs site runs at http://localhost:4321.
bun run build # build all @kernelui-lib/* packages
bun run typecheck # typecheck workspace
bun run test # run React package tests
bun run docs:build # build docs siteSee AGENTS.md and CONTRIBUTING.md for conventions and contribution workflow.
Releases are automated with Changesets via .github/workflows/release.yml.
- On every push to
main, the workflow will either:- open/update a
Version Packagespull request with version bumps and changelogs, or - publish to npm and create GitHub Releases when a version PR has just been merged.
- open/update a
- Publishing authenticates with npm trusted publishing (GitHub OIDC) from this workflow. It does not use an
NPM_TOKEN. - Version bumps are driven by
.changeset/*.mdfiles. Include one with package-impacting PRs so the next release increments versions automatically.
53 components are documented and available today across React and Custom Elements. Browse the component catalog.
MIT © Karl Koch