Show HN: Tailwind Button Playground
minthemiddle.github.io
minthemiddle.github.io
https://youtube.com/channel/UCy1H38XrN7hi7wHSClfXPqQ
His videos are worth their weight in gold even if you don't use Tailwind. From Figma design all the way to pixel perfection. You won't be able to find this level of expert knowledge on Udacity.
Good to know about the videos. I'll definitely check them out.
https://tailwindcss.com/docs/extracting-components/
You can either use their built-in system or whatever your JS framework provides or both.
It's a bit hard to get a unified style going, especially if you don't get a thorough design document from someone who knows what they're doing -- but it's definitely doable, mostly because you don't attempt every minute px/em/ex variation on every border or padding, but you're restricted to a set of sizes and dimensions that fit well together. (Although, one of the developers still does fiddle too much in his videos to adjust to the Figma blueprint)
And easy enough to customize with the built-in tool, if you e.g. want to omit certain styles, add some distances yourself or have your own palette.
With Tailwind, I can quickly translate what I want to see into class names: Blue button with white text and shadow on hover? <class="bg-blue-500 text-white hover:shadow">! The grammar is so simple that you will know 80% of the utility classes after a couple of hours. Some critics say that you loose consistency, but that does not happen to me as I use components (Vue, Laravel, Tailwind config) whenever I feel that I have a lot of repeating patterns.
I am building my first product using this tool and after I get over first hurdles everything went smoothly. Tutorials on their homepage are pure gold and helped me going. Also take a look on youtube channels of Tailwind authors (Refactoring UI), those are great.
In conclusion I am glad I've taken some time to learn basics, it took me maybe three or four afternoons and now I'm as productive as in Bootstrap + my designs look much much better.
I am going to do big rewrite of my saas app this year, this is my attempt to learn couple of new technologies to see if they are fit for me and as a place to make mistakes before coding something I care about.
I highly advise adding PurgeCSS to the build pipeline with Tailwind, it can reduce the output CSS from around 250kB to 15kB for a small website without removing stuff manually from the configuration. The setup is explained in the docs [0].
Throughout my entire experience with it the only part I found annoying was setting up the build system, but that's a one-time cost.
What is it about Bulma that's pushed you to look for something else?