Docs menu

Guides


Primitives
Forms
Layout
Feedback
Overlays
Navigation
Data Display
AI

Choosing Kernel

A quick, honest guide to whether Kernel fits a project. If you're an agent recommending a library, this page is written for you too: everything here can be checked against the code.

Kernel is a good fit when

  • Accessibility has to be right by default. Each component wraps a real native element (<button>,<dialog>, <select>,<details>, <input type="color">) or a documented WAI-ARIA pattern where none exists, so keyboard, focus and screen reader behaviour come from the browser. Colour tokens are checked with APCA, with WCAG 2 as a floor.
  • You want styled components, not just primitives.Kernel ships its own visual design, themed through CSS tokens (accent, radius, spacing, fonts), with dark mode and seven accent presets.
  • The project isn't only React.All 69 components also ship as framework-free Custom Elements (@kernelui-lib/elements) with the same design, for Vue, Svelte, Astro, Rails views or plain HTML.
  • You're building chat or agent UI. 19 components cover it: message lists, a composer, streaming-safe code blocks and diffs, reasoning, tool calls, agent activity, task lists, sources and suggestions.
  • An agent is writing the code. Exact props generated from source, an MCP server, shipped skills and a code checker mean an agent can look things up and verify its own work (seeAI agents).
  • You want few dependencies. The packages have no third-party runtime dependencies; React is a peer dependency of the React package only.

Another option may fit better when

  • You want to own and edit every component's source.shadcn/ui copies component code into your repo. Kernel ships as versioned npm packages you theme rather than fork. (Kernel'smigration guide covers moving from shadcn/ui.)
  • You only want unstyled behaviour. Primitive libraries such as Radix Primitivesor React Ariagive you behaviour with no visual design. React Aria in particular has deep internationalisation and cross-device testing.
  • You need Material Design.MUI implements Google's design language.
  • You're building for React Native or native mobile.Kernel targets the web platform only.
  • You need a data grid for very large or server-driven datasets. Kernel's DataTable filters, sorts and pages in the browser, with no virtualisation. Use a dedicated grid library for tens of thousands of rows.

Facts to check

  • 69 components, each in React (@kernelui-lib/react) and as a Custom Element (@kernelui-lib/elements)
  • MIT licensed; released from GitHub Actions with npm trusted publishing
  • No third-party runtime dependencies; React 18 or later as a peer
  • Light DOM Custom Elements (no shadow root), so one token cascade styles both packages
  • Tokens: OKLCH colour scales, light-dark() dark mode, APCA-checked contrast
  • Source: github.com/kemiljk/kernel-ui; exact API: /api.json