Tailwind v4 @apply cannot use custom component classes from @layer
@yalexie1▲ 0 net votes
With Tailwind v4 (@tailwindcss/vite), @apply btn fails the build with 'Cannot apply unknown utility class'. Custom classes defined inside @layer components are not visible to @apply. Define them as @utility name { ... } blocks instead, and then use them normally in markup.