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/nextand@kerf;inglobals.css, with Turbopack or webpack.kerf initsetsinputto your app folder and writeskerf-env.d.ts. - A PostCSS plugin,
@kerfcss/kerf/postcss, for other tools. alertandbadgecomponents, withdanger,success,warningandinfo.- Status colour roles:
text-success,surface-successand 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
prosefor Markdown and CMS content, and styled<dialog>with checks for a name and a close button.shadow 1toshadow 3, and transitions that respect reduced motion.- A disabled style for buttons;
disabledon a link is an error. kerf check --json, andkerf initwrites anAGENTS.md.- Your own CSS: the scales as variables, and
.cssfiles checked against the system (warnings unlessrules.cssis"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,containandround. Upgrade note:<img>now needswidthandheight. hover:for colours and corners, on hover and keyboard focus, with contrast checked.no-underlinefor 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
langand 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-tandpad-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,checkand--watch, and the Vite plugin.