AstonJ
Welcome to our Modern CSS with Tailwind Book Club! ![]()
With Tailwind now the default CSS framework shipped with Phoenix we thought this would be a nice book club to run here ![]()
The book cub is being led by @BartOtten and participants are:
Everyone is welcome to join in the book club themselves or to simply comment on anything you find interesting ![]()
I’m looking forward to hearing how everyone gets on with the book and what everyone thinks of Tailwind - I wonder if we’ll see the common story of “I hate it!” to later “I love it!” that we hear so much of! ![]()
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
Hey there,
It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Quite interesting article Google brought me. Didn’t find any mentions about it here.
What do you think in general? Would you use togethe...
New
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
:warning: Security advisory: Decimal DoS vulnerability
A vulnerability has been published for decimal where very large exponents can cau...
New
What IDE or editor are you using for Elixir development?
Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
Other Trending Topics
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
kevinschweikert
Hey all, I am excited! We are currently started using Tailwind in our first bigger project, and I’m eager to learn more about it! Thanks @AstonJ for organizing the book club!
AstonJ
You’re welcome Kevin!
I had a few spares minutes last night so read the intro. It seems Tailwind’s selling points are:
button)m-4gives youmargin: 1remortext-lggives youfont-size: 1.125rem@applydirective for this, however it’s recommended that you use features of your programming language or framework to manage this.Interesting!
The immediate thought that comes to mind is that you’ll be repeating things - a lot - so every time you want to use something you’ll need to repeat all those utility classes, eg:
Instead of:
Be interesting to see how easy
@applyis and how Phoenix helps manage it all.Look forward to hearing what you all think as you work your way through the book!
cjbottaro
I bought a print copy of that book and read most of it.
I think I know enough about CSS already where a “cookbook” style book would benefit me more.
These few sentences get me most of where I need to be:
So I think I would benefit more from “here’s how to do a common paradigm in Tailwind.”
I think it’s a good book, I’m just not the target audience maybe. I like things like “Elixir for Programmers” (Is that a thing? If not it should be!)
maxmannen
I am working on a project that uses Phoenix as a backend with some administrator functions using liveview and Sveltekit as frontend. I have used Tailwind before but have not learned so much about it, more “copy and paste” from other sources and adjust it for my purpose.
I also picked up the recommendation not to use @apply. In Svelte trying to make js-file with exported string constants that I import in my components. I will try the same in Phoenix.
BartOtten
Hi all,
Nice to see this book club going forward! I was and still am eager to read the book, but the flu got me into bed last week. Managed to load the book on my e-reader, just to go back to sleep. Reading while having a short-term memory of less than a minute is ill-advised. And reviewing the book with a bad mood won’t do my opinion any good.
So let me just post my “Introduction”
Why interested in Tailwind?
Prelude
Being a developer with great interest in UX (I studied it) I have more CSS-skills than most developers. My first website was structured using HTML tables, then came CSS floats and ‘recently’ flex-box and grid. So I am mostly comfortable with just CSS. At times, it can be challenging though.
CSS is hard so let’s use…
I always found it interesting how many developers invest time in 10 languages, but forget the most universal one on the internet: CSS. Just like Javascript, every browser ships with an engine capable of using it. And even when you can write perfect code in X, when not being able to show-off on the web it’s not gonna sell*.
It makes me a bit sad to hear CSS is hard from people who only watched 3 Youtube videos, 5 blog posts and gave up on it. They wouldn’t give up on another language as soon as their first logic mistake would make it cripple.
Over the decades we have seen many CSS component frameworks and a few utility frameworks to make it easier to style websites. The component frameworks come down to a set of classes so you don’t have to write from scratch. Those are comic books:
And then we have the utility frameworks. Some are almost languages on their own with conventions, syntax and tooling. The learning curve is told to be better than ‘native’ CSS:
Back to Tailwind
Tailwind is is a utility framework, and once again with the promise to solve anything. It got a hype, Phoenix ships with it…so maybe this time it is the solution…?
I see some club members have already been started; how is the rest doing?
AstonJ
I will look forward to hearing what you think Bart!
Btw for anyone interested in getting up to speed with CSS, an article popped up on DT recently which might be worth a read
cmo
I don’t believe the recomendation is to avoid
@applycompletely, but rather to prefer using components/partials to componentise an application.@applyis handy when the abstraction cannot be acheived with components.BartOtten
Dear readers,
Although I do love discussing all the things we are about to read, let’s not get ahead of it please. The reason why we read this book is because we want to acquire knowledge! As a result we might post ‘dumb’ questions while we are at chapter 1.
The list with questions I posted was not supposed to be answered by anyone other than the book
So please, let’s stop discussing the grand scheme of things for now; we can do so later when everyone had read the book.
AstonJ
Good idea Bart
I’ve split the discussion into a dedicated thread and moved it here: https://forum.elixirforum.com/t/general-tailwind-discussion-split-from-book-club-thread/53726 (it’ll remain open for a month after the last reply, so people are more than welcome to join or carry on the discussion there if they like - just don’t forget to be nice
)
Faust
Hi, everyone, unfortunately I’m a bit busy this month, so I won’t be able to focus on it as much as I’d like =/
but I started it last weekend.
Even though I had heard about Tailwind, I had never used it or read the docs
So I’m taking the club as a opportunity to see how it works and what I can achieve with it.
At the introductory chapter I felt the way the author said I would “ugh” hahaha
Honestly I don’t really like that big amount of classes
I was expecting something more like bootstrap maybe…
Then I moved on to the first chapter, I followed the examples, and I might say I changed my mind a bit, I started to get the “feel of it”
It’s kind cool to add classes instead of writing css rules on the components, however I feel this might get messy if I wanna keep a pattern through the whole system.
Well, I guess there’s probably a solution for this.
Waiting for the weekend to continue it =)