Front-end design: the skill developers skip

By Esteban Trillo8 min readupdated Front-end Design for Developers

Defaults are still a decision. The only choice is whether you make it on purpose.
Defaults are still a decision. The only choice is whether you make it on purpose.

Part 1 of a series on design for people who write the code. Each part takes one principle and applies it in CSS, with a before and an after.

“I’m not a designer.”

It sounds like modesty. It works like an excuse. The most common accessibility failure on the web is a CSS value, and a developer typed it.

Adam Wathan used to believe it. He’s a developer, and he says he “always chalked it up to a left brain/right brain sort of thing.” Then he and the designer Steve Schoger wrote Refactoring UI, a whole book built on the opposite claim. The tagline: design with tactics, not talent.1

Their point is that once you know a tactic, “you just need to notice the problem and apply the solution.”1 That is a developer’s workflow. It’s the same move as refactoring: a vague “this feels off” becomes a named problem with a named fix.

You’re already making design decisions

Open the last component you built and count the decisions.

The gap between the title and the date. The font-weight on the heading. The grey on the secondary text. The padding inside the button. Whether there’s a border at all.

Nobody handed you those values. You typed them, or you accepted whatever the browser or the component library gave you. Either way, a design decision shipped.

The only choice is whether you make those decisions on purpose.

That’s the pitch for this series. Not “replace your designer.” Learn the handful of rules behind the values you’re typing anyway.

People judge the looks before anything else

Three studies come up whenever someone argues that looks matter. All three are real, and all three are smaller than the way they usually get quoted. Here they are with the fine print.

Visual appeal gets judged in about 50 milliseconds. Lindgaard and colleagues had people rate web pages after a glimpse that short, and those ratings tracked the ones made after looking longer.2 The fine print: that’s visual appeal only. Lindgaard pointed out that the data show how fast people judge appeal, not usability or credibility.3 Nobody decides your app is usable in a glimpse.

“Design look” was the most-mentioned credibility cue. In the Stanford-Makovsky credibility study, 2,684 people compared websites and wrote down why they trusted one over another. The design look came up in 46.1% of the comments, more than anything else.4 The fine print: that’s a share of comments, not of people. The study is from 2002, and the report says it “has not been peer reviewed.” It’s a hint, not a law.

Looks change how usable a UI feels. Kurosu and Kashimura at Hitachi had 252 people rate 26 versions of an ATM interface. How good a layout looked tracked how easy people thought it was to use more closely than how easy it was.5 That’s the aesthetic-usability effect, and the fine print cuts both ways: a good-looking UI can hide real problems in testing. It forgives small issues, not big ones.

None of this says looks beat function. It says people see the looks first, and the looks color how they read everything after.

The most common visual bug is one we type

WebAIM tests the home pages of the top million websites. In its latest run, 95.9% had detected WCAG 2 failures. The most common was low-contrast text: 83.9% of home pages, with 34 instances per page on average.6

Low contrast isn’t a matter of taste. It’s a value in a stylesheet. The WCAG rule fits in a sentence: normal text needs at least 4.5:1 against its background, large text 3:1.7 Type #9ca3af on white because it looks subtle and you get about 2.5:1. It fails.

Fixing that takes no talent. It takes the rule and a checker.

Fix one card with three tweaks

Here’s a card the way it often ships: the same gap between every line, every line the same weight, borders around everything, pale grey metadata.

Turn on each tweak alone, then all three together.

Apply design tweaks to the same card

Quarterly report

Edited 2 hours ago · 3 collaborators

Revenue, churn and the hiring plan for next quarter. Review before Friday's meeting.

Grey meta text: under 4.5:1, fails WCAG AA.Grey meta text: about 7:1, passes WCAG AA. Same HTML in every state. Only the CSS changes.

Each toggle is one tactic.

Spacing is the Law of Proximity: “objects that are near, or proximate to each other, tend to be grouped together.”8 The title and its metadata move closer, and the groups move apart. The divider goes away because space now does its job. Refactoring UI calls this one “use fewer borders.”1

Hierarchy makes one thing lead. The title gets weight, the metadata steps down a size, and one button becomes the obvious action. NN/g defines visual hierarchy as arranging elements in “the order of intended importance.”9

Contrast keeps the metadata quiet but readable. Still grey, now well above 4.5:1.

None of these needs an eye for design. Each one is a rule you can name and check. Here’s the CSS that changed:

Not one line of HTML changed. The design lives in values you already own.

A card's metadata seems to belong to the card below it. What's the cheapest fix?

Where the series goes from here

Each part takes one principle from that card and goes deep, with a before, an after, and the CSS between them.

It starts with hierarchy and spacing, which is what the toggles above do, done properly. Then typography and type scales: interfaces are mostly text, so type is most of the look. Then color, contrast and dark mode.

After that come the laws of UX, including Fitts’s and Hick’s, from Jon Yablonski’s list of 30,10 and Nielsen’s 10 usability heuristics applied to a real page.11 Then the practical layer: states, forms, focus, grids, responsive layout, motion and disclosure. Near the end I’ll cover Jakob’s law, critique one of my old pages, and prototype in the browser. The last part is an accessible design checklist and a look back at what stuck.

Try the squint test today

Open a page you shipped this week. Lean back and squint until the text blurs, or tick Squint on the card above.9

Whatever still stands out is what your page says first. If that’s a border or the wrong button, you’ve found your first design bug, and you didn’t need a single tool to find it.

Mistakes to watch for

  • Design as a final coat of paint. The decisions happen when you type the first padding, not in a polish pass at the end.
  • Trusting defaults. Browser-blue links, a library’s greys, #999 for anything “secondary.” A default is someone else’s decision, made without your page in mind.
  • Borders to fix grouping. If two things look unrelated, try space before you try a box.
  • Looks over function. The aesthetic-usability effect makes a pretty UI feel easier. It doesn’t make it work. Test the flow, not the screenshot.

Design is a skill you practice

“I’m not a designer” assumes design is a trait you were born with or without. The sources point the other way. It’s a set of tactics, and most of them are rules you can check the way you check a failing test.

If you want to read ahead: Refactoring UI for tactics, Laws of UX for the psychology, NN/g’s heuristics for judging a screen, and web.dev’s free Learn Responsive Design course for the CSS side.12

Next in the series:

The next parts aren’t out yet — check back soon.

Footnotes

  1. Adam Wathan and Steve Schoger, Refactoring UI. The quotes, the tagline and the “use fewer borders” tactic are all on the book’s site. ↩ ↩2 ↩3

  2. Lindgaard, Fernandes, Dudek and Brown, “Attention web designers: You have 50 milliseconds to make a good first impression!”, Behaviour & Information Technology 25(2), 115–126 (2006). ↩

  3. From the study’s coverage in Nature News (2006). ↩

  4. Fogg, Kameda, Boyd, Marshall, Sethi, Sockol and Trowbridge, Stanford-Makovsky Web Credibility Study 2002 (preliminary report, PDF). There’s a shorter summary from Consumer Reports. ↩

  5. Kate Moran, The Aesthetic-Usability Effect, Nielsen Norman Group. It summarizes Kurosu and Kashimura (1995) and covers the caveat about masking usability problems. ↩

  6. WebAIM, The WebAIM Million, 2026 report on February 2026 data. ↩

  7. W3C, Understanding SC 1.4.3: Contrast (Minimum), WCAG 2.2, Level AA. Large text means at least 18pt, or 14pt bold. ↩

  8. Law of Proximity, Laws of UX. ↩

  9. Kelley Gordon’s article on visual hierarchy, Nielsen Norman Group (2021). It also describes the squint test. ↩ ↩2

  10. Laws of UX. The site is by Jon Yablonski, who also wrote the O’Reilly book of the same name (2nd edition, 2024). ↩

  11. Nielsen Norman Group, 10 Usability Heuristics, first published in 1994. ↩

  12. Learn Responsive Design, web.dev. Free, 17 modules. ↩

Piwi hands a single letter to the user at a mailbox; a small note reads no noise.

Get the next one in your inbox

One email when a post goes out, with its sketch. Nothing in between, and one link to leave.

Sign in faster next time?

Add a passkey and skip the email link. Your fingerprint, face or device PIN is enough.