M3 Expressive, Google's 2025 update to Material Design, added a library of 35 shapes, from simple circles and pills to cookies, clovers, bursts and a heart. Android 16 apps use them for avatars, image crops, loading indicators and morphing buttons.
The shapes here are drawn with a JavaScript port of the androidx graphics-shapes RoundedPolygon code and the MaterialShapes definitions from Jetpack Compose, so the curves match Compose's shapes. Each one is normalized to a square, like MaterialShapes in Compose.
Add androidx.compose.material3 1.4 or newer, opt in to ExperimentalMaterial3ExpressiveApi, and clip any composable with Modifier.clip(MaterialShapes.Cookie9Sided.toShape()). The shapes are RoundedPolygon objects, so you can also morph between two of them with Morph.
35. Circle, Square, Slanted, Arch, Fan, Arrow, SemiCircle, Oval, Pill, Triangle, Diamond, ClamShell, Pentagon, Gem, Sunny, VerySunny, Cookie4Sided, Cookie6Sided, Cookie7Sided, Cookie9Sided, Cookie12Sided, Ghostish, Clover4Leaf, Clover8Leaf, Burst, SoftBurst, Boom, SoftBoom, Flower, Puffy, PuffyDiamond, PixelCircle, PixelTriangle, Bun and Heart.
Yes. Download the SVG, or copy the CSS mask, which clips any element (an image, an avatar, a button) to the shape and scales with it.
No. The shape scale sets corner sizes for components, from extra small (4dp) to extra extra large (48dp). The shape library is a set of decorative shapes. The type and shape tool covers the corner scale.