material-3

Implements Material Design 3 UIs with Jetpack Compose, Flutter, and web components.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/DCueto/zen-track --skill material-3-dcueto
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: material-3
Source: https://github.com/DCueto/zen-track/tree/main/ZenTrackApp/.agents/skills/material-3
Command: npx skills add https://github.com/DCueto/zen-track --skill material-3-dcueto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @material/web, and includes references (resource) components.

What problem does it solve? Building UIs that correctly follow Google's Material Design 3 spec requires knowing dozens of design tokens, component variants, adaptive layout rules, and platform differences, which is error-prone when done from memory. ## Core Features & Use Cases - Token and component guidance: Covers the full md.sys token system (color, typography, shape, elevation, motion) and 30+ components with Compose and @material/web mappings. - Adaptive layout patterns: Provides canonical layouts (feed, list-detail, supporting pane), window size classes, foldable posture handling, and responsive navigation patterns. - MD3 compliance audit: Scores an app or page across 10 categories (color, typography, shape, accessibility, etc.) and produces a prioritized fix report. - Use Case: Ask for a responsive app shell with a navigation rail on tablets and bottom bar on phones, and receive spec-correct Compose or web code using proper tokens. ## Quick Start Use the material-3 skill to build a Jetpack Compose settings screen with dynamic color and a navigation bar.

Frequently Asked Questions about material-3

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

FAQPage Schema
How do I implement Material Design 3 in Jetpack Compose?▼

Use androidx.compose.material3 with MaterialTheme, supplying a colorScheme from dynamicLightColorScheme or dynamicDarkColorScheme on Android 12+, or static lightColorScheme and darkColorScheme otherwise. Then use M3 composables like Scaffold, Button, and NavigationBar.

How do I enable Material 3 in a Flutter app?▼

Set useMaterial3: true in ThemeData and generate a scheme with ColorScheme.fromSeed(seedColor: ...). This activates MD3 components, dynamic color support, and the MD3 type scale in your MaterialApp.

Does @material/web support M3 Expressive?▼

No. Material Web Components are in maintenance mode and M3 Expressive is not implemented on the web. Use CSS custom properties with md.sys tokens and easing/duration values as a fallback for motion instead of spring physics.

What is the difference between MD2 and MD3?▼

MD3 replaces elevation shadows with tonal surface colors, generates full color schemes from a single seed color, uses fully rounded corners by default, and adds spring-based motion plus three user-controlled contrast levels. MD2 and MD3 libraries should never be mixed.

How do I make an MD3 layout adapt to tablets and foldables?▼

Use window size classes (Compact under 600dp, Medium 600-839dp, Expanded 840dp+) to switch navigation between bottom bar, rail, and drawer, and apply canonical layouts like list-detail. On foldables, avoid placing interactive content across the hinge.

Why should I avoid hardcoded colors in Material Design 3?▼

Hardcoded hex values break dynamic theming, dark mode, and contrast adjustment. Always use semantic tokens like var(--md-sys-color-primary) on web or MaterialTheme.colorScheme roles in Compose, paired with their intended on-color counterparts.