The kernel of the web, componentised.

A component library built on real semantic HTML instead of div soup.

npm install @kernelui-lib/react @kernelui-lib/styles
  • 69 components
  • 0 runtime deps
  • MIT licensed
  • React and Web Components

Comparison

What a real element buys you

Same button, same look. One gets focus, keyboard activation, and disabled state from the browser for free. The other has to catch up by hand, and still won't get form submission or :focus-visible right without more code.

Kernel

<button
  type="button"
  onClick={save}
>
  Save changes
</button>

Div soup

<div
  role="button"
  tabIndex={0}
  aria-disabled="false"
  onClick={save}
  onKeyDown={(e) => {
    if (e.key === "Enter" || e.key === " ") {
      e.preventDefault();
      save(e);
    }
  }}
>
  Save changes
</div>

The library

Every component, and the element doing the work

The full catalogue, in Kernel's own DataTable: filter it, sort it, page through it, and open any component's docs. The middle column is the whole idea — each one names the native element it's built on.

69 results

69 components and the element each one is built on
Built on
Accordion<details> + <summary>Data Display
Agent Activity<ol> of stepsAI
Artifact Panel<aside> docked / <dialog> overlay + tablistAI
Attachment<ul> of <li> chips + <progress>AI
Avatar<img>Primitives
Badge<span>Primitives
Breadcrumbs<nav aria-label="breadcrumb"> + <ol>Navigation
Button<button>Primitives

Principles

How it's built

Four decisions that shape every component, not just the ones on this page.

Composition
An explicit render prop, not asChild magic. What actually renders is always visible at the call site.
State
Real pseudo-classes — :checked, :disabled,:user-invalid — wherever the browser already gives you one. data-* everywhere else.
Distribution
A versioned, tree-shakeable npm package, not a copy-paste registry. Import what you use.
Naming
The actual kernel of the web: the elements and behaviour browsers already ship.

Platforms

Everywhere you already build

Three ways in. @kernelui-lib/react is the flagship. @kernelui-lib/elements is the same design system as native Custom Elements — Vue, Svelte, Astro, or plain HTML, no wrapper required. Or skip the stylesheet on either one and get real, fully-functional semantic elements with none of Kernel's own look — just the bones, themed however you want.

import { Button } from "@kernelui-lib/react";

<Button variant="primary">Save changes</Button>

More on platforms & headless usage →

Theming

One value, one cascade

Every colour, corner and gap is a CSS custom property. These controls are Kernel components changing the real site — not a preview pane — and the code beside them is the theme you'd paste into your own app.

Opens beside the page, so you can scroll around and watch it change.

Changelog

Recently shipped

Straight from the published package's changelog. This list is an Accordion on <details>, so it works with no JavaScript at all.

@kernelui-lib/react 1.8.0Minor
  • Add ArtifactPanel / <kernel-artifact-panel> and SchemaRenderer / <kernel-schema-renderer>. - **ArtifactPanel**: the side panel beside a chat that shows a generated artifact. A title, a version switcher ("v3 of 5"), your own actions, a built-in close button and Preview/Code views on Kernel's Tabs. It's a docked <aside> on wide screens (made to sit in a Resizable pane) and a modal <dialog> sheet below overlayBelow (768px by default), with presentation="auto" | "docked" | "overlay". A status of "streaming" or "error" shows a small dot and short text in a polite live region. - **SchemaRenderer**: renders a model's JSON with real Kernel components from a typed, versioned (SCHEMA_VERSION = 1) schema of 17 node types (Stack, Text, Heading, Button, Badge, Card, Form, TextField, Select, Checkbox, Switch, Table, Callout, Separator, Image, Link, Progress), each with an allow-list of props. Unknown types and props are dropped and reported through onIssue (or the issue event), URLs are sanitised to http(s), mailto: and relative, there's no raw HTML, and Buttons and Forms emit onAction({ action, payload, values }) instead of executing anything. Also exports parsePartialJson for streaming, validateSchemaNode, sanitizeSchema, sanitizeUrl, schemaPrompt (a system-prompt snippet) and kernelSchemaJson, which is also shipped as schema.json in both packages.
  • Change reasons, cancellable changes, fuzzy filtering and spatial grid navigation. - **Change reasons.** Every change callback now receives a second argument, details: ChangeDetails<Reason> ({ reason, event?, cancel(), isCanceled }), with a per-component reason union — e.g. Tabs "trigger-press" | "keyboard", Dialog "close-button" | "escape-key" | "outside-press" | "programmatic", DropdownMenu "item-press" | "item-keyboard" | …. Callbacks run before the update; details.cancel() keeps the current state and skips side effects such as closing. One-argument callbacks are unaffected. Select gains onValueChange, DropdownMenu/DropdownMenuMorph and AccordionItem gain onOpenChange. - **Custom elements.** valuechange and change fire after the commit as before; cancel with the new beforevaluechange. Every value control (Checkbox, RadioGroup, Select, NumberField, Switch, Toggle, Slider, ColorPicker, TagInput, Tabs, Combobox, DatePicker, DateRangePicker) dispatches a bubbling, cancelable beforevaluechange with the proposed value and detail.reason first, the way beforeinput/input pair; event.preventDefault() vetoes the change and restores the previous state (for native-backed controls it also stops the native change at the host). Once committed, each fires valuechange with the same detail, and change where it already had one, now carrying detail.reason too. Nothing here changes what main's events did. Dialog, Sheet and CommandPalette ask with a cancelable cancel; Popover, DropdownMenu and Accordion items with beforetoggle. TagInput now commits a paste or a typed separator as one change carrying every new tag (reason "paste"/"separator"), matching React, instead of one event per tag. - **Cancelling what the platform owns.** A cancelled Popover/DropdownMenu light-dismiss or Escape re-shows the panel before the next paint without replaying its entrance (measured: no hidden or faded frame in Chromium or WebKit). A cancelled Sheet drag-dismiss settles back instead of staying translated off-screen. Dialog and Sheet report the browser's closedby light dismiss as "outside-press" (it arrives as a cancel, like Escape) and honour closeOnBackdropClick/close-on-backdrop-click="false" and a non-dismissible Sheet against it. - **Fixes.** <kernel-combobox> and <kernel-command-palette> no longer rebuild every option on each pointer move over the same option, which could swap the node out mid-click and drop the selection. - **Fuzzy filtering.** Combobox and CommandPalette rank results with a fuzzy matcher (subsequence, with bonuses for prefix, word starts and consecutive runs; case- and diacritic-insensitive) and underline matched characters (in --kernel-color-accent-text, which clears the fine-line contrast target in every preset and scheme; test:contrast now checks it). A filter prop/property replaces it. fuzzyScore, fuzzyFilter and fuzzySegments are exported from both packages. Combobox now clears its selection when the text field is emptied (reason "clear"). - **Spatial navigation.** DatePicker and DateRangePicker arrow keys move by real row/column, so disabled days no longer push ArrowUp/Down a column off and Home/End stay in the visual week; Ctrl/Cmd+Home/End jump to the first/last day and Left/Right mirror in RTL. spatialMove and gridDirectionForKey are exported.
  • CodeBlock: wrap prop (React) and wrap attribute (<kernel-code-block>), off by default. Long lines wrap instead of scrolling sideways, keep their indentation, and break anywhere a long identifier needs to. With line numbers, every line is now a row of one CSS subgrid, so the number column is as wide as the widest number: code on line 9 and line 10 starts at the same x (it was off by a digit before), and a wrapped line's number stays on its first visual line.
  • Forced colours (Windows High Contrast) and reduced transparency support. - **Forced colours:** components that showed state only with a background, gradient or box-shadow now redraw it in system colours under @media (forced-colors: active). Selected and on states use Highlight/HighlightText; edges use CanvasText. Covered: Switch (thumb and checked track), Checkbox, RadioGroup, Tabs (the selected tab fills itself, as the indicator needs script to size), Toggle, Slider (native and inset: track, fill, thumb), Progress (including indeterminate), Attachment's upload bar, Badge (outline), DropdownMenu and ContextMenu items and separators, CommandPalette and Combobox options, the customisable Select picker, Nav, NavigationMenu, Pagination, DatePicker and DateRangePicker days, Carousel dots, Separator, Skeleton, Resizable's divider, ColorPicker's swatch (keeps its real colour), Composer's border, CodeBlock's emphasised lines, and borders for Tooltip, Dialog, CommandPalette and Sheet. forced-color-adjust: none is used only where text sits on a Highlight fill (the browser otherwise paints a backplate over it), on the gradient-drawn Slider track and indeterminate Progress, and on ColorPicker's swatch. - **Reduced transparency:** new --kernel-opacity-glass (85%) and --kernel-opacity-frost (70%) tokens. Header's sticky glass and the blurred Dialog and CommandPalette scrims read them, and under prefers-reduced-transparency: reduce they go to 100%, --kernel-blur-backdrop to 0 and --kernel-color-scrim to 80% black.
  • Motion for reordering and swiping. - **TodoList** animates reorders. Any change to the items' order FLIP-animates with the Web Animations API, and new items fade in. Wrap the update in the new animateTodoListChange(ref.current, update) (React) or todoList.animateChange(update) (custom element) to run it as an element-scoped view transition where supported (element.startViewTransition(), Chrome 147+), falling back to the FLIP. Nothing moves under prefers-reduced-motion. React's TodoList now forwards its ref to the <details>. - **Toast** swipe-to-dismiss now runs toward the viewport's edge only, rubber-bands the other way, and dismisses on 40% of the toast's width or a release faster than 0.5px/ms over the last 100ms of the gesture, with a reversal guard. It ignores presses on controls inside the toast, waits for 4px of mostly-horizontal travel before claiming the pointer, leaves vertical pans to the browser, and fades instead of following the pointer under reduced motion. The reduced-motion exit no longer slides. - **Sheet** shares the same velocity tracking and dismiss decision (gesture.ts) with Toast; behaviour is unchanged. - **Sheet** programmatic snapping now works on every side: a controlled snap (React) or snapTo() / the snap attribute (custom element) used to do nothing on top, left and right sheets, although dragging between their snap points worked.
  • Add two AI components, each in both packages. StreamingMarkdown (<kernel-streaming-markdown>) renders model Markdown as real elements while it streams: a built-in, dependency-free parser (paragraphs, headings, emphasis, inline and fenced code via CodeBlock, nested lists, blockquotes, safe links, GFM tables, rules) that never produces HTML, re-renders only the last block per chunk, renders unfinished syntax as its finished form, and fades new words in on the motion tokens. ModelPicker (<kernel-model-picker>) is a compact pill for a composer toolbar that opens a popover listbox of models with provider groups, descriptions, badges, icons, disabled options and typeahead. Also exports parseMarkdown and safeHref from both packages. The CLI's bundled registry lists both components.
  • New package @kernelui-lib/agent: an agent bridge that lets an in-page AI agent read and use your UI through its real semantics. createAgentBridge() returns snapshot() (roles, accessible names, values, states and stable refs, with password and card fields redacted), act() (press, type, select, check, open, close, submit, setValue for sliders and number or date fields, key for single keypresses… through real DOM events, with confirmation for risky steps; open shadow roots are traversed as part of the page), query(), observe()/settle(), and registerTools() for the experimental WebMCP API. Includes a useAgentBridge React hook at @kernelui-lib/agent/react. The kernel-ui skill now points to it.
  • Agent docs and the MCP server cover what agents got wrong in the evals. - **MCP get_component** for elements now lists every event a tag dispatches with the exact event.detail type, read from source with the type checker (kernel-file-upload-error: { type: "max-files" | "max-size" | "accept" | "directory"; files: File[] }, <kernel-tag-input>'s change: { tags: string[] }), and plain events as having no detail. When the registry records which ARIA attributes a tag forwards to its native control, it lists those too. - **Elements skill and llms.txt**: a file upload recipe (show kernel-file-upload-error through invalid/error-message, clear it on the host's change, which fires only for accepted selections), accessible names set on the tag and forwarded to the control, <kernel-switch> named by its text or aria-label, and id staying on the tag. - **React and elements skills**: a page needs one <h1>, which no component renders.
  • Keyboard and ARIA fixes found by @kernelui-lib/testing: - Tooltip: Escape now dismisses an open tooltip without moving focus (WCAG 1.4.13), and doesn't also close a dialog the trigger sits in. - DatePicker and DateRangePicker: Home and End move to the first and last day of the focused week. They used to land on the wrong day whenever the month didn't start on a Sunday. The grid always has exactly one Tab stop: a month showing neither the selection nor today had none, and a range with both ends visible had two. - ContextMenu (React): arrow keys, Home and End now move between items, as they do in DropdownMenu. Both packages move focus to the first item when the menu opens and return it when it closes, and <kernel-context-menu> gains Home and End. - TextField, Textarea, NumberField, Select, TagInput and ColorPicker: with both description and an error showing, aria-describedby no longer points at the hidden description's missing id. - HoverCard: Escape now dismisses an open card (WCAG 1.4.13) without closing a dialog the trigger sits in, and hands focus back to the trigger when it was inside the card. Moving focus from the trigger into the card (Tab to a link in it) keeps the card open instead of closing it under the keyboard. - DropdownMenu (all presentations, and DropdownMenuMorph): the role="menu" is named after its trigger through aria-labelledby, giving the trigger an id when it has none. - ContextMenu: the menu has an accessible name. New label prop / attribute (e.g. "File actions"), falling back to a built-in "Context menu" that labels={{ menu }} / label-menu translate. - DatePicker and DateRangePicker: the grid's one Tab stop now follows focus, so Tab away and back returns to the day the arrow keys last reached. - Combobox (React compound API): Combobox.Input gets the id its label points at, so it's labelled, and its aria-expanded follows the list instead of always being "true".
  • CommandPalette highlights the first match when it opens and whenever the query changes, so typing and pressing Enter runs the top result. - **React**: opening the palette cleared the highlight and relied on the results changing to set it again. With memoised items or groups, nothing changed on open, so no option was highlighted and Enter did nothing until the user typed or pressed an arrow key. A query change also kept a previously highlighted option that still matched instead of moving to the top result. Other changes to the results, such as async items being replaced, still keep the highlighted option while it's selectable. - **Elements**: new items or groups set while the palette is open no longer leave the highlight past the end of a shorter list; it falls back to the first match.
  • Add the --kernel-ease-fade token (linear) for in-place opacity and blur crossfades, and use it wherever component transitions hard-coded linear, so the curve can be retuned in one place. Fix right-to-left layouts: Dialog and inset Sheet side panels now slide in and out from their own edge, and Table's overflow fade and edge shadow sit on the correct side.
  • Deprecated props now warn in development. Using one logs a single console.warn per page load, prefixed [Kernel UI] and naming the replacement; production builds stay silent. - **React**: the check is gated on process.env.NODE_ENV !== "production", which your bundler replaces, so a production build drops the warning code entirely. Dialog's deprecated className is the first to warn; move it to classNames.root. - **Custom Elements**: warnings show when globalThis.KERNEL_DEV is true, or when your bundler sets process.env.NODE_ENV to anything but "production". An unbundled page with neither set stays silent; set globalThis.KERNEL_DEV = true before loading the package to see warnings there, or false to silence them anywhere. No Custom Element attribute is deprecated yet.
  • Slider's inset variant no longer shows a shadowed box around its handle in iOS Safari. Safari's built-in thumb shadow is now cleared on the invisible thumb.
  • Menus now open the way the WAI-ARIA menu button pattern describes. Opening DropdownMenu (popover, disclosure and morph) with a pointer focuses the menu with no item highlighted. Opening it with Enter, Space or ArrowDown focuses the first item, and ArrowUp on the trigger opens it on the last. The highlight follows the pointer, so only one row is highlighted at a time, and focus rings show only for keyboard use. ContextMenu opens on right-click with nothing highlighted, and arrow keys, Home and End now move between its items. - DropdownMenuMorph and ContextMenu now return focus when they close with Escape, a selection or (ContextMenu) a scroll, as the native-popover DropdownMenu already did. DropdownMenuMorph returns it to its trigger. ContextMenu returns it to whatever had focus before the right-click, else the right-clicked control, else the trigger region. An outside press leaves focus where the press put it.
  • Polish pass across ten components, matched in both packages: - **DropdownMenu / ContextMenu**: compact rows (same rhythm as Combobox options), full-bleed separators, a muted 1rem slot for a leading icon, a trailing column for a Kbd or [data-slot="shortcut"] hint, and destructive rows keep their danger tint when reached from the keyboard. A Kbd in a menu row drops its key-cap chrome and prints quietly on the label's baseline, as native menus do: ⌘E on Apple platforms (the separator stays for screen readers) and Ctrl+E elsewhere. - **Kbd**: a combination's separator carries data-slot="kbd-separator". - **Select**: compact picker rows; the checked option is marked by an accent checkmark and medium weight instead of the same fill as hover, so hover and selection no longer look alike. - **Dialog**: the title's first line is optically centred on the close button, and the description sits closer to the title. - **EmptyState**: title and description grouped tightly, balanced description lines, a hairline ring on the icon tile, and more room before the actions. - **DatePicker / DateRangePicker**: borderless month navigation, tabular figures, and a smaller weekday header. - **Pagination**: drawn chevrons (mirrored in RTL) replace the ‹/› glyphs; the current page is medium weight. - **Tooltip**: long content now wraps inside the bubble (balanced, up to 16rem) instead of overflowing it, and the bubble has a soft shadow. - **Callout**: stroke icons in the variant's text colour replace the filled glyph discs, centred on the first line, with softer variant borders. - **Breadcrumbs**: quieter separators with more room either side.
  • Switch's off track is now a solid fill with no dark outline. New --kernel-color-track and --kernel-color-track-hover tokens set its colour; hover darkens the fill instead of the border. The border stays transparent, so the size is unchanged and Windows High Contrast still draws an outline.
  • TagInput's text input is a real textbox again. It used to carry role="listitem" so the tag list would contain only listitems, which hid it from assistive tech as a text field. The tags now sit in their own role="list" (a display: contents wrapper, rendered only while there are tags) and the input is its sibling, keeping its native role, label and description. The layout is unchanged.
  • Updated dependencies [ee3591e]
  • Updated dependencies [e0a6cdc]
  • Updated dependencies [e0a6cdc]
  • Updated dependencies [01aa07b]
  • Updated dependencies [8b2806b] - @kernelui-lib/styles@1.6.0
@kernelui-lib/react 1.7.0Minor
  • Add five components, each in both packages: Kbd (keyboard keys and shortcuts on nested <kbd>, with a platform-aware mod key), EmptyState (a zero-data <section> named by its own heading), ToolApproval (approve / deny / always-allow before an agent runs a tool, with the outcome announced in a live region), Attachment + AttachmentList (file chips with middle-truncated names, Intl file sizes, image previews, native <progress> upload and a remove button), and UsageMeter (token or credit usage on a styled native <meter> with warning and danger bands). Also exports formatFileSize, usageMeterLevel and resolveKbdKey (React).
  • Ship agent skills with the packages, and add kernel agents. - @kernelui-lib/react now includes skills/kernel-ui, skills/kernel-ui-theming and skills/kernel-ui-migrate. @kernelui-lib/elements includes skills/kernel-ui-elements. They use the Agent Skills format (SKILL.md), are versioned with the code, and carry the tanstack-intent keyword. - kernel agents installs those skills into .claude/skills (or --dir), preferring the installed packages' copies. It registers the MCP server (--client), and adds a Kernel UI section to AGENTS.md, and to CLAUDE.md if present. Running it again replaces that section rather than duplicating it. - Fix: kernel mcp init no longer reads an unrelated flag as the client name.
  • Translatable built-in strings, and DOM parity fixes between the two packages. - Every built-in English string (close buttons, "Remove {tag}", Copy/Copied, month navigation, pagination, carousel controls, and more) can now be overridden. React components take labels?: Partial<<Name>Labels> with an exported <Name>Labels type. Custom Elements read label-<key> attributes ({param} placeholders for interpolated strings) or a labels property. The defaults are unchanged. - Elements now write data-* state hooks as "true", like React, instead of "". They also omit aria-invalid and data-loading when false, use React's data-opening → data-open sequence on <kernel-dialog>, and put data-disabled on the <kernel-toggle>/<kernel-switch> button. - <kernel-toggle> forwards aria-label to its button. <kernel-radio-group> gains a value attribute for the selected item. - React TagInput chips carry data-tag, matching the element. - React Suggestion's disabled now disables every chip, so they can't be reached by keyboard. Before, it only blocked the pointer. - Elements no longer emit kernel-Accordion-title or kernel-Callout-content. No styles target either class, and React never emitted them.
  • Motion pass, following Emil Kowalski's animation principles. - **Reduced motion now works as intended.** The reset no longer forces every transition to near zero: in a layer with !important, that override defeated every component's gentler reduced-motion variant. Busy spinners and indeterminate progress, marked data-kernel-motion="essential", now slow down instead of freezing. - **New tokens:** --kernel-scale-enter-lg, --kernel-scale-recede, --kernel-ease-drawer, --kernel-duration-sheet, --kernel-ease-loop, --kernel-duration-spin, --kernel-duration-pulse and --kernel-duration-shimmer. --kernel-ease-in-out is now the stronger cubic-bezier(0.77, 0, 0.175, 1). - **Tooltip:** opens after 400ms by default (was 0). Once one tooltip has shown, its neighbours open instantly with no enter transition. - **Dialog:** enters from 0.98 and exits to 0.99. Side panels and Sheet travel on the iOS drawer curve. Fixed a duplicated translate transition. - **Toast:** exits faster than it enters, dropping back toward its edge, and its stack scales use tokens. - **ContextMenu:** pops open from the cursor with a short fade and overshoot. The elements ContextMenu and Combobox now play their exit animation before closing, matching React. - **Disclosures** (Accordion, Reasoning, ToolCall, FileDiff…): the height now uses the in-out curve, and the content fades with it, including when you reverse mid-way. - **Select:** the customizable picker fades and scales in. - **Loops:** every loading loop uses the shared tokens. - **Other fixes:** - The Checkbox draw is quicker. - The FileUpload drop wash blooms with a clip-path from the pointer, replacing an inherited scale from 0.001. - The Message entrance uses the translate token. - CodeBlock copy, Toast close and the MessageScroller jump button have press feedback. - CodeBlock's copy hover is gated to devices that hover. - Carousel's smooth scrolling respects reduced motion.
  • Optical Button, plus icon slots for <kernel-button>. - Button's radius stops at half the control height, so it's a true pill at Round, and its inline padding grows by the width the corners cut away. - Capitals are centred by cap height, so fonts with lopsided metrics don't sit low. - Icons sit in a slot concentric with the corner, drawn at --kernel-icon-size and spaced from the label by the same distance as from the edge. - Icon-only buttons are now square at every size, or a circle at Round. They used to be wider than tall. - A lone <svg> or <img> passed as children is treated as icon-only. A component child is always treated as the label; pass icon components through iconStart/iconEnd. - <kernel-button> now supports icons: an svg, img or data-icon child placed first or last moves into an icon slot, matching React's iconStart and iconEnd. It also forwards aria-label to the real <button>. - The Dialog close button is now an icon-only Button in both packages.
  • Optical pills for Badge, TagInput tags and Suggestion items. - Icons go straight in as children, before or after the text or on their own, from any icon set. An icon at either end becomes a 1lh slot, concentric with the rounded end. - Inline padding grows by the width the rounded ends cut away. - The radius stops at a true half-height pill, so a wrapped Suggestion keeps its one-line end caps instead of turning into a stadium. - Capitals are centred by cap height, so fonts with lopsided ascent and descent metrics no longer sit low. - New tokens: --kernel-icon-size, --kernel-icon-stroke-width and --kernel-pill-cut. - <kernel-badge> now follows --kernel-radius-control like React's Badge (it was always a pill). - <kernel-tag-input> tags now share Badge's styles, matching React. - Suggestion items are now 40px tall on one line, the md control height, down from about 43px.
  • Optical-pill rollout to fields and the remaining pill-shaped controls, plus focus and danger tokens. - **Fields at Round:** TextField (and so DataTable's filter), Select, Combobox, NumberField, TagInput's field and ColorPicker's hex field add the optical-pill label edge to their text inset, so text no longer jams into a pill's end cap. Their label, description and error move by the same amount and keep lining up with the text. At the default radius this is about 0.7px; at Sharp it is 0. - **TagInput:** one row is now exactly the control height (40px, was 46.8px), and its corners stop at the one-row radius when the field wraps. - **NumberField:** the stacked up/down chevrons are now inline − and + buttons. Each is at least 24×24 (30×30 at md), sits concentric with the field's corner and nests inside the end cap at Round. The buttons are in the order − then +. - **Toggle and NavigationMenu** use Button's optical-pill recipe: label-edge padding, cap-height centring, and concentric icon slots. Toggle detects icon children like Badge and Button do, so an icon-only toggle stays square, or a circle at Round. Toggle now sets its font size per size, matching Button. - **Heights snapped to the control scale:** Suggestion 40px (was 40.6px), NavigationMenu items 40px (was 37.3px), CodeBlock's copy button 32px (was 31.3px). - **New tokens:** --kernel-focus-offset (2px), --kernel-focus-offset-inset (−2px) and --kernel-focus-offset-tight (1px) replace hard-coded outline-offset values, and --kernel-color-danger-hover (danger step 10, light/dark aware) replaces Button's color-mix(… black) danger hover. - **Slider:** the track thickness is a component-local --track-size, and the range inputs set user-select: none, as does ColorPicker's colour input.
  • Make both packages better npm citizens. - @kernelui-lib/react's bundle now starts with "use client", so Next.js App Router Server Components can import Kernel directly. - Both packages add an opt-in styles.layer.css export: the same component CSS inside @layer kernel.components, ordered after @kernelui-lib/styles' token and reset layers, so any unlayered CSS you write overrides Kernel without specificity fights. styles.css is unchanged. - @kernelui-lib/elements ships a Custom Elements Manifest (custom-elements.json, named by the customElements field), VS Code HTML custom data (vscode.html-custom-data.json) and React 19 JSX types for every tag (@kernelui-lib/elements/jsx), all generated from the elements' source.
  • Contrast fixes, measured with APCA (the method proposed for WCAG 3) with WCAG 2 as a floor. - **Focus ring:** --kernel-color-focus-ring is now accent-11. Accent-9 failed in light mode for the amber preset (1.95:1), and every preset scored about Lc 30 in dark mode. - **New --kernel-color-border-control token:** gray-9 in light, gray-11 in dark, for controls whose border is their only outline. Checkbox, Radio and the Switch track now use it, where they used to measure 1.66:1 in light mode. - **Muted text:** gray-11 is lighter in dark mode (78%, up from 72%), so muted text clears Lc 60. - **Checkbox at Round:** its radius is capped, so it no longer turns into a circle that looks like a radio button. - **Switch in RTL:** the thumb now moves by its logical inset, so it sits on the left when on in right-to-left layouts. - **Sheet in RTL:** the left/right edge bleed now also flips under dir="rtl". The build had compiled its :dir(rtl) rule down to RTL lang selectors only.
  • Fix layout, RTL and hit-area issues from a design audit. - **Tabs**: a tablist wider than its container now scrolls sideways (hidden scrollbar, an edge fade only where tabs are cut off) instead of widening the page, and selecting a tab scrolls it into view. The sliding indicator now lands on the selected tab in right-to-left layouts. - **InputOTP**: cells share the row (up to 48px each, never under 2rem) and stay square, so six cells fit on a 390px screen. - **Pagination** (and DataTable's footer): stays on one line. Below a 30rem container width, Previous/Next show only their chevrons; the word stays available to assistive tech. The nav now fills its container's width and centres its pages. - **Slider**: the fill meets the thumb in RTL. - **Directional icons**: new [data-icon-directional] utility in reset.css mirrors an icon in RTL. DatePicker/DateRangePicker month arrows, Carousel prev/next and the Sources external-link arrow use it. - **New token** --kernel-color-overlay-hover, a currentColor-based hover wash that stays visible in both colour schemes. TagInput's remove button uses it in place of a fixed black overlay that disappeared in dark mode. - **Hit areas**: Carousel dots, citation chips and the Resizable divider keep their visual size but have a 24px target. DataTable sort buttons and Message's expand trigger are at least 24px tall. Carousel dots now sit on a 24px pitch. - **Citation chips**: a small pill that fits two digits, raised without changing line height, with no gap before following punctuation. - **AgentActivity**: its disclosure chevron sits at the end edge, like the nested Reasoning and ToolCall rows. - **Toast**: descriptions on success, warning and danger toasts use the variant's text colour. - **Resizable**: panes use the container radius, and the divider has a visible grip.
  • Accessibility fixes found by the new axe check: - ScrollArea, CodeBlock and FileDiff's scrolling regions can now be reached and scrolled by keyboard. CodeBlock and FileDiff name their region. - DatePicker and DateRangePicker now use the ARIA grid pattern correctly. The table has role="grid", aria-selected moved from the day button to its gridcell, and today's button gets aria-current="date".
  • Updated dependencies [09c7227]
  • Updated dependencies [f5773b8]
  • Updated dependencies [4e6f9fd]
  • Updated dependencies [1ad7bd1]
  • Updated dependencies [f334806] - @kernelui-lib/styles@1.5.0
@kernelui-lib/react 1.6.2Patch
  • Use pointer cursors consistently for enabled click controls, including buttons, tabs, menu options, and disclosure triggers. Preserve text-editing, drag, resize, and disabled-state cursors.
  • Updated dependencies [2c79835] - @kernelui-lib/styles@1.4.1
@kernelui-lib/react 1.6.1Patch
  • Tabs re-measures its selection indicator whenever the tab list changes size. A tab list first rendered inside a hidden container (a closed dialog, popover or <details>) used to measure every tab as 0px wide and show a zero-width sliver with no selected highlight until the selection changed; it now snaps into place when the container opens, and also follows font loading or the container resizing.

Get started

Built on the parts of the web that already work.

Kernel is MIT-licensed and developed on GitHub. Contributions to docs, accessibility, and component parity are welcome.69 components are ready today. The full set is live.