We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To tackle repeating utility classes you can use @apply as suggested in this article:
@apply
<button class="btn-gray"> Button </button> <style> .btn-gray { @apply bg-gray text-white font-bold py-2 px-4 rounded; } .btn-gray:hover { @apply bg-gray-dark; } </style>
So I would suggest that you can improve this part of your article by using @apply to tackle the repetition of css utility classes.
The text was updated successfully, but these errors were encountered:
samanthaming
No branches or pull requests
To tackle repeating utility classes you can use
@apply
as suggested in this article:So I would suggest that you can improve this part of your article by using
@apply
to tackle the repetition of css utility classes.The text was updated successfully, but these errors were encountered: