oliverdavies.uk/source/_daily_emails/2024-01-09.md
Oliver Davies 5eba6de81a Update daily email permalinks
This is a follow-up to commit 3be9031de8
as each daily email has a `permalink` value that overrides the default
content type permalink.
2024-05-21 00:03:52 +01:00

29 lines
1.3 KiB
Markdown

---
title: >-
Using Tailwind CSS is a great way to learn CSS
date: 2024-01-09
permalink: daily/2024/01/09/using-tailwind-css-is-a-great-way-to-learn-css
snippet: |
I think Tailwind CSS is not only a great CSS framework, but a great way to learn CSS itself.
#dev #SoftwareDevelopment #css #TailwindCSS
tags: []
---
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.