Token导航 LogoToken导航

Agent Skill · 前端设计

material-design-3-shape(材料设计 3 形状)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

material-design-3-shape 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 7,903。

总安装 329周安装 14GitHub Stars 2下载 115核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:material-design-3-shape(材料设计 3 形状)
来源仓库:https://github.com/shelbeely/shelbeely-agent-skills
仓库路径:skills/material-design-3-shape
安装命令:
npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill material-design-3-shape
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill material-design-3-shape

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

material-design-3-shape 用于辅助界面设计、视觉规范、排版、配色和布局优化,适合生成 UI 方案或改进组件层级。适用于需要结合品牌与设计系统的视觉设计任务。通过 npx skills add 命令从 GitHub 仓库安装并使用该技能。使用时需结合现有品牌与用户任务,不应只堆装饰元素。

涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出与对齐。

来源仓库内路径:skills/material-design-3-shape

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill mater…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

material-design-3-shape 怎么安装?

在终端执行 npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill material-design…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

material-design-3-shape 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

material-design-3-shape 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill material-design-3-shape 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

material-design-3-shape 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

material-design-3-shape 用的人多吗?

公开数据是累计安装 329 次,近一周安装 14 次,下载 115 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

material-design-3-shape 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
material-design-3-shape

材料设计 3 形状 · 本页

3292执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Material Design 3 Shape and Containment

Overview

This skill guides the implementation of Material Design 3 (M3) Expressive shape and containment principles to create friendly, approachable, and visually distinct interfaces.

Keywords: Material Design 3, M3, shape, rounded corners, border radius, containment, containers, morphing shapes, component shapes

Core Principles

Shape Philosophy

M3 Expressive uses shape to:

  1. Create Personality: Distinctive shapes make interfaces memorable and approachable
  2. Establish Hierarchy: Different corner radii indicate importance and containment levels
  3. Express Brand: Shape language can be customized to match brand identity
  4. Guide Attention: Rounded corners naturally draw the eye and feel inviting
  5. Support Interaction: Shape morphing provides visual feedback

Shape Characteristics

Rounded Corners (Primary characteristic):

  • M3 favors rounded corners over sharp angles
  • Corners create a friendly, modern aesthetic
  • Different radii for different component types

Morphing Shapes:

  • Shapes can transform dynamically between states
  • Corner radius can animate smoothly
  • Supports expressive interactions

Asymmetry (When appropriate):

  • Not all corners need the same radius
  • Strategic asymmetry adds interest
  • Use sparingly for special emphasis

Shape Scale System

M3 Expressive defines an updated shape scale with semantic naming and expanded corner radius tokens:

Shape Families

None (0dp):

  • Full-bleed surfaces
  • App backgrounds
  • No rounding needed

Extra Small (4dp):

  • Small buttons
  • Chips
  • Badges
  • Input fields

Small (8dp):

  • Text buttons
  • Outlined buttons
  • Small cards

Medium (12dp):

  • Standard buttons
  • Cards
  • Bottom sheets

Large (20dp — updated from 16dp):

  • Large cards
  • Featured content
  • FABs (Floating Action Buttons)

Extra Large (32dp — updated from 28dp):

  • Hero cards
  • Featured images
  • Special containers
  • Dialogs

Extra Extra Large (48dp — new in M3 Expressive):

  • Modal sheets
  • Full-screen overlays
  • Major hero elements

Full (100% of corner radius — now defined as 100% rather than 50%):

  • Pills
  • Circular buttons
  • Profile avatars
  • Fully rounded elements

Shape Tokens

Define shape tokens using CSS custom properties:

:root {
  /* Corner radii — updated for M3 Expressive */
  --md-sys-shape-corner-none: 0px;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 20px;
  --md-sys-shape-corner-extra-large: 32px;
  --md-sys-shape-corner-extra-extra-large: 48px;
  --md-sys-shape-corner-full: 9999px;

  /* Component-specific shapes */
  --md-sys-shape-button: var(--md-sys-shape-corner-full);
  --md-sys-shape-card: var(--md-sys-shape-corner-medium);
  --md-sys-shape-dialog: var(--md-sys-shape-corner-extra-large);
  --md-sys-shape-fab: var(--md-sys-shape-corner-large);
  --md-sys-shape-chip: var(--md-sys-shape-corner-small);
  --md-sys-shape-text-field: var(--md-sys-shape-corner-extra-small);
  --md-sys-shape-bottom-sheet: var(--md-sys-shape-corner-extra-extra-large);
}

Expressive Shape Library

M3 Expressive introduces a library of 35 decorative and functional shapes that go beyond simple rounded rectangles. These shapes can be applied to components, backgrounds, and decorative elements, and they support smooth morphing between one another.

Complete Shape Catalog

Geometric Shapes:

  • Circle, Square, Slanted Square, Oval, Pill, Semi Circle, Triangle, Diamond, Pentagon, Gem, Arch

Organic and Playful Shapes:

  • Flower, Puffy, Puffy Diamond, Clover 4, Clover 8, Bun, Heart, Ghostish, Clam Shell

Burst and Star Shapes:

  • Sunny, Very Sunny, Burst, Soft Burst, Boom, Soft Boom, Fan, Arrow

Cookie Shapes (scalloped edges):

  • Cookie 4, Cookie 6, Cookie 7, Cookie 9, Cookie 12

Pixel Shapes:

  • Pixel Circle, Pixel Triangle

When to Use Expressive Shapes

  1. Moments of Delight: Use decorative shapes to create visual surprise (loading states, celebrations, onboarding)
  2. Brand Expression: Choose shapes that reflect brand personality
  3. State Feedback: Morph shapes to communicate state changes (e.g., a circle morphing into a burst on completion)
  4. Visual Tension: Combine sharp and rounded, symmetrical and asymmetrical forms for dynamic interest
  5. Sparingly for Clarity: Abstract shapes (Burst, Puffy, Flower) should be used for emphasis — not as primary containers for content

CSS Implementation of Expressive Shapes

/* Using clip-path for expressive shapes */
.shape-flower {
  clip-path: polygon(
    50% 0%, 61% 11%, 75% 0%, 80% 15%,
    100% 15%, 90% 30%, 100% 50%, 85% 55%,
    100% 75%, 80% 75%, 75% 100%, 61% 85%,
    50% 100%, 39% 85%, 25% 100%, 20% 75%,
    0% 75%, 15% 55%, 0% 50%, 10% 30%,
    0% 15%, 20% 15%, 25% 0%, 39% 11%
  );
}

/* Using border-radius for organic shapes */
.shape-bun {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Heart shape */
.shape-heart {
  clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z');
}

Component Shape Guidelines

Buttons

Filled Buttons:

  • Border radius: Full (50%)
  • Completely rounded ends
  • Standard height: 40dp
.button-filled {
  border-radius: var(--md-sys-shape-corner-full);
  padding: 10px 24px;
  height: 40px;
}

Outlined Buttons:

  • Border radius: Full (50%)
  • Same as filled buttons
  • 1px outline

Text Buttons:

  • Border radius: Full (50%)
  • No background until hover
  • Slightly less padding

FABs (Floating Action Buttons):

  • Medium FAB: 40×40dp, 12dp radius (replaces deprecated Small FAB)
  • Regular FAB: 56×56dp, 20dp radius
  • Large FAB: 96×96dp, 32dp radius

Cards

Standard Cards:

  • Border radius: 12dp (medium)
  • Consistent on all corners
  • Elevation with shadow
.card {
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 16px;
  background: var(--md-sys-color-surface);
}

Elevated Cards:

  • Same radius as standard
  • Additional elevation (shadow)

Outlined Cards:

  • 1px outline instead of elevation
  • Same corner radius

Dialogs and Sheets

Dialogs:

  • Border radius: 32dp (extra-large — updated from 28dp)
  • Creates distinctive, modern appearance
  • Centered on screen
.dialog {
  border-radius: var(--md-sys-shape-corner-extra-large);
  padding: 24px;
  max-width: 560px;
}

Bottom Sheets:

  • Top corners: 48dp (extra-extra-large — new)
  • Bottom corners: 0dp (none)
  • Slides up from bottom
.bottom-sheet {
  border-radius: var(--md-sys-shape-corner-extra-extra-large)
                 var(--md-sys-shape-corner-extra-extra-large)
                 0 0;
}

Side Sheets:

  • Leading corners: 32dp
  • Trailing corners: 0dp

Input Fields

Text Fields (Filled):

  • Top corners: 4dp (extra-small)
  • Bottom corners: 0dp
  • Creates input well appearance
.text-field-filled {
  border-radius: var(--md-sys-shape-corner-extra-small)
                 var(--md-sys-shape-corner-extra-small)
                 0 0;
  background: var(--md-sys-color-surface-variant);
}

Text Fields (Outlined):

  • All corners: 4dp
  • Consistent roundness
.text-field-outlined {
  border-radius: var(--md-sys-shape-corner-extra-small);
  border: 1px solid var(--md-sys-color-outline);
}

Chips

Input Chips:

  • Border radius: 8dp (small)
  • With or without leading icon

Filter Chips:

  • Border radius: 8dp (small)
  • Toggle selection state

Suggestion Chips:

  • Border radius: 8dp (small)
  • Single action
.chip {
  border-radius: var(--md-sys-shape-corner-small);
  padding: 6px 12px;
  height: 32px;
}

Containment Principles

Container Hierarchy

Level 0 (Backgrounds):

  • No border radius or minimal (0-4dp)
  • Full-screen surfaces
  • App background

Level 1 (Primary containers):

  • 12dp radius
  • Cards, list items
  • Primary content areas

Level 2 (Secondary containers):

  • 12-16dp radius
  • Nested cards
  • Grouped content

Level 3 (Tertiary containers):

  • 16-28dp radius
  • Dialogs, modals
  • Overlay content

Grouped Components

When grouping multiple components:

Adjacent Buttons:

  • Maintain individual radii or
  • Merge into single container with shared radius

Segmented Buttons:

  • First: rounded on left, square on right
  • Middle: square on both sides
  • Last: square on left, rounded on right
.segmented-button:first-child {
  border-radius: var(--md-sys-shape-corner-full) 0 0 var(--md-sys-shape-corner-full);
}

.segmented-button:last-child {
  border-radius: 0 var(--md-sys-shape-corner-full) var(--md-sys-shape-corner-full) 0;
}

.segmented-button:not(:first-child):not(:last-child) {
  border-radius: 0;
}

Toolbars and App Bars:

  • Top app bar: 0dp (or small radius on bottom)
  • Bottom app bar: 0dp (or small radius on top)
  • FAB can extend beyond app bar

Morphing Shapes

State Transitions

Shapes can morph between states to show relationships:

Button Press:

.button {
  border-radius: var(--md-sys-shape-corner-full);
  transition: border-radius 200ms cubic-bezier(0.2, 0, 0, 1);
}

.button:active {
  border-radius: var(--md-sys-shape-corner-medium);
}

Container Expansion:

.card {
  border-radius: var(--md-sys-shape-corner-medium);
  transition: border-radius 300ms cubic-bezier(0.2, 0, 0, 1);
}

.card.expanded {
  border-radius: var(--md-sys-shape-corner-extra-large);
}

Shape Transform:

/* FAB morphing into sheet */
.fab-to-sheet {
  transition:
    border-radius 400ms cubic-bezier(0.2, 0, 0, 1),
    width 400ms cubic-bezier(0.2, 0, 0, 1),
    height 400ms cubic-bezier(0.2, 0, 0, 1);
}

.fab-to-sheet.expanded {
  border-radius: var(--md-sys-shape-corner-extra-extra-large);
  width: 100%;
  height: 400px;
}

Expressive Shape Morphing

M3 Expressive supports smooth morphing between any of the 35 expressive shapes. This creates moments of delight and communicates state changes visually:

Loading State Morph:

/* Circle morphing to burst on completion */
.loading-indicator {
  clip-path: circle(50%);
  transition: clip-path 400ms cubic-bezier(0.05, 0.7, 0.1, 1.0);
}

.loading-indicator.complete {
  clip-path: polygon(/* burst shape coordinates */);
}

Interactive Shape Feedback:

// Using Web Animations API for shape morphing
element.animate([
  { clipPath: 'circle(50%)' },
  { clipPath: 'polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)' }
], {
  duration: 400,
  easing: 'cubic-bezier(0.05, 0.7, 0.1, 1.0)',
  fill: 'forwards'
});

Guidelines for Expressive Shape Morphing:

  1. Use morphing to connect user actions with interface feedback
  2. Shapes should not carry literal meanings — they add aesthetic variety and direct attention
  3. Combine sharp and rounded forms for dynamic visual tension
  4. Use abstract shapes sparingly to preserve clarity and usability
  5. Pair shape morphing with the M3 motion physics system for natural-feeling transitions

Advanced Shape Techniques

Asymmetric Shapes

Use for special emphasis:

.asymmetric-card {
  border-radius: 28px 12px 28px 12px;
}

Custom Shapes

Beyond circles and rounded rectangles:

Cutout Shapes:

.cutout-card {
  border-radius: var(--md-sys-shape-corner-large);
  clip-path: polygon(
    0 0,
    calc(100% - 40px) 0,
    100% 40px,
    100% 100%,
    0 100%
  );
}

Notched Shapes (for special components):

.notched-container {
  border-radius: var(--md-sys-shape-corner-medium);
  position: relative;
}

.notched-container::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: var(--md-sys-color-surface);
  transform: rotate(45deg);
}

Responsive Shapes

Adjust shape based on screen size:

.card {
  border-radius: var(--md-sys-shape-corner-small);
}

@media (min-width: 600px) {
  .card {
    border-radius: var(--md-sys-shape-corner-medium);
  }
}

@media (min-width: 1024px) {
  .card {
    border-radius: var(--md-sys-shape-corner-large);
  }
}

Best Practices

Do's

  1. ✅ Use semantic shape tokens (not hard-coded values)
  2. ✅ Maintain consistency across similar components
  3. ✅ Adjust radius based on component size (larger = more radius)
  4. ✅ Animate shape transitions smoothly
  5. ✅ Consider touch targets (min 48×48dp)
  6. ✅ Use full radius for pill-shaped buttons
  7. ✅ Apply larger radius to overlay content (dialogs, sheets)

Don'ts

  1. ❌ Don't mix sharp corners with rounded in same component family
  2. ❌ Don't use too many different radii (stick to scale)
  3. ❌ Don't make tiny components with huge radii
  4. ❌ Don't forget to adjust padding with border radius
  5. ❌ Don't use square corners unless specifically needed
  6. ❌ Don't ignore the shape scale system
  7. ❌ Don't animate border-radius without performance consideration

Accessibility Considerations

Touch Targets

Ensure interactive elements meet minimum size:

.touch-target {
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--md-sys-shape-corner-full);
}

Focus Indicators

Shape should not obscure focus:

.button:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
  border-radius: var(--md-sys-shape-corner-full);
}

High Contrast

Ensure shape is visible:

  • Use borders or outlines in high contrast mode
  • Don't rely solely on subtle shadows

Performance

Optimization

  1. Use border-radius for simple rounded corners (GPU accelerated)
  2. Use clip-path sparingly (can be expensive)
  3. Animate shape changes with will-change for complex morphs
  4. Avoid animating border-radius on many elements simultaneously
/* Optimize complex shape animations */
.morphing-container {
  will-change: border-radius;
}

.morphing-container.settled {
  will-change: auto;
}

Checklist for Shape Implementation

When implementing M3 shape system, ensure:

  • All shape tokens are defined (extra-small through extra-extra-large and full)
  • Updated corner radius values are used (Large: 20dp, XL: 32dp, XXL: 48dp)
  • Semantic shape tokens used (not hard-coded px values)
  • Buttons use full radius (pill shape)
  • Cards use medium radius (12dp)
  • Dialogs use extra-large radius (32dp)
  • Bottom sheets use extra-extra-large top radius (48dp)
  • Input fields use extra-small radius (4dp)
  • Chips use small radius (8dp)
  • FABs use appropriate radius for size (Medium: 12dp, Regular: 20dp, Large: 32dp)
  • Grouped components handle shared edges correctly
  • Shape transitions are smooth and spring-based
  • Expressive shapes from the 35-shape library are used for moments of delight
  • Expressive shape morphing is applied for state feedback when appropriate
  • Touch targets meet 48×48dp minimum
  • Focus indicators respect rounded shapes
  • Performance is optimized (GPU acceleration)
  • Responsive adjustments for different screen sizes

Resources

平台分布

Codex

34.26%
按下载量换算39

Claude

29%
按下载量换算33

Cursor

17.84%
按下载量换算21

Gemini CLI

9.03%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill material-design-3-shape 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills