# Front-end design: the skill developers skip

- Published: 2026-10-25
- Updated: 2026-11-26
- Tags: Front-end Design for Developers
- URL: https://devtrillo.com/writing/frontend-design-1-the-skill-developers-skip/

> 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.[^rui]

Their point is that once you know a tactic, "you just need to notice the problem and apply the solution."[^rui] That is a developer's workflow. It's the same move as [refactoring](/writing/refactoring-is-a-discipline/): 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.[^lindgaard] The fine print: that's visual appeal only. Lindgaard pointed out that the data show how fast people judge appeal, not usability or credibility.[^lindgaard-news] 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.[^stanford] 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.[^aesthetic] 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.[^webaim]

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.[^wcag] 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**

A card as a developer ships it by default: the title "Quarterly report", a grey meta line "Edited 2 hours ago · 3 collaborators", the body "Revenue, churn and the hiring plan for next quarter. Review before Friday's meeting.", and two equal buttons, "Open report" and "Share", under a divider. Everything is 16px with 12px gaps. Grey meta text: **under 4.5:1**, fails WCAG AA.

Each checkbox applies one tweak, alone or together with the others:

- **Spacing:** the card's padding goes from 12px to 24px, the meta line moves up to 4px under the title, the body sits 16px below it, and the buttons drop 24px lower with the divider above them removed.
- **Hierarchy:** the title grows from 16px regular to 19px bold, the meta line steps down to 14px, and the first button becomes a solid primary action while the second loses its outline.
- **Contrast:** the grey meta text moves from 40% ink to the muted text colour.
- **Squint:** the card blurs, so you see only what still stands out.

With Contrast on: 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."[^proximity] 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."[^rui]

**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."[^hierarchy]

**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:

**Morph the card's CSS from default to tweaked**

Before:

```css
.card {
  padding: 12px;
  border: 1px solid #e5e5e5;
}
.card > * + * { margin-top: 12px; }
.card-title { font-size: 16px; font-weight: 400; }
.card-meta { color: #9ca3af; } /* 2.5:1, fails */
.card-actions {
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}
```

After:

```css
.card {
  padding: 24px;
  border: 1px solid #e5e5e5;
}
.card > * + * { margin-top: 16px; }
.card-title { font-size: 19px; font-weight: 700; }
.card-meta { margin-top: 4px; font-size: 14px; color: #595959; } /* 7:1 */
.card-actions { margin-top: 24px; }
.button-primary { background: #141414; color: #fff; }
```

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

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

- Add a border around each card
- Make the title bigger
- Pull the metadata closer to its title and add space between cards
- Make the metadata blue

**Answer:** Pull the metadata closer to its title and add space between cards — Law of Proximity: things that sit close together read as a group. Spacing does the grouping that a border tries to force.

## 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,[^lawsofux] and Nielsen's 10 usability heuristics applied to a real page.[^nielsen] 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.[^hierarchy]

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.[^webdev]

Next in the series:

- **Part 2 — Visual hierarchy: make the important thing obvious**: size, weight, color and space, and why turning things down beats turning one thing up.

[^rui]: Adam Wathan and Steve Schoger, [_Refactoring UI_](https://refactoringui.com/). The quotes, the tagline and the "use fewer borders" tactic are all on the book's site.

[^lindgaard]: Lindgaard, Fernandes, Dudek and Brown, ["Attention web designers: You have 50 milliseconds to make a good first impression!"](https://doi.org/10.1080/01449290500330448), _Behaviour & Information Technology_ 25(2), 115–126 (2006).

[^lindgaard-news]: From the study's coverage in [Nature News](https://www.nature.com/news/2006/060109/full/news060109-13.html) (2006).

[^stanford]: Fogg, Kameda, Boyd, Marshall, Sethi, Sockol and Trowbridge, [Stanford-Makovsky Web Credibility Study 2002](https://credibility.stanford.edu/pdf/Stanford-MakovskyWebCredStudy2002-prelim.pdf) (preliminary report, PDF). There's a shorter [summary from Consumer Reports](https://advocacy.consumerreports.org/research/how-do-people-evaluate-a-web-sites-credibility).

[^aesthetic]: Kate Moran, [The Aesthetic-Usability Effect](https://www.nngroup.com/articles/aesthetic-usability-effect/), Nielsen Norman Group. It summarizes Kurosu and Kashimura (1995) and covers the caveat about masking usability problems.

[^webaim]: WebAIM, [The WebAIM Million](https://webaim.org/projects/million/), 2026 report on February 2026 data.

[^wcag]: W3C, [Understanding SC 1.4.3: Contrast (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html), WCAG 2.2, Level AA. Large text means at least 18pt, or 14pt bold.

[^proximity]: [Law of Proximity](https://lawsofux.com/law-of-proximity/), Laws of UX.

[^hierarchy]: Kelley Gordon's [article on visual hierarchy](https://www.nngroup.com/articles/visual-hierarchy-ux-definition/), Nielsen Norman Group (2021). It also describes the squint test.

[^lawsofux]: [Laws of UX](https://lawsofux.com/). The site is by Jon Yablonski, who also wrote the [O'Reilly book](https://www.oreilly.com/library/view/laws-of-ux/9781098146955/) of the same name (2nd edition, 2024).

[^nielsen]: Nielsen Norman Group, [10 Usability Heuristics](https://www.nngroup.com/articles/ten-usability-heuristics/), first published in 1994.

[^webdev]: [Learn Responsive Design](https://web.dev/learn/design), web.dev. Free, 17 modules.
