Beautiful UIs with Figma and Tailwind
Tags: webdev, design, beginners, tutorial
Published: 2022-07-25 21:27:00

In this post, we’re going to share how we used Figma and Tailwind to redesign our open-source tool refinery. The article will entirely focus on how to build beautiful UIs quickly. You don’t need any prior knowledge to understand this post.

After this post, you’ll know:

- Why Figma and Tailwind are such a great combination to build a beautiful UI
- How you can quickly build a consistent design
- Those mockups are worth the time! :-)

---

### Our change in UI

To jump into this article, we first want to show you what our manual labeling screen used to look like. The sidebar was too dominant because the color coding and the label colors were a bit gloomy. We knew our UI needed some improvements.

![Old UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wcw60s1mquzuhvc5vz7j.png)

Because of that, we built up some mockups using Figma and Tailwind, arguably one of the best design toolkit combinations. Figma is excellent for building high-quality mockups fast and collaboratively. In contrast, Tailwind offers a great set of predefined classes and components for your web app - and it comes with an amazingly well-designed Figma template kit. Within hours, we set up the following mockup:

![Mockup UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4sa66hprpwgfhvyhlkji.png)

Showing this page to users, we saw that it not only offered a better-looking design but also provided a better workflow. From here, we decided to implement the mockup in Tailwind. The result is almost looking the same as the mockup, as you can see here:

![New UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4ooommj26f829ec9oy9.png)

So with that in mind, we want to show you how we did that.

---

### Don’t start from scratch!

First, it is relevant to know that there are template kits available in Figma. You can browse them in their library or at third-party libraries. So you don’t need to rebuild everything on your own!

> Our tip is that you should use templates of which you have the HTML codes, too. This enabled us to easily switch between Figma mockups and implemented UI elements without losing the design. But you can still also build the HTML files from scratch.

In our case, we imported the Tailwind template into Figma and had access to the mockup elements: 

![Tailwind Template](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ykxz3jpy4t84871ftas.png)

Those same elements are available in the Tailwind UI components library: 

![Tailwind UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rm7wax8rdyyozzanqqbu.png)

And this is not only true for high-level elements like the layout of your screen but also for detailed elements like badges:

![Tailwind Badges](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jkvlrf8ow5lhqbkw4jwj.png)

### Implement your screens in Figma first

From here, it becomes easy to drag and drop your elements into the respective layout you want. After 15 minutes of playing around with it, you should already feel comfortable building custom mockups in Tailwind, and it should take you little effort to turn these mockups into UI shells.

![Figma editing](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nh8ogau88twcxoy0rmk6.png)

We developed this not only for one but for multiple screens; roughly 95% of the things you can see in our application have been first designed via mockups.

![Figma screens](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g9z9gn3g2dtalbwdfz7r.png)

The reason we did so was that it helped us to ensure consistency throughout the entire application. It made it easier for our team members to gain early feedback on the whole workflow of the application and how the UI would differ from our previous version. Ultimately, it also allowed us to implement the UI much faster. As soon as the mockup was finished (for that version, of course, we’re already improving on that with our following upcoming versions), we “just” had to implement the shell.‍

We believe that Figma and Tailwind are the best combinations to build beautiful UIs, but there are many great alternatives. Most important is that this approach helps you build what’s been discussed and agreed upon in a short time. We’ll continue building our application based on mockups, and we’ll discuss them with our community :)‍

If you’re interested in seeing an application built this same way, check out our [open-source tool refinery](https://github.com/code-kern-ai/refinery). Also, feel free to join our community on [Discord](https://discord.com/invite/qf4rGCEphW) if you have any questions.