Back to Home

Skill for Claude Code: Material Design 3 UI

Skill material-3-skill turns Claude Code into a tool for generating MD3 components, themes, and code audit. Supports Compose with focus on tokens, shape, elevation. Audit by 10 categories detects inconsistencies.

Turning Claude Code into an MD3 expert: generation and audit
Advertisement 728x90

Claude Code's Material Design 3 Expert: Skill for UI Generation and Auditing

The material-3-skill for Claude Code streamlines UI component creation, theming, and code audits to match MD3 specs. Install it in ~/.claude/skills/ and activate with /material-3. It prioritizes Jetpack Compose, with partial Flutter support and limited web compatibility.

Four core modes:

  • Generate components from descriptions.
  • Create ColorScheme from a seed color.
  • Build adaptive Scaffolds.
  • Audit app source code.

Example login form generation:

Google AdInline article slot
/material-3 component Create a login form with email and password fields

Result: Compose code with MaterialTheme, OutlinedTextField, FilledButton, proper spacing, and MD3 elevation.

Theme and Scaffold Generation

Theme command generates a full ColorScheme:

/material-3 theme Generate theme from seed color #1A73E8

Output: primary, secondary, tertiary, surface, error with onPrimary, primaryContainer variants, etc., including dark mode via Material You tonal palettes.

Google AdInline article slot

For app skeletons:

/material-3 scaffold Create responsive shell with navigation

Generates adaptive layouts: bottom nav on mobile, navigation rail on tablets, navigation drawer on desktop using MD3 breakpoints.

Reference File Structure

The skill includes distilled data from m3.material.io and AndroidX Compose Material3:

Google AdInline article slot
material-3-skill/
β”œβ”€β”€ SKILL.md
β”œβ”€β”€ references/
β”‚   β”œβ”€β”€ color-system.md
β”‚   β”œβ”€β”€ component-catalog.md
β”‚   β”œβ”€β”€ theming-and-dynamic-color.md
β”‚   β”œβ”€β”€ typography-and-shape.md
β”‚   β”œβ”€β”€ navigation-patterns.md
β”‚   └── layout-and-responsive.md
β”œβ”€β”€ CONTRIBUTING.md
└── LICENSE (MIT)

Files cover token tables, 30+ component templates mapped to Compose, breakpoints, and standard layouts.

Code Auditing: 10 Check Categories

Audit scans directories like ./app/src/main and evaluates code against:

  • Color tokens β€” use MaterialTheme.colorScheme.primary over hardcoding.
  • Typography β€” styles from MaterialTheme.typography.
  • Shape β€” small, medium, large, extraLarge tokens.
  • Elevation β€” component-specific shadow levels.
  • Components β€” standard over custom.
  • Layout β€” responsiveness and standard patterns.
  • Navigation β€” type by screen size.
  • Motion β€” expressive transitions.
  • Accessibility β€” contrast, touch targets, content descriptions.
  • Theming β€” dynamic colors, dark mode.

Report includes scores, issues, and line-specific fixes.

Platform Support and M3 Expressive

| Platform | Support Level |

|-----------------|------------------------------|

| Jetpack Compose | Full, including Expressive |

| Flutter | ThemeData(useMaterial3: true), ColorScheme.fromSeed |

| Web | Limited, no Expressive |

M3 Expressive (from May 2025) adds typography emphasis, shape morphing, and motion. The skill provides a support matrix: full in Compose, partial in Flutter, none on web.

Installation and Limitations

Clone and copy:

git clone https://github.com/hamen/material-3-skill.git
cp -r material-3-skill ~/.claude/skills/material-3

Or symlink for updates:

ln -s /path/to/material-3-skill ~/.claude/skills/material-3

Limitations:

  • Compose priority, Flutter/web secondary.
  • Spec distillation may lag Google updates.
  • Doesn't replace design decisions (seed color choice, FAB placement).

Key Takeaways

  • Generates code strictly by MD3 tokens, saving manual spec checks.
  • Audits 10 categories with targeted fixes.
  • M3 Expressive support matrix for mid/senior devs.
  • Reference files as quick spec lookup.
  • Honest web support assessment β€” no hype.

β€” Editorial Team

Advertisement 728x90

Read Next