Seven Details That Make an Interface Feel Better
Good interface design rarely comes from a single prompt. It comes from many small details stacked together. Polishing them used to take me two or three months on a personal site. With AI the work goes much faster, but only if you already know where the details belong. Visitors explore a site the way readers hunt for Easter eggs in a comic or a novel. The details are hard to spot, but when people find one, they can tell the site was made with care. Here are the small things I mean.
1. Text wrapping
By default the browser fills a line before it breaks to the next one, so a heading often ends up with a long first line and one or two words on the second. text-wrap: balance evens out the line lengths, which suits headings.
Paragraphs have a different problem. They have many lines, so evening them out means little. What looks bad is a last line with a single word, and text-wrap: pretty fixes that.
In practice the two usually go together: balance for headings, pretty for body text.
Chinese takes a detour on phones. When iPhone WebKit applies pretty to Chinese, it breaks every line early and leaves a large gap on the right. So below 768px I switch paragraphs back to normal wrapping and justify Chinese paragraphs in posts. Lists stay unjustified on purpose. They are often short "title: name" lines, and an English name that can't break would spread the whole line apart.
2. Concentric border radius
When a rounded element sits inside another, the two curves should run parallel so they read as one object. With the same radius inside and out, the outer corner looks too sharp. With an outer radius that is too large, the gap between them becomes uneven.
3. Animating an icon swap
Swapping the copy icon for a check mark after a click is one of the most common state changes. Replacing the icon outright makes it flash. Fading the opacity alone is better. Changing opacity, scale and blur together makes the swap feel like the button itself is responding, and the scale in particular makes it feel pressed down and springing back.
const swap = (off: boolean) => ({
gridArea: '1 / 1',
transition: 'opacity 150ms, transform 150ms, filter 150ms',
transitionTimingFunction: 'cubic-bezier(0.16, 0.08, 0.12, 1)',
opacity: off ? 0 : 1,
transform: off ? 'scale(0.25)' : 'scale(1)',
filter: off ? 'blur(4px)' : 'blur(0px)',
})
<button onClick={handleCopy} className="button">
<span style={{ display: 'inline-grid' }}>
<CopyIcon style={swap(isCopied)} />
<CheckIcon style={swap(!isCopied)} />
</span>
</button>Using a transition instead of keyframes has one more benefit: transitions don't run on first render, so the icon doesn't twitch when the page loads.
4. Font smoothing
macOS's default text rendering makes light text look heavier, especially on dark backgrounds. Setting -webkit-font-smoothing: antialiased switches to grayscale antialiasing, and text becomes thinner and crisper.
Put this setting at the top level. This site sets it on body in the global styles, so tooltips, menus and other elements portaled into <body> get it too. This site uses light text on a dark background and only the 300 and 400 weights, so this one line matters more here than on a light site. The difference only shows on macOS. Windows and phones look the same either way.
5. Exit quietly
An exit doesn't need as much attention as an entrance. When readers click close, their minds have already moved on, and the interface shouldn't make them sit through a full animation.
The left panel slides its full width plus 4px of padding until it leaves the screen. The right one moves only 70% to the left and lets opacity and blur do the rest, so the exit feels much lighter.
When I designed this site's components, I gave menus and tooltips a 90ms close, shorter than any opening animation. The Drawer opens in 400ms and closes in 300ms.
6. Add an outline to images
Add a 1px outline at 10% opacity inside images: white in dark mode, black in light mode.
When an image's edges are close to the background color, this line makes its bounds clearer. It also makes images look like part of the same design system as other bordered elements.

Use outline with outline-offset: -1px, so the line sits inside the image and doesn't change its size.
7. Understanding pointer movement
When the pointer moves diagonally from the main menu toward a submenu, it passes over other items. The menu assumes you want a different item and closes the submenu. A safe triangle is drawn between the pointer and the submenu, and while the pointer moves inside it, the menu waits before switching.
In React, Floating UI's safePolygon gives you a similar effect. You can combine it with direction, speed and other conditions so the menu responds to the user more naturally.
I like this example because it adds no flashy visuals, and most people will never notice it exists. It just helps the interface understand the user a little better.