From b74987150db66f33762b0bf2b06a651240219945 Mon Sep 17 00:00:00 2001 From: grugbraindev <178141691+grugbraindev@users.noreply.github.com> Date: Fri, 23 Oct 2026 09:30:06 +0800 Subject: [PATCH] Replace the .form migration snippet that fails in Tailwind v4 Tailwind v4 can't @apply Basecoat's component classes, so the 1.0.0 migration snippet failed with "Cannot apply unknown utility class". Show the .field wrapper and the per-element classes instead. --- CHANGELOG.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dda347..1976f13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -156,15 +156,17 @@ ### Migration Notes -To keep the previous `.form` wrapper behavior, define it in your own Tailwind CSS: +The `.form` wrapper can't be recreated with `@apply`: Tailwind v4 only applies utilities, not Basecoat's component classes. Wrap each label and control in a `.field` instead: -```css -.form label { @apply label; } -.form input { @apply input; } -.form textarea { @apply textarea; } -.form select { @apply select; } +```html +