DEV Community

Oliver Davies
Oliver Davies

Posted on • Originally published at oliverdavies.uk on

Using Tailwind CSS is a great way to learn CSS

I was in a pair programming session today, working on some Twig components with Tailwind CSS.

We knew what we needed to implement and did so based on an example from a Tailwind component library and some additional styles.

After implementing the feature, we could review the classes we added and review what each did.

We could easily move or remove a class and see what effect it had.

Something nice is that the Tailwind classes usually relate to what CSS they're applying, such as block and flex for display and relative and absolute for positioning.

This makes Tailwind a great way to learn CSS compared to other frameworks that give you prebuilt HTML and expect you to add a generic class like card.

In that case, the knowledge is hidden within a stylesheet the Developer doesn't see, which makes it harder to read and learn from.

Other utility-class frameworks have shorter class names that are less readable.

Tailwind strikes the perfect balance, in my opinion.

P.S. Need help or want another pair of eyes on your code? Book a 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay