A solo freelancer has two ways to keep a front end tidy: write scoped CSS alongside components, or compose interfaces from utility classes. I would default to CSS Modules, even if Tailwind CSS makes the first screen faster. With no infrastructure team and no budget for maintaining abstractions, the better choice is the one that stays easy to change after the client’s first round of revisions.
CSS Modules should be the default until repetition is real
CSS Modules and Tailwind CSS solve different versions of the same problem. CSS Modules give each component locally scoped class names while leaving CSS syntax intact. Tailwind provides a shared vocabulary of utility classes that developers combine in markup. For a solo freelancer starting a custom project, CSS Modules usually cost less to adopt: Vite supports files named *.module.css without a separate styling plugin, and a component’s markup remains readable without decoding a long list of classes.
That does not make CSS Modules automatically maintainable. A button with twelve nearly identical variants scattered across files is still a maintenance problem. The advantage is that a freelancer can start with one component and one stylesheet, then extract shared tokens only after two components need the same decision. CSS custom properties such as –space-control or –color-action can hold genuinely shared values without requiring a design system before the client has approved a design.
I would read Front-End Craftsmanship for Scalable Web Apps before promising a scalable UI, but I would not build a styling system for hypothetical future projects because its upkeep starts on this project’s clock. If the brief is an illustrative 8-screen site with mostly distinct layouts, local styles keep each exception near the component that needs it. Eight screens are a planning example, not a measured threshold; the relevant question is whether the same visual decisions actually recur.
CSS Modules also make an awkward client request less dramatic. Suppose the client wants only the quote form’s submit button to have a wider tap target. In a scoped stylesheet, that change can remain local. In a utility-based component, the edit may be equally small, but only if its class string has not been copied into several variants. Neither approach prevents duplication by itself; the default should minimize the structure you need before you know what will be duplicated.
There is a real cost to my choice. CSS Modules require naming selectors and moving between JSX and CSS, so they lose some speed when a page consists of many repeated, simple patterns. They also make it easy to invent slightly different spacing values. I would accept those costs on an uncertain brief because correcting a few local rules is usually cheaper than standardizing an interface that the client is still changing.
Tailwind wins when a reusable vocabulary already exists
Tailwind CSS wins when the project already has repeated patterns and the freelancer knows its conventions well enough to move without stopping to design each selector. A client portal with recurring cards, forms, alerts, and dense responsive layouts is a stronger candidate than a one-off marketing page. The condition matters: utility classes save time when they express decisions you have already made, not when they merely relocate undecided CSS into JSX.
Tailwind CSS v4 also has a specific setup cost. A Vite project needs the @tailwindcss/vite plugin and a stylesheet containing @import “tailwindcss”;. Advice that assumes every v4 project begins with the old v3-style tailwind.config.js workflow can send a freelancer into unnecessary configuration work. CSS Modules need no comparable styling plugin in Vite 6, although both approaches still depend on a working build and both can produce poor CSS if used carelessly.
The explicit trade-off is this: CSS Modules win when screens are custom, requirements are unsettled, and local edits dominate; they cost extra selector naming and stylesheet navigation. Tailwind CSS wins when patterns repeat, a utility vocabulary is already familiar, and rapid assembly matters; it costs build configuration, longer class attributes, and discipline around repeated compositions. Neither choice requires a paid service or a dedicated server, so the deciding cost for a freelancer is time spent making and revising the interface.
I would read Front-End Craftsmanship: Build Faster, Cleaner UI before accepting a “faster” workflow, but I would time a revision as well as the first build because clients pay for both. A Tailwind card assembled quickly from familiar utilities may stay fast to edit. If its spacing, states, and breakpoints have been copied into five cards, however, the second change requires either coordinated edits or an extraction. The initial speed was real; it was simply an incomplete measure of the job.
Do not choose Tailwind solely to avoid writing CSS. You still need to understand the cascade, responsive behavior, focus states, and CSS custom properties to handle exceptions safely. Its useful promise is a constrained vocabulary for repeated decisions. If there are no repeated decisions yet, that constraint can make a bespoke layout harder to express rather than easier.
A small paid-task trial beats arguing over preferences
Before committing, pick a component the client has actually requested: for example, a quote form with a loading state, an error message, and a narrow-screen layout. Build it once with the approach you expect to use. If the decision still feels close, rebuild that same component with the other approach. Use the same content and behavior; otherwise, differences in the design will masquerade as differences in the styling tool.
Set a 90-minute trial limit as a value to tune for your own quoting process, not as an industry benchmark. Record three times separately: first implementation, one realistic client revision, and cleanup before handoff. A revision such as “make errors more prominent without changing other forms” tests whether the styles are appropriately local. Cleanup tests whether a future edit requires understanding a component or deciphering accidental duplication.
Here is a runnable CSS Modules starting point. With Node.js 22 and npm installed, these commands create a React project through Vite 6, replace its starter component, and launch the local development server:
npm create vite@6 solo-ui -- --template react
cd solo-ui
npm install
cat > src/App.jsx <<'EOF'
import styles from './App.module.css';
export default function App() {
return <button className={styles.action}>Send quote</button>;
}
EOF
printf '.action { padding: 0.75rem 1rem; background: #123; color: white; }\n' > src/App.module.css
npm run dev
The snippet proves only that the setup runs; a button is not a completed interface. Add the same focus treatment, disabled state, and responsive constraint in both trial versions before comparing them. Use the browser’s keyboard navigation and an axe-core check to catch obvious accessibility errors, then inspect the result manually because an automated check cannot decide whether the focus indicator is clear against every intended background.
Keep the evaluation tied to deliverables. If TypeScript 5 is already in the project, preserve the component’s existing types in both versions rather than counting a type migration as styling time. If ESLint 9 is already configured, run the same checks for each. A Playwright smoke test can verify that the form remains usable after a revision, but adding a test framework solely to settle this styling choice would distort a no-budget comparison. The trial should reveal which approach makes this particular job easier, not which approach can accumulate more tooling.
The wrong choice becomes visible during the second edit
A styling method should survive a request that changes one place without changing every place. With CSS Modules, watch for repeated declarations that should become shared tokens or a reusable component. With Tailwind, watch for repeated class strings whose variants have begun to drift. The warning sign is not a particular file length: it is having to remember several unrelated locations to make one intended design change.
For a practical handoff check, give yourself a 15-minute edit budget—a starting limit you can adjust after a few projects. Close the relevant files, then try to find and change a button’s hover and focus behavior without searching the whole repository. If the change exceeds the budget, inspect why. Perhaps the component name is misleading, the CSS selector reaches too far, or a Tailwind class sequence is repeated in markup. Fix that path before adding a new abstraction; an abstraction that hides the problem can make the next edit slower.
Do not confuse styling speed with user-facing speed. Google publishes “good” Core Web Vitals thresholds of 2.5 seconds for Largest Contentful Paint, 200 milliseconds for Interaction to Next Paint, and 0.1 for Cumulative Layout Shift. Those are vendor-published assessment thresholds, not promises that either styling approach will meet them. Run Lighthouse on the finished page and investigate the actual cause of a poor result; an image, font, or JavaScript task may matter more than the choice between utilities and scoped CSS.
Accessibility offers a similarly concrete check. WCAG 2.2 AA specifies a 4.5:1 contrast ratio for normal text in most cases. That standards-defined minimum applies whether a color comes from a Tailwind utility or a CSS custom property. A shared color token may make a correction easier across a project, but only if the same color has the same purpose everywhere. Reusing a value merely because it looks similar can spread a bad decision faster.
My position changes if the trial shows a clear win for Tailwind on both assembly and revision. I would then keep Tailwind and document the few project-specific conventions needed for handoff. Otherwise, I would keep CSS Modules and extract patterns only when repetition provides evidence for them. A solo freelancer needs a defensible default, not loyalty to a tool.
The next component should decide the choice
Take the next approved component on your job and write down one likely client revision before styling it. Build the component with CSS Modules, time the revision, and note every file you touch. If repeated patterns make that work cumbersome, run the same exercise with Tailwind CSS. Choose the approach that makes the second edit clearer; that is the work you will still be doing after the first screen is approved.


