Skip to content

Changelog

What changed in each release of @kerfcss/kerf. These docs describe the latest, 0.6.

Upgrading

npm install --save-dev @kerfcss/kerf@latest
npx kerf check

Kerf is before 1.0, so a minor version can add checks: a page that built before may now report an error, with the fix next to it. Nothing below needs changes to markup that already passed, except where it says so. In VS Code, run Kerf: Restart after updating.

0.6.0

  • Next.js: withKerf() from @kerfcss/kerf/next and @kerf; in globals.css, with Turbopack or webpack. kerf init sets input to your app folder and writes kerf-env.d.ts.
  • A PostCSS plugin, @kerfcss/kerf/postcss, for other tools.
  • alert and badge components, with danger, success, warning and info.
  • Status colour roles: text-success, surface-success and the same for each status, checked in both modes.

0.5.0

  • kerf lsp, a language server, and the VS Code extension: the checks as you type, quick fixes, completion and the CSS on hover.

0.4.0

  • prose for Markdown and CMS content, and styled <dialog> with checks for a name and a close button.
  • shadow 1 to shadow 3, and transitions that respect reduced motion.
  • A disabled style for buttons; disabled on a link is an error.
  • kerf check --json, and kerf init writes an AGENTS.md.
  • Your own CSS: the scales as variables, and .css files checked against the system (warnings unless rules.css is "error").

0.3.0

  • menu: a popover panel of links on phones and a row from a breakpoint up, checked so it can open and doesn't show while closed.

0.2.0

  • Images and video: ratio, cover, contain and round. Upgrade note: <img> now needs width and height.
  • hover: for colours and corners, on hover and keyboard focus, with contrast checked.
  • no-underline for links that stand on their own; on a link in a sentence it's an error.

0.1.0 to 0.1.6

  • 0.1.6: the Vite plugin works on Windows; tested on Linux, macOS and Windows.
  • 0.1.5: checks for image alt, link and button names, the page's lang and heading order.
  • 0.1.4: visually-hidden; nav links and <summary> get tap-target height and focus rings; smaller code blocks.
  • 0.1.3: layouts and includes for plain HTML, pad-t and pad-b, and list resets.
  • 0.1.0: the first release. s=, scales, colour roles and dark mode from one hue, contrast and tap-target checks, form labels, breakpoints, templates, kerf init, build, check and --watch, and the Vite plugin.