In this example, we're creating a custom class called .custom-button that inherits the styles from .bg-orange-500 and .hover:bg-orange-700. This allows us to reuse the styles from these classes without having to rewrite them.
Share this post
Using the @apply directive to create custom…
Share this post
In this example, we're creating a custom class called .custom-button that inherits the styles from .bg-orange-500 and .hover:bg-orange-700. This allows us to reuse the styles from these classes without having to rewrite them.