Skip to content
kemiljkPublic

About

Semantic HTML component library for React and Web Components

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

35 stars

Watchers

0 watching

Forks

Repository files navigation

Kernel

MIT License

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

For AI agents

Kernel is built for coding agents as well as people. One command sets up a project:

npx @kernelui-lib/cli agents

It 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.

Claude Code plugin

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.

Packages

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

Quick start (React)

npx @kernelui-lib/cli init

Already 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.json

Or install manually:

npm install @kernelui-lib/react @kernelui-lib/styles
import "@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>;
}

Web Components

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.

Developing

This monorepo uses Bun for installs and scripts (bun.lock).

bun install
bun run dev

The 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 site

See AGENTS.md and CONTRIBUTING.md for conventions and contribution workflow.

Releases

Releases are automated with Changesets via .github/workflows/release.yml.

  • On every push to main, the workflow will either:
    • open/update a Version Packages pull request with version bumps and changelogs, or
    • publish to npm and create GitHub Releases when a version PR has just been merged.
  • Publishing authenticates with npm trusted publishing (GitHub OIDC) from this workflow. It does not use an NPM_TOKEN.
  • Version bumps are driven by .changeset/*.md files. Include one with package-impacting PRs so the next release increments versions automatically.

Status

53 components are documented and available today across React and Custom Elements. Browse the component catalog.

License

MIT © Karl Koch

About

Semantic HTML component library for React and Web Components

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

35 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages