Using @apply for Duplication
Learn the usage of @apply and @layer directives.
We'll cover the following...
@apply
directive
The @apply
directive lets us use Tailwind classes in the definition of other CSS selectors. So, we can redefine our header classes in CSS like this:
@layer components {
.title { @apply text-6xl
...