Blog-preview-card - Vite and TailwindCSS using @apply

Solution retrospective
Hi there !
I did this small project in 45 min, to explore and try tailwindCSS.
I've built this with Vite and React so I'm close to what I need in real projects, and Tailwind because it's a standard nowadays and even if I don't like the principle of having multiple classes on only one element, i find the @apply feature that allows you to write all of the TailwindCSS classes, in a css file instead of in your JSX code.
it's the perfect fusion between using TailwindCSS and keeping my JSX code as clean as possible.
Enjoy !
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on remsB's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord