← Posts

Tailwind CSS 3 is awesome! πŸš€

March 18th, 2022

FYI: I originally posted thisΒ on Twitter. If you want to see more like this, follow me over there, I'mΒ @_duncanmcclean.

---

I've been living under a rock for the last few months. I've had a chance to check out Tailwind CSS v3 on some fresh projects and I love it!

I've made a note of some of my favourite features:

Play CDN

Whenever I go to whip up a prototype for something, I find using the Play CDN a really easy way to bring in Tailwind and add a few custom config options.

My only wish is if I could pull in 1st party plugins, like Typography and Forms.

tailwind-play-cdn

Updates to the Typography plugin

I've been using the Typography plugin since it came out. It's simple, just add the prose class and your content will be all nicely formatted!

But, I discovered a new feature the team have released: applying classes to elements inside the Prose element.

tailwind-prose-inside-els

Screenshot-2022-03-11-at-07.21.33

Scroll snapping 🀯

I watched Simon's "What's new in Tailwind CSS v3.0" video and was amazed at how much there was to share!

One bit stuck out to me though, the 'scroll snap' feature. I didn't even know that was possible in CSS.

Docs: https://tailwindcss.com/docs/scroll-snap-type

Thanks to the @tailwindcss team (& all the collaborators) for all their hard work! β™₯️ CSS is fun again!

Thanks for reading this post! If you found it helpful and want to read more like this, please consider sponsoring me.