The Tailwind Utility-First Workflow

InstructorAdam Wathan

Share this video with your friends

Send Tweet

Learn how to style HTML elements with Tailwinds utility classes.

We'll adjust size and positioning with padding, margin, and height as well as style text elements color, weight, and spacing through more utility classes

~ 4 years ago

What is the side preview pane that you use?

Matthias
~ 4 years ago

I still don't get the advantage of tailwind.

To design your button you have added like nine separate classes to get the design you wanted. Now, on a normal page that will not be your only button. You will have buttons all over the place and you will want them to look consistent.

When your boss comes and tells you "Focus tests have shown that our indigo buttons do not entice enough people to click them. Make them dark red instead!", you would have to go through all your html changing "bg-indigo-500" to "bg-red-900" (or whatever), where in classic CSS you would just change you "cta-button" class once and would be done with it?!

It just seems like design with extra steps...

Edit: well, never mind, I should have watched the rest of the videos beforehand... :D

Zac Jones
~ 4 years ago

What is the side preview pane that you use?

Adam is using Sizzy app!

Stephen James
~ 4 years ago

I am using VS Code - how are you getting the auto complete for the tailwind classes

Adam Wathaninstructor
~ 4 years ago

Hey! This plugin:

https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss

~ 2 years ago

@Stephen You don't need any extra extension to get autocomplete CSS classes. Create a workspace setting and add the property "css.styleSheets" with the value of path/to/your/bundled/CSS/file.