One stylesheet · 2.2.0
Install LayoutKit
Load one CSS file early, when it controls the first paint. If it does not load, nothing in JavaScript rebuilds the layout. A missing CSS feature is different: @supports skips that feature.
npm
Pin the version. Import the stylesheet once, at the application root or in your global CSS.
npm install layoutkit-css@2.2.0
import "layoutkit-css/layoutkit.css";
@import "layoutkit-css/layoutkit.css";
Browser
npm latest is 1.3.2, published 5 July 2026. 1.4.0 through 2.2.0 are in this repository and are not on the registry. A public package URL still serves 1.3.2. Link the stylesheet shipped with this site, or copy packages/layoutkit/layoutkit.css. The copy at the site root is that same 2.2.0 build.
<link rel="stylesheet" href="/layoutkit.css">
Loading
Put the link or the import where it applies before first paint. Do not lazy-load it with script if it lays out the page.
If the CSS does not load, lk-* tags are unknown elements with no layout styling. That is intentional.
What changed
2.1.0 adds lk-frame, lk-bleed, lk-dock, and lk-select, plus opt-in look, pattern, blend, and bands. 2.2.0 adds reading order, a stuck hairline, the current-slide outline, and anchor width. Centered overflow uses safe center where that keyword exists. The 2.0 container, snap, and fluid-space defaults stay.
2.0.0 turned container queries on switcher, sidebar, and grid, a switcher limit of 4, single-child centering, center overlay, fluid spacing, and horizontal scroll-snap on. Each one has an off value.
width="xl" is 56rem. The old 64rem step is width="2xl". width="3xl" is 80rem.
Package verification
The package ships the stylesheet, jsx.d.ts, docs, license, changelog, migration guide, and security notes. No runtime, no dependencies, no install scripts.
npm pack layoutkit-css
tar -tzf layoutkit-css-*.tgz