Tailwind:Components
lastmod 2026-11-10created 2023-03-094 edits
Tailwind:Components covers how to extract recurring combinations of utility classes in Tailwind CSS into a single component class. Inside @layer components, you combine utilities with @apply to define classes such as .btn; this layer sits between base and utilities, so it can be overridden with utilities.