Docs menu

Guides


Primitives
Forms
Layout
Feedback
Overlays
Navigation
Data Display
AI

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:

Minimum browser versions.
BrowserMinimum version
Chrome and Edge (and other Chromium browsers)123
Firefox125
Safari on macOS, iOS and iPadOS17.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

Platform features with no fallback, and the browser versions that set the minimums.
FeatureUsed byChrome / Firefox / Safari
Popover API (popover, showPopover())DropdownMenu, Popover, Tooltip, HoverCard, Combobox, ContextMenu, NavigationMenu114 / 125 / 17
light-dark()Every colour token in @kernelui-lib/styles, which ships as source CSS123 / 120 / 17.5
:has()State styling in Button, Badge, Toggle, RadioGroup, Slider, TagInput, Composer and others105 / 121 / 15.4
oklch() and color-mix()The colour scales and tints111 / 113 / 16.2
<dialog> and showModal()Dialog, Sheet, CommandPaletteAll supported versions
Custom Elements v1@kernelui-lib/elementsAll 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.

Features Kernel uses when available, and the fallback in other browsers.
FeatureUsed forWithout it
CSS anchor positioningPlacing menus, popovers, tooltips and the combobox list next to their triggerPositioned 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-discreteExit 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-styleEntry animations for dialogs, sheets, menus and popoversSurfaces appear without animating
::details-content and interpolate-sizeAnimating Accordion and other disclosures open and closedThey 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 queriesIcon stroke width set with --kernel-icon-stroke-width (Safari 18; not yet in Firefox)Icons keep their default stroke
field-sizing: contentComposer and Textarea growing with their textA fallback in each component sizes the field
appearance: base-select and ::picker(select)A Kernel-styled Select dropdownThe browser's own picker opens; the closed Select is still styled
closedby="any"Light dismiss for DialogA click-outside handler closes the dialog, and Escape works everywhere
contrast-color()Choosing black or white text on any accent hueEach accent preset's own text colour is used
Scroll-driven animationsScroll-edge shadows on ScrollArea and TableScrollArea 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 prettyHeadings and paragraphsText 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/react needs React and ReactDOM 18 or newer (peer dependencies >=18.0.0). React 19 is supported, and the docs site runs on it.
  • @kernelui-lib/elements and@kernelui-lib/styles have 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 labels keys.
  • Custom Elements: tag names, attributes (including label-*), properties, events and their detail shape, and slots.
  • Rendered HTML: the native element each component renders (Button is a <button>, Dialog a <dialog>), and documented data-slot and data-state attributes.
  • CSS: component class names (kernel-Button-root and the like, kept stable so you can target them), --kernel-* custom property names, the stylesheet entry points (styles.css, styles.layer.css and the @kernelui-lib/styles subpaths) and the cascade layer names.
  • CLI: commands, flags, exit codes, and the MCP server's tool names and inputs.

Major, minor and patch

Which release each kind of change goes in.
ReleaseChanges
MajorRemoving 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
MinorNew components, props, attributes, variants and tokens; deprecations; design refinements that keep the API, including new token values
PatchBug 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:

  1. A minor release marks it with a JSDoc @deprecated tag 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.
  2. From that release, using it logs one console warning per page load in development, naming the replacement. Production builds stay silent.
  3. It keeps working for at least one more minor release.
  4. 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;
}