material-design-3-shape

Implements Material Design 3 Expressive shape tokens, corner radii, and morphing shapes in CSS.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/pohlai88/afenda-xforge-v5 --skill material-design-3-shape-pohlai88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: material-design-3-shape
Source: https://github.com/pohlai88/afenda-xforge-v5/tree/main/.agents/skills/material-design-3-shape
Command: npx skills add https://github.com/pohlai88/afenda-xforge-v5 --skill material-design-3-shape-pohlai88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Applying Material Design 3 shape guidelines consistently is difficult because corner radius values, component-specific rules, and the new M3 Expressive shape library are spread across dense specification documents. This Skill provides the complete shape token system and per-component rules so interfaces follow M3 Expressive shape and containment principles correctly. ## Core Features & Use Cases - Shape Token System: Defines the full M3 Expressive corner radius scale (None through Extra Extra Large and Full) as CSS custom properties with semantic component tokens. - Component Shape Guidelines: Provides exact border-radius rules for buttons, cards, dialogs, bottom sheets, text fields, chips, FABs, and segmented button groups. - Expressive Shapes and Morphing: Covers the 35-shape M3 Expressive library with clip-path and border-radius implementations plus shape morphing transitions for state feedback. - Use Case: When building a dialog component in a design system, use this Skill to apply the correct 32dp extra-large radius, define the shape tokens, and add a smooth morphing transition on expansion. ## Quick Start Apply Material Design 3 shape guidelines to style my card and dialog components with the correct corner radius tokens.

Frequently Asked Questions about material-design-3-shape

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Material Design 3 shape tokens in CSS?

Define CSS custom properties for each corner radius step, from --md-sys-shape-corner-none (0px) through --md-sys-shape-corner-full (9999px). Then create semantic component tokens like --md-sys-shape-button that reference the scale values instead of hard-coding pixels.

What border radius should Material Design 3 components use?

M3 Expressive assigns radii per component: buttons use full radius (pill shape), cards use 12dp medium, dialogs use 32dp extra-large, bottom sheets use 48dp on top corners, text fields use 4dp, and chips use 8dp. FABs scale from 12dp to 32dp by size.

What are the new shape values in M3 Expressive?

M3 Expressive updates Large to 20dp (from 16dp), Extra Large to 32dp (from 28dp), adds a new Extra Extra Large step at 48dp, and redefines Full as 100% rather than 50%. It also introduces a library of 35 decorative shapes that support morphing.

How do I animate shape morphing between states in CSS?

Transition the border-radius property with a spring-like cubic-bezier easing such as cubic-bezier(0.2, 0, 0, 1) over 200-400ms. For expressive shapes, animate clip-path between polygon values or use the Web Animations API for circle-to-polygon morphs.

Does animating border-radius hurt rendering performance?

Border-radius animations are GPU-accelerated and generally safe, but animating many elements simultaneously or using clip-path heavily can be expensive. Apply will-change only during active morphs and remove it once the element settles.

When should I avoid using expressive shapes from the M3 library?

Abstract shapes like Burst, Puffy, and Flower should not serve as primary content containers because they reduce clarity and usability. Reserve them for moments of delight such as loading states, celebrations, and onboarding emphasis.