The
@apply
directive allows us to create custom CSS classes by composing Tailwind utility classes.
This is useful for elements that need a consistent set of styles, like buttons.
Below,
.btn-primary
and
.btn-secondary
are defined in the
<style>
tag.