Design · Sep 30, 2026 · 5 min read

Mobile-First Design: Why I Always Start Small

Overview

Tailwind CSS makes building interfaces incredibly fast. But after a few weeks on a real project, many developers run into the same problems: long, messy class lists, repeated styles everywhere, and components nobody wants to touch. The good news is that Tailwind itself isn’t the problem. A few simple habits are enough to keep it clean. These are the seven I use on every project, including ShopEase, and they’ve saved me hours of cleanup.


Extract Components, Not CSS Classes

When you notice the same set of classes repeating across your project, it’s tempting to create a custom CSS class with @apply. In most cases, a better move is to extract a component. If you’re using React or Next.js, wrap the repeated element, like a button or a card, in its own component and reuse it everywhere. This gives you one source of truth, makes updates much easier, and keeps structure and styling together in one place.


Keep Your Class Order Consistent

A random class order makes code hard to scan, and no one wants to waste time deciding where each class goes. Instead of relying on discipline, automate it with the official Prettier plugin for Tailwind. Every time you save a file, it sorts your classes into a logical, consistent order. Your whole team ends up writing classes the same way, code reviews get faster, and merge conflicts become less common.


Conclusion

Tailwind doesn’t make your code messy. Skipping structure does. With a few consistent habits, such as extracting components, sorting classes automatically, using theme tokens, and thinking mobile-first, your projects stay readable even as they grow. Your future self, and your teammates, will thank you. Start with just one habit this week, then add the rest over time, because small changes add up quickly.

Faster website load times and better search visibility

Have a project in mind?

Let’s chat about your goals and build somethingyou’ll be proud of.

Create a free website with Framer, the website builder loved by startups, designers and agencies.