Browser support and versioning
Kernel builds on native elements and current CSS, so the browsers it supports are set by the platform features it can't work without. Newer features are used as progressive enhancements: where a browser lacks one, the component still works and loses only a refinement, such as an animation.
Supported browsers
Every component works fully in these browsers and every later version:
| Browser | Minimum version |
|---|---|
| Chrome and Edge (and other Chromium browsers) | 123 |
| Firefox | 125 |
| Safari on macOS, iOS and iPadOS | 17.5 |
Internet Explorer, legacy Edge (EdgeHTML) and any browser without the Popover API aren't supported. The minimums come from the features in the next table. The packages' compiled JavaScript and CSS target Vite's default build target (Chrome and Edge 111, Firefox 114, Safari 16.4), so the code parses in older browsers, but menus, popovers and colours need the versions above.
Features Kernel requires
| Feature | Used by | Chrome / Firefox / Safari |
|---|---|---|
Popover API (popover, showPopover()) | DropdownMenu, Popover, Tooltip, HoverCard, Combobox, ContextMenu, NavigationMenu | 114 / 125 / 17 |
light-dark() | Every colour token in @kernelui-lib/styles, which ships as source CSS | 123 / 120 / 17.5 |
:has() | State styling in Button, Badge, Toggle, RadioGroup, Slider, TagInput, Composer and others | 105 / 121 / 15.4 |
oklch() and color-mix() | The colour scales and tints | 111 / 113 / 16.2 |
<dialog> and showModal() | Dialog, Sheet, CommandPalette | All supported versions |
| Custom Elements v1 | @kernelui-lib/elements | All supported versions |
The component stylesheets are compiled with Lightning CSS, which turnslight-dark() into a fallback that older browsers understand. The tokens in @kernelui-lib/styles ship uncompiled. If your bundler lowers CSS for older targets, as Vite 8 does in production builds, the tokens get the same fallback.
Progressive enhancements
These features are used only where the browser supports them. Each row says what happens in a browser that doesn't.
| Feature | Used for | Without it |
|---|---|---|
| CSS anchor positioning | Placing menus, popovers, tooltips and the combobox list next to their trigger | Positioned by measuring the trigger in JavaScript and kept inside the viewport, but not flipped to the opposite side when space runs out |
overlay with transition-behavior: allow-discrete | Exit animations for popover="auto" panels (Chromium only) | The panel closes without an exit animation. A guard in the reset turns the exit off rather than let the panel jump while it fades |
@starting-style | Entry animations for dialogs, sheets, menus and popovers | Surfaces appear without animating |
::details-content and interpolate-size | Animating Accordion and other disclosures open and closed | They open and close instantly |
Exclusive <details name> | Accordion items that close each other (Firefox 130) | In Firefox 125 to 129, several items can be open at once |
| Container style queries | Icon stroke width set with --kernel-icon-stroke-width (Safari 18; not yet in Firefox) | Icons keep their default stroke |
field-sizing: content | Composer and Textarea growing with their text | A fallback in each component sizes the field |
appearance: base-select and ::picker(select) | A Kernel-styled Select dropdown | The browser's own picker opens; the closed Select is still styled |
closedby="any" | Light dismiss for Dialog | A click-outside handler closes the dialog, and Escape works everywhere |
contrast-color() | Choosing black or white text on any accent hue | Each accent preset's own text colour is used |
| Scroll-driven animations | Scroll-edge shadows on ScrollArea and Table | ScrollArea updates its shadows from JavaScript; Table shows no edge fade |
cap and lh units, typed calc() | Optical centring of text and icons in pills (Badge, Button, Toggle and others) | Each rule's @supports fallback uses plain padding, so text can sit slightly low |
text-wrap: balance and pretty | Headings and paragraphs | Text wraps normally |
Motion follows prefers-reduced-motion in every browser: each component that moves swaps travel and scale for a short fade. Right-to-left layouts use logical properties, and the few rules that need :dir(rtl) also match [dir="rtl"], because the build rewrites :dir() into a list of languages.
Node.js and React
@kernelui-lib/reactneeds React and ReactDOM 18 or newer (peer dependencies>=18.0.0). React 19 is supported, and the docs site runs on it.@kernelui-lib/elementsand@kernelui-lib/styleshave no runtime dependencies beyond the browser.@kernelui-lib/cli, including the MCP server, needs Node.js 20 or newer.
Versioning
Every package follows semantic versioningand is versioned on its own with Changesets. Each release's changelog is on GitHub and in the package. Version 1.x gets fixes and security updates; 0.x doesn't.
What the version covers
These are Kernel's public API. Breaking any of them needs a major release:
- React: exported components, hooks, utilities and types; prop names, types, accepted values and defaults; callback signatures; and
labelskeys. - Custom Elements: tag names, attributes (including
label-*), properties, events and theirdetailshape, and slots. - Rendered HTML: the native element each component renders (Button is a
<button>, Dialog a<dialog>), and documenteddata-slotanddata-stateattributes. - CSS: component class names (
kernel-Button-rootand the like, kept stable so you can target them),--kernel-*custom property names, the stylesheet entry points (styles.css,styles.layer.cssand the@kernelui-lib/stylessubpaths) and the cascade layer names. - CLI: commands, flags, exit codes, and the MCP server's tool names and inputs.
Major, minor and patch
| Release | Changes |
|---|---|
| Major | Removing or renaming anything in the public API; accepting fewer values; changing a default in a way that changes behaviour; rendering a different native element; changing an event's detail; raising the minimum React, Node.js or browser version |
| Minor | New components, props, attributes, variants and tokens; deprecations; design refinements that keep the API, including new token values |
| Patch | Bug fixes and accessibility fixes, including ones that add ARIA attributes or adjust markup inside a component |
Token values (the exact colours, spacing and radii) and internal markup that isn't listed above aren't part of the API, so they can change in a minor or patch release. If you snapshot Kernel's rendered output in tests, expect those snapshots to change between minor releases.
Deprecations
Nothing is removed without notice. A deprecated API goes through these steps:
- A minor release marks it with a JSDoc
@deprecatedtag that names the replacement, so your editor strikes it through, and lists it in the changelog. Custom Element attributes are marked in the docs andllms.txt. - From that release, using it logs one console warning per page load in development, naming the replacement. Production builds stay silent.
- It keeps working for at least one more minor release.
- The next major release removes it, and its changelog says how to migrate.
An example from Dialog. Passing className logs a one-time warning in development that points to classNames.root:
export interface DialogProps {
/** @deprecated Prefer `classNames.root`. Still applied to the root. */
className?: ClassNameValue<DialogState>;
/** Typed class hooks for every structural slot. */
classNames?: DialogClassNames;
}