返回 Skill 列表
extension
分类: 开发与工程无需 API Key

expressive-design

Material Expressive。为Flutter提供了全面的表达式设计系统指南,并支持Android和Linux桌面平台。涵盖了布局模式(如Bento Grid、Masonry)、颜色标记、字体大小比例、动态规范、形状标记、间距梯度以及用于创建情感吸引人的用户界面的组件增强。包括从标准M3迁移的指导和特定平台集成说明。当Claude需要将表达式设计应用于特定的Flutter小部件(作为参数传递)或UI组件时,或者在回答有关Material 3 Expressive指南的问题时使用。适用于媒体、通信和消费者应用程序;避免用于银行、医疗保健和安全关键型应用程序。

person作者: jakexiaohubgithub

Material Expressive Design System

Material Expressive is Google's most researched design system update, based on 46 studies with 18,000+ participants. It creates emotionally engaging user experiences through strategic use of layout patterns, color, shape, size, motion, and containment.

Core Expressive Elements

  1. Layout Patterns - Modular grids (Bento), masonry, card-based, split-screen, and specialized page structures.
  2. Color & Typography - Expanded tonal palettes, container tiers, emotional selection, and dynamic convergence. Utilizing variable fonts (like Roboto Flex) for flexible text weight and width.
  3. Shape - Expanded library of 35 shapes, expressive radii, containment, visual boundaries, and built-in shape morph motion for decorative visual elements.
  4. Size - Larger touch targets, visual hierarchy. Reintroduces clear functional signifiers to reduce user uncertainty and improve scanning speed.
  5. Motion - New physics-based motion system including spatial springs for realistic object movement and effects springs for seamless color/opacity transitions.
  6. Containment - Surface elevation, tonal separation.
  7. New & Updated Components - Flexible Toolbars, Split Buttons, Progress Indicators (with customizable waveforms and thickness), Button Groups (shape-shifting interactions), and FAB Menus (overflow into mini-menus).

Workflows

Apply Expressive Design

Arguments:

  • widget: The Flutter widget code or description to be transformed.

Steps:

  1. Select Layout Pattern:
    • Read PATTERNS.md to choose a pattern based on the UI's purpose (e.g., Bento Grid for dashboards, Masonry for portfolios). Apply the grid/structure to the widget.
  2. Identify Component Category: Match the widget to a category in COMPONENTS.md (e.g., Button, Navigation, Surface, Input).
  3. Apply Color System:
    • Read COLOR.md to select tonal palettes and apply container tiers for hierarchy.
    • Apply Color Convergence: Merge brand identity with user settings using harmonization and ThemeExtension (see PLATFORMS.md).
  4. Apply Shape System:
    • Read SHAPES.md to use expressive radii (e.g., Full, Extra Large). Ensure consistent rounding for component families.
  5. Optimize Size and Spacing:
    • Read SPACING.md to increase touch targets to 48dp-56dp and apply generous internal padding.
  6. Inject Motion:
    • Read MOTION.md to add energetic state transitions and use expressive easing and durations.
  7. Verify: Cross-reference with CHECKLIST.md.

Topic References

Load these references only when working on a specific aspect of the design system:

  • Foundations & Principles: Core principles, communication, and when to use. See FOUNDATIONS.md.
  • Usability: Design tactics, best practices, and testing. See USABILITY.md.
  • Typography: Scales, values, and type treatments. See TYPOGRAPHY.md.
  • Accessibility: Compliance, screen reader compatibility, and testing. See ACCESSIBILITY.md.
  • Layout Patterns: Bento grid, masonry, cards, hero sections, and page structures. See PATTERNS.md.
  • Platform Specifics: Android (Dynamic Color, Android 16) and Linux Desktop integration. See PLATFORMS.md.