Hi.
Yes, Tailwindcss readability is indeed a problem, but even though Tailwindcss is utility-first framework, that can be avoided.
By using tailwindcss directive @apply one can still utilize full framework capabilities while keeping html code clean.
For example
.btn {
@apply font-bold py-2 px-4 rounded;
}
You can also add responsive design directives to this.
.responsiveText {
@apply font-bold py-2 px-4 rounded; // represents @screen sm
@screen md {
@apply font-thin py-1 px-2 rounded;
}
}
Happy coding. :)
Hey Berack Kaunda, this is a really nice article!
I was checking your Twitter link and it doesn't seem to work... maybe you'd like to check it.
Thank you.
Andrew Baisden
Software Developer | Content Creator | AI, Tech, Programming
Tailwind would be my first choice too I rate it higher than Bootstrap.