When a shell encloses a panel or a track holds a selection insert, much of the precision sits in a gap only a few pixels wide. Continuity around a corner and breathing room for text need separate measurements.

I start with container offsets and curves, then move to segmented controls, shared seams and progress tracks. The reasoning carries across scales; the dimensions still belong to each specimen.

This article has been reorganized and expanded from the original essay. Specimen values describe their particular conditions, not universal settings. For the series context and tools, see the overview.

Enclosure and corners

Measure the narrow gap and content space separately

Enclosure involves two kinds of padding: the narrow gap from shell to panel and the space from panel to content. Here they are 8 px and 24 px. The first sets the closeness of the seam; the second gives headings and information rows room to breathe.

An outer ring takes no layout space. The panel still sits at 8 px of layout padding, but its 0.5 px ring paints outward into the gap, leaving about 7.5 px of visible shell along straight edges. The 24 px content padding starts at the panel surface boundary, with no physical border to subtract.

An information panel enlarged 2×. Dimension lines measure 8 px of layout padding between shell and panel surface, and 24 px between the surface and its content.
8 px is a layout distance. The outer ring paints into the gap; content padding remains independent.

Let the corners follow the same offset

The nested radii in this evenly inset example are R24, 8 px padding and R16. Their arc centers coincide, keeping the gap continuous through the corner. This subtraction applies to the illustrated equal-offset geometry with no physical border; it is not a fixed formula for every container.

The panel's 0.5 px outer ring has a painted outer radius of R16.5. The surface itself remains R16, and content still begins from the original surface boundary. Be clear about which edge defines layout and which marks the painted extent.

A corner enlarged 6×, with concentric R24 shell and R16 panel arcs. A faint dashed line marks the R16.5 painted extent of the 0.5 px outer ring.
24 − 8 = 16. The ring changes the painted extent, not the panel size or content origin.

Join curvature to the straight edge too

Radius determines how much space a corner occupies, but the junction has another property: how curvature changes as a straight edge enters a curve. A circular arc can have tangent continuity with a straight edge, matching its direction. Curvature, however, jumps from zero on the straight edge to a constant value on the arc.

Curvature continuity also addresses this change. The cubic Bézier curve on the right reaches zero curvature at the junction, joining the straight edge's curvature. Both examples keep the same bounding dimensions, fill, stroke and 32 px corner region. Only the corner curve changes.

Light cards compare a circular arc and a curvature-continuous Bézier corner. A 6× detail marks the shared straight-edge junction, where the right curve reaches zero curvature.
After matching direction, inspect how curvature joins. Both corner regions span 32 px.

The 32 px means different things here: the left is an R32 circular arc; the right specifies where the curve starts turning, without a single center or fixed radius. The right is this specimen's simplified Bézier model. Within nested containers, its inner and outer gaps need fresh inspection; circular-radius subtraction cannot simply be carried over.

Dark cards compare circular and curvature-continuous corners within the same corner region. Overall dimensions and stroke stay fixed; magnification reveals the junction differences.
Continuous curvature can also produce a squarer shape. Judge both the junction and the silhouette.

I return to the full silhouette to judge it. Although the right curve joins continuously, its bending is more concentrated and its appearance squarer. Whether it suits the interface depends on proportions, space and adjacent components. Here it explains a junction; the final workspace retains its original circular corners.

Fitted components

Let the track and selection insert work together

A segmented control keeps its track continuous while a white selection insert uses its own ring and short shadow to identify the current option. This specimen gives the track only a faint inset shadow. The white insert inherits the contour and two depth layers in the surfaces article, with no added inner light.

The track is R14 with 4 px padding; the insert is R10. As with the large panel, 4 px is a layout distance. Once the 0.5 px ring paints outward, about 3.5 px of gray remains visible along straight edges. I like the feeling of a part fitted into a track without raising it far above the surface.

A three-segment control enlarged 2×. The white Library selection sits in a pale-gray track; leaders identify the fine ring, soft shadows and 4 px layout padding, with a layer diagram below.
Track and insert define the gap together. The section below represents layers, not physical height.

Leave one seam within a shared control

A shared seam places the date and arrow inside one outer shape, using a single 1 px internal divider rather than overlapping two separate contours at their join. The divider retreats 8 px from the top and bottom, with slightly rounded ends. It separates action areas without needing to reach the outer frame.

A date and arrow control enlarged 3× share one outer ring and a single 1 px internal divider. A dimension line marks an 8 px inset from the top of the control.
Share the outer shape and divide the inside once. Space at the ends keeps the seam from becoming a wall.

A progress track has its own enclosure

A recessed track brings the same relationship to a smaller scale: a 6 px-high R3 outer track with 1 px padding holds a 4 px-high R2 fill. The 75% value uses the available width after padding is removed, leaving base color around the endpoints.

A 75% progress bar enlarged 4×. A 6 px-high R3 recessed track surrounds a 4 px-high R2 fill, with 1 px between them.
Finish track, fill and endpoints together. A fixed-width percentage keeps value changes from shifting the row.

Only a short dark shadow remains along the track's upper inner edge, with a very faint material highlight on the fill. Its role is limited to this small part; it does not become a white inner light on every solid panel.

A container and its parts fit when distance, curvature, and room for content work together. Before borrowing these values, inspect the visible gap, then check text, targets, and different sizes. Geometric consistency should not come at the expense of content.