Layout / The visual dictionary

Padding.

Space between a container's boundary and its contents.

Also calledinner spacinginset
01

See it in context

UI illustration
Padding
Content

Space between a container's boundary and its contents. Keep text and controls inset from edges so the content remains readable and comfortable to interact with.

When to use it

Use it inside cards, buttons, panels, and page containers.

Know the difference

Padding is inside the boundary; margin separates the element from its neighbors.

WebiOSiPadOSAndroidmacOSWindowsLinuxwatchOSWear OStvOSAndroid TVvisionOS

Web · iOS · iPadOS · Android · macOS · Windows · Linux · watchOS · Wear OS · tvOS · Android TV · visionOS

Respect safe-area insets separately from ordinary padding; round watch screens may need extra edge accommodation.

Primary documentation for the pattern and its platform conventions.