The hairline and the corner. A radius scale of five steps decided once, the rule that keeps nested corners concentric, and a border system in which one pixel means edge and two means focus.
The corner is the most legible carrier of a product's character, and it is read before a word of the interface is. That makes radius a system decision, made once: a product whose corners are chosen per component reads as several products wearing one logo.
Start with the failure, because it is the ordinary one. Here is the new-acquisitions screen of an invented branch library's catalogue: a top bar with a search field, a header with two actions, filter chips, three cards, and a patron panel docked on the right. Nothing on it is ugly on its own. Every corner and every edge was chosen by someone with a reason: the search "felt friendlier" rounder, the featured card "needed to stand out," the panel "looked boxy." Look at it before turning the inventory on.
Three things are wrong, and none of them is any single radius. There is no scale. Seven different radii sit on one screen, several of them on siblings: the two header buttons are 2 and 6, the three Reserve buttons are 4, full, and 6. Nesting is broken. The first card's cover is rounder than the card around it, and the third card's square cover pinches against its rounded corner; neither is concentric with its container (section III). The edges disagree. One card has a 2px border because it was "featured," the patron panel wears a border, a fill, and a shadow at once, and the loans list draws a rule wherever two edges meet, so it has two. Section XI audits this screen and fixes it with four values.
Radius deserves its own chapter because the eye reads shape before it reads anything else, and it reads corners as personality. Sharp corners read as precise, technical, editorial; moderate radii read as neutral and contemporary; large radii read as friendly; the pill reads as consumer and informal. Button Taxonomy §I traced that to the Bouba/Kiki effect and mapped the range for buttons. What a button chapter can't say is that the reading is cumulative: every corner on the screen votes, and a screen whose corners vote for three characters reads as no character at all. Users can't name what's wrong with it. They say it feels unfinished.
2, 4, 6, 9, 12 on one toolbar. Each was somebody's default.
A 16px image inside a 6px card. The child looks pasted on from another product.
Two characters in one component: a consumer button in an editorial box.
The boundary with neighbouring chapters, stated once. Button Taxonomy I owns the button's radius options (sharp, subtle, moderate, round, pill) and the outlined button's border weight; this chapter owns the system-wide scale those options are drawn from and the nesting rule they obey. Text Inputs I §III owns the field's inheritance of the button's radius; this chapter owns the ring around it. Elevation & Depth owns the shadow and what height means; this chapter owns the hairline and the corner. Spacing & Density owns the insets that the nesting rule here subtracts.
Use five steps, none, sm, md, lg, full, set at 0, 4, 8, 12, and 9999px, and assign each to a class of element rather than to a component: controls take sm, containers take md, overlays take lg, shapes take full, and anything docked to the frame takes none. Choosing a class for a new component is then the only radius decision anyone makes.
| Step | Class | Takes it | Never |
|---|---|---|---|
| none · 0 | Docked | Top bar, sidebar, inspector, the docked edges of a drawer or sheet, full-bleed media, table cells, banners that span the frame. | Anything that floats free of the frame's edge. |
| sm · 4 | Controls | Buttons, inputs, select triggers, checkboxes, menu items, tooltips, segmented items, thumbnails inset one base unit in a card. | Containers; a 4px card reads as a large button. |
| md · 8 | Containers | Cards, panels, table frames, menus, popovers, listboxes, toasts, wells, the frame of an image grid. | Controls inside a dense toolbar; 8 on a 28px button is already soft. |
| lg · 12 | Overlays | Dialogs, the free corners of a sheet, a command palette, onboarding panels. | Anything at level 0; a 12px card says "dialog." |
| full · 9999 | Shapes | Avatars, status dots, switch tracks and knobs, chips and tags, and pill buttons in a system whose character is pill. | A rectangle with a fixed "pill" radius in px (section IV). |
The spacing scale is a hybrid, linear at the bottom and widening above (Spacing I §III). The radius scale is linear for its first four steps and then stops, for a reason specific to corners: a child inset by one base unit from its container's edge takes the step below. A menu at md 8 holds items inset 4px, so the items are sm 4. A card at md 8 holds a cover inset 4px, so the cover is sm 4. A dialog at lg 12 holds a preview inset 4px, so the preview is md 8. Every one of those pairs is concentric (section III) without anyone computing anything, because the scale is closed under the most common nesting in the interface. A geometric scale (2, 4, 8, 16) loses that property at every step above the first.
It stops at 12 because above it product surfaces stop reading as neutral. A 16px card is a friendly product's card, and a 24px card belongs to a consumer app; those are legitimate characters (section X), but they are choices of a different scale, not more steps on this one. And it jumps to full because the pill is not a large radius. It is a shape defined by the element's height, and it has to stay a semicircle when a chip grows by a line of text or a button changes size.
Two radii belong to one step when the eye can't tell them apart at the size they're used. The rule that falls out of that is steps at least one base unit apart, never half-steps, and a scale short enough that every step has a class to serve.
The systems that have published a scale agree on the shape. Material 3 launched its shape scale with seven steps (none, extra-small 4dp, small 8, medium 12, large 16, extra-large 28, full) because it serves products of every character; a single product uses three or four of them. shadcn/ui goes the other way and derives its whole set from one --radius variable, with the smaller steps computed by subtracting a few pixels, which is the right instinct: one decision, and the rest follows. Carbon is the sharp system, drawing nearly every control and container square and rounding little beyond its tags and toggles. Apple's HIG asks for concentric corners when shapes nest, which is section III. Linear keeps its radii small and few, and the restraint is a large part of why the product reads as a precise tool.
The role layer is the point. A product that changes character (section X) changes four role assignments, not four hundred components; and a reviewer who sees border-radius: 6px anywhere outside the token file has found a defect without needing to look at the screen.
When one rounded shape sits close inside another, the inner radius is the outer radius minus the inset between them: r = R − d. Then both arcs share a center, the band between the shapes is the same width all the way round, and the pair reads as one object. Call this concentric corners. An inner corner is never rounder than the corner around it.
Each frame below has the same container (R 24px, exaggerated so the geometry reads at a glance) and the same 8px inset; only the inner radius changes. The dashed circles are the two arcs, the dots their centers, and the short black line measures the band on the diagonal, where the eye checks it.
The geometry explains the feeling. With equal radii the inner arc's center sits d further in on both axes, so on the diagonal the band is d × √2, 41% thicker than on the sides; the corners look padded. A larger inner radius makes it thicker still, and makes the child look rounder than the thing holding it, which reads as a part from another kit. A square child in a rounded container is the opposite: its corner reaches toward the outer curve, and the band pinches to almost nothing. Only R − d gives a constant band, because only then do the arcs share a center.
The formula is for children that hug their container. When the inset is at least the outer radius, R − d is zero or negative, and the corners are far enough apart that the eye no longer reads them as a pair. Then the child takes its own class step from the scale, with one constraint that never lapses: it is no rounder than its container. A button 12px inside an 8px card is a control, so it is sm 4; a field 24px inside a 12px dialog is sm 4. The scale's ordering (control under container under overlay) satisfies the constraint automatically, which is the second reason classes beat per-component choices.
Full is a shape, not a size, and shapes are exempt. An avatar, a status dot, a switch knob, or a chip declared a pill is round wherever it sits, the same way a circle drawn on a square sheet doesn't violate anything. The rule is about rounded rectangles: a rectangle rounder than its container is the failure, and the pill button in a square card from section I is the most visible version of it. Its fault isn't geometry. It is two characters in one component, and section X takes it up.
Measure the inset from the container's outer edge, border included. A card with a 1px border and 3px of padding holds its cover 4px from the edge, and the cover is concentric at R − 4. That keeps the arithmetic in whole steps; measuring from inside the border gives r = 7 and an off-scale value nobody can name.
The same expression drives every hugging pair in the system: menu and item, segmented tray and selected segment, dialog and inset preview, card and cover. Because the scale's steps are one base unit apart and the hugging inset is usually one base unit, the result always lands on a step. When it doesn't, that is the signal that either the inset or the radius is off-scale.
Radius follows the element's class, and the classes are already ordered by size, so larger things get larger radii without anyone computing one; within a class the radius holds across every size of the element, and it never changes with density. The one size check worth making is the ratio of radius to height: keep at least a third of the side straight, or go to full.
The middle column is the most common radius bug in product UI, and it comes from writing a pill as a number. Someone sets a chip to border-radius: 10px because the chip is 20px tall; then it gets a larger font, or a second line, or is reused at 24px, and it is no longer a pill and not yet a rounded rectangle. Write a pill as 9999px, which the browser clamps to half the shorter side at any size, and write everything else from the scale. The uncanny zone, roughly a third to a half of the height, is never a destination.
The ratio is also why one control step can serve every control size. At sm 4, a 24px compact button sits at .17 and a 40px large one at .10: the larger looks a little crisper, which is what larger buttons should look like, and neither is near the zone. A product with friendly 8px controls should check its smallest control: 8 on a 24px chip is .33, the edge. The fix there is to make small controls pills, not to invent a 6.
Spacing I §VII decides the density posture once for the system, and it moves insets, control heights, and row heights together. Radius isn't on that list, by design. Radius encodes character, and character doesn't change with how much fits on the screen. A team that scales radius with posture ships a compact mode that looks like a technical tool and a comfortable mode that looks like a consumer app, and users switching between them think they changed products.
An element that touches the frame's edge has no corner to round. The top bar, the sidebar, an inspector, a drawer's docked side, a full-bleed banner: each is a region of the frame (Grid I §II), not an object on it, and rounding it opens a notch of canvas where it meets the window. Their radius is none. Corners belong to things that float free of the frame: the cards in the main region, the drawer's two free corners, the dialog.
Pills carry one more size rule, because their ends eat into the space for text. A pill's straight run begins half its height in from each end, so its inline padding should be at least four-tenths of its height: 13px on a 32px pill button, 8px on a 20px chip. Less and the first and last letters crowd the curve. The rest of a pill's proportion is Button Taxonomy's to decide.
Draw every border in the system at 1px, in a tinted dark at low alpha, and reserve 2px for exactly two states: focus and selection. One weight means "edge," the other means "this one, now," and the meaning survives only if nothing else is drawn at 2px.
Half-pixel borders are drawn as one device pixel on a 2× display and rounded up to a full CSS pixel on a 1× display, so the same token produces two different weights depending on the screen the reviewer happened to use. Text Inputs §IV notes that they need a darker color to stay visible, which is the tell: a 0.5px border at a usable color is a 1px border at a lighter one, with worse behaviour. Weights above 1px at rest stop describing an edge and start drawing an outline, the graphic style of brutalist and playful systems. That's a character choice, and the Button chapter's §IV describes it; in a neutral product it's what section I's "featured" card did by accident.
Write the hairline as the paper's dark at low alpha, rgb(46 40 30 / .14), rather than as a solid light gray. A solid gray is a fixed color, so its contrast depends on what it lands on: on white it is a hairline, on a tinted sidebar it is barely there, and on a darker surface it becomes a pale halo. An alpha border darkens whatever is beneath it by the same proportion, so it holds its contrast on every surface. It is the same tint Elevation uses for shadow (Elevation I §III), for the same reason.
The ratio stays at 1.3 whether the card sits on white, on the warm canvas, or on a toned sidebar; the solid gray falls from 1.32 to 1.04. In dark mode the same idea inverts: borders are white at low alpha, which brightens whatever is under them, and the inverse token below is that value.
Strong is not a stylistic step; it is a legal one. WCAG 2.2 §1.4.11 requires 3:1 against the adjacent color for the visual boundary needed to identify a control, so an input whose only boundary is its border can't wear the 1.3:1 hairline a card wears. At .52 alpha the control edge reaches 3.2:1 on white and 3.0:1 on the toned region. Cards are exempt, because a card isn't a control; a checkbox, a text field, and an outlined button with no fill are.
Focus and selection are the 2px states, and both must be drawn without changing the element's box. A border that grows from 1 to 2px moves the content by a pixel and shifts every sibling after it. Selection adds an inset ring inside the 1px border; focus draws a ring outside it (section VIII).
Bound a surface with one thing: a border if it is an object on the page, a fill if it is a region with a different role, and nothing at all if it is only a group of content, which is the default. Shadow is not one of the options for a surface on the page. It belongs to surfaces above the page, and Elevation I §II decides when that is true; this section decides everything below that line.
A white card on the canvas, bounded by the 1px hairline. It can be picked, opened, or compared.
A sunken well holding attachments. The tone says "a different place"; the objects inside carry the borders.
Two sections of a settings page. A heading and a gap from the spacing scale do the bounding.
A card with a radius and no boundary. The corners are invisible, so the radius says nothing.
Three cues on a flat card, each added because the others "weren't enough." It claims to float and doesn't.
Every group bordered. Three edges and three insets to reach one line of content.
The choice comes from what the surface is, not from how much separation it seems to need. An object, something the user can pick, open, drag, or compare with its neighbours, gets a border, because an object has an edge. Cards, table frames, a panel holding a form, a tile in a picker. A region, a part of the screen with a different job, gets a fill one tonal step away from its surroundings and no border: a sidebar, a toolbar band, a well, a code block (Elevation calls the step below the page sunken). A group, a set of content that belongs together, gets nothing, and the spacing scale's gaps and a heading do the work (Spacing I §V). Most of a settings page, most of a detail screen, and every form section are groups.
| It is | Bound it with | Radius | Examples |
|---|---|---|---|
| An object | 1px · --border-default | Its class step | Card, table frame, picker tile, attachment row, the panel around a form. |
| A region | Fill · one tonal step | none if docked, md if not | Sidebar, toolbar band, well, code block, an empty-state tray. |
| A group | Nothing · a gap and a heading | None to draw | Form sections, settings sections, the blocks of a detail screen. |
| Above the page | Elevation's level · shadow + --border-subtle | md or lg | Menu, popover, dialog, toast. Elevation I §IV. |
Combining is allowed in one case only, and it is Elevation's: a surface above the page wears its shadow for height and a subtle hairline for a crisp edge, because a white menu over a white card has a soft boundary without one. Everything below the page wears one cue. Never border, fill, and shadow together, and never a border on a toned region: a sidebar a step darker than the canvas and outlined has spent two cues to say one thing, and the edge it draws competes with the cards inside it.
The white-on-white card is the reverse failure and the reason radius depends on this section. A corner is only visible where the surface has a boundary. A card with neither a border nor a fill contrast has a radius nobody can see, and teams discover it when someone adds a hover tint and the "square" card turns out to be rounded.
Divide repeated rows of equal weight that the eye has to track across, and let whitespace separate everything that has a heading. A divider is a hairline in --border-subtle, drawn between items and never after the last one, so that no edge on the screen is ever drawn twice.
Divide when the eye must track a row. A dense table, a menu with groups, a list whose rows carry several columns: each row is a line the reader follows across, and a hairline keeps them from merging. Don't divide what a heading already separates. Form sections, settings groups, cards in a grid, and the blocks of a detail screen are separated by the stack gaps of the spacing scale, and a rule under every heading adds a line without adding information. In section VI's terms, rows are slices of one object and need an edge between them; sections are groups and need none.
Draw dividers between, never around. The usual implementation, a border-bottom on every row, puts a line under the last row that lands on the container's bottom edge and doubles it, and a heading with its own rule does the same at the top. Use the sibling combinator (.row + .row) or a gap with a background, so the container's edge is the only edge at its ends. The same applies wherever a bordered element meets a divider: a bordered table inside a section that already has a rule, or a toolbar with a bottom border sitting on a table with a top one. Where two edges meet, delete one.
Inset or full-bleed is an alignment decision, and Grid & Layout made it: a divider starts at the rail its row's text starts on (Grid II §X). In a list with leading avatars or icons, that rail is the text, so the divider is inset past the avatar and the avatars read as a column of their own; in a table, the first column's text is the rail and the dividers run the full width. The color is --border-subtle, one step lighter than the container's edge, so the frame reads as the object and the dividers as its interior.
On an outlined control the border is the control's edge, so its states change the edge's color and never its width: hover darkens it one step, error recolors it, and focus adds a 2px ring outside it, offset 2px, whose radius is the control's radius plus the offset. Drawn that way the ring is concentric with the control, nothing moves when focus arrives, and the 2px weight keeps its one meaning.
Use outline with outline-offset for the ring. Current browsers draw an outline that follows border-radius, enlarging the radius by the offset, so the ring is concentric for free, the same r = R − d of section III run outward. An outline also takes no space, so focus moves nothing, and it survives forced-colors mode, where a box-shadow ring is removed. The offset is a strip of the surface color between the control's edge and the ring, which lets the ring read against any border color, including a dark error edge.
Everything with a visible edge at rest follows the same contract: inputs, select triggers, outlined buttons, checkboxes, segmented controls, chips that can be toggled. Rest is --border-strong at 1px. Hover darkens that edge one step and changes nothing else; a hover that adds a fill to an input competes with the text the user is about to type. Focus is the ring, at the control's radius plus the offset, and a full control (a pill button, a chip) gets a pill ring, which the outline handles without a special case. Error recolors the 1px edge and adds a message; it never thickens the border, because a field that is both in error and focused must show both, and the ring is already the 2px element. Disabled lightens the edge to --border-default, below the 3:1 line, which is permitted for inactive controls and is how the user can tell.
Segmented controls and chip groups add one case: the group's outer edge is the object, and the selected item is a hugging child. The selected segment's radius is the tray's radius minus the tray's padding, which is section III again; a segmented control is the second most common place to find an inner corner rounder than its outer one, after the card cover.
Media takes its corner from its container: flush media is clipped by the container, inset media is concentric with it, and only free-standing images take a class step of their own. Avatars are the exception that proves the rule: people are circles, things are rounded squares, everywhere.
Flush media is clipped, not rounded. An image that runs to the edge of a card should have no radius of its own; give the card overflow: hidden (or overflow: clip) and the browser clips the image to the card's inner edge, whose radius is the card's radius minus its border, exactly. An image rounded by hand to the card's radius sits inside a 1px border with a 1px-too-large corner and leaves a sliver; an image not rounded at all pokes through the corner, as on the left. Inset media follows section III: a cover 4px inside an 8px card is 4. Free-standing images (a gallery tile, a photo in an article) take the container step, md, because they are objects.
Avatars are shapes and take full, everywhere, at every size: a circle says "a person" so consistently across the industry that a square person reads as an organisation. That gives the second shape its job. Teams, branches, workspaces, and other non-people get a rounded square at md, and the distinction then carries meaning at a glance in a mixed list. An overlapping stack separates its avatars with a 2px ring in the surface color, which is a border by another name: the one place a 2px edge is not a state, because it is drawn in the background color and reads as a gap.
Apple draws its corners as continuous curves: the curvature ramps up from the straight side instead of jumping to a constant arc, which removes the faint kink where a circular corner meets its edge and makes large rounded shapes look smoother. The difference is real, and the figure exaggerates it to show where: at a 52px radius on a large surface, the continuous corner starts turning earlier and sits tighter on the diagonal. CSS has begun to gain a native form of it in the corner-shape property, which ships in Chromium first.
For product UI, border-radius is enough. At the radii this chapter recommends, 4 to 12px, the two curves differ by less than a pixel, and nobody can see it on a button or a card. The squircle matters for icons, app tiles, and large hero surfaces at 24px and up, where it is a brand decision; and if a system adopts it, it adopts it everywhere through the same tokens, never on one component.
Pick one character for the whole product, write it as four role values, and apply it everywhere; any of the four honest characters works, and mixing two of them is the failure users feel without being able to name. The switcher below changes only the role variables on one screen.
Each honest character is internally consistent, and each reads as a different kind of product before the first word is read. Sharp is technical and editorial: data tools, developer tools, institutions, newsrooms. It demands the most precise spacing, because there are no soft corners to forgive a misaligned edge. Neutral is the contemporary default and the reference scale of this chapter: it says nothing in particular, which is what most work software should say. Friendly rounds everything one step: still a tool, but one that wants to be approachable, common in consumer-facing SaaS. Consumer makes controls pills and containers soft, and it is the right choice for products used occasionally, on phones, by people who didn't choose the software. The ranges agree with Button Taxonomy I's shape table; this chapter adds that the button's choice must be the whole product's.
| Character | Control · field · container · overlay | Reads as | Fits |
|---|---|---|---|
| Sharp | 0 · 0 · 0 · 0 | Precise, authoritative | Analytics, developer tools, editorial, institutional. |
| Neutral | 4 · 4 · 8 · 12 | Contemporary, quiet | Most work software. The default when nothing argues otherwise. |
| Friendly | 8 · 8 · 12 · 16 | Approachable | Consumer-facing SaaS, education, health. |
| Consumer | full · 12 (full if short) · 16 · 24 | Informal, energetic | Occasional-use and mobile-first products. |
The consumer row keeps text fields at 12 rather than full, following Text Inputs I §III: a pill is right on a short search field and peculiar on a full-width one. That's the only place a character's controls disagree, and it is principled: the field is a different class from the button once it gets long.
Pick from the product's posture, not from taste: who uses it, how often, and how much they need to trust its precision. Then hold it. The Mixed setting is what drift produces when several teams each pick well: pill buttons from the marketing site, a 2px search field from an old component library, square cards from a data team, rounded covers from a design-tool template. No single choice is wrong, and the screen reads as nothing. The fix is never to round or sharpen one more component; it is to reset the four role values and let every component inherit them.
Count the distinct radii on a screen: the count should equal the number of steps in use, and on most screens that is three or four. Here is section I's screen after one pass of the audit: same components, same content, four values.
| Check | Found in §I | Fix |
|---|---|---|
| Distinct radii | 2, 4, 6, 8, 10, 12, 16, plus 0 and full | none, sm 4, md 8, full: the four steps this screen's classes need (§II). |
| Uncanny ratios | 12 on a 26px search, 10 on 22px chips, 6 on 18px statuses | Search at sm; chips and statuses full (§IV). |
| Inner vs outer | 12px cover in an 8px card; square cover in another; pill button in a square card | Covers at md − 4 = sm; buttons at the control step (§III). |
| Border weights | 2px on the "featured" card | 1px everywhere; featured is a badge, not an edge (§V). |
| Stacked cues | Panel with border, fill, and shadow | A docked region: square, one hairline on its inner edge (§IV, §VI). |
| Doubled rules | Heading rule on the box's top; last row's rule on its bottom | Dividers between rows only; no rule under the heading (§VII). |
Count the radii. Every distinct computed border-radius should be a step, and the number of distinct values should be the number of classes on the screen. The console makes the count exact and finds the two nesting failures at once: a child rounder than the nearest rounded ancestor, and borders at 2px that aren't focus or selection.
Find the uncanny ratios. For every element whose radius isn't full, divide by its height; anything between a third and a half is a pill written as a number. Find stacked cues. Any element at level 0 with a border, a non-transparent background different from its parent's, and a box-shadow is wearing three answers. Find doubled rules. Look at the ends of every list and table, and wherever a toolbar meets the table under it; two 1px lines touching read as one 2px line, and the screenshot at 2× shows them plainly. Focus every control. Tab through the screen and check that each ring follows its control's corner outward, that nothing moves, and that pills get pill rings.
Mobile is a reducing layer, and for corners it reduces one thing: things that were floating become docked. A dialog that becomes a bottom sheet keeps lg on its two free top corners and goes square on the three edges it shares with the screen; a card grid that becomes a full-width list loses its card corners and becomes rows with dividers. The scale and the character don't change at all, which is the point of having them.
Decide corners and edges once, for the system, in this order; decided per component, they drift into section I's screen within a release. Each step depends on the ones before it.
Steps one through seven are tokens and component contracts, and they change only when the product changes character. Step eight is the habit that keeps them true: one console snippet and one pass with the Tab key.
Radius values in components. A border-radius with a literal anywhere but the token file. Each one is a step nobody named, and seven of them are section I's screen.
Pills written as numbers. A 10px radius on a 20px chip is a pill only until the chip changes size. Write 9999px.
Inner corners rounder than outer ones. The cover, the selected segment, the menu item, the pill button in a square card. Hugging children are concentric; the rest take a smaller step.
Two-pixel borders at rest. They spend the only weight that means "focused" or "selected," and they move content when they appear.
Border, fill, and shadow on one flat surface. One cue per surface on the page; shadow only above it.
Rules on both sides of an edge. A heading rule on a bordered box, the last row's rule on the container's bottom. Where two edges meet, delete one.
This part has been about the static edge: the corner, the hairline, and the rules that relate them. Part II takes up the edge under pressure: borders in dark mode and on imagery, selection outlines across dense collections, and how corners and edges behave as surfaces change size and state.
Part I of Border & Radius.
A product has one corner. Everything else is that corner at a different size.