Material design

From vinnie357/claude-skills · View interactive version

Material design is an AI agent skill from the GitHub repository vinnie357/claude-skills. Guide for implementing Material Design 3 (Material You). Use when designing Android apps, implementing dynamic theming, or following Material component patterns.

How to use this skill

Skill file

Material Design 3 (Material You)

Apply Google's Material Design 3 principles when designing and developing user interfaces with emphasis on personalization, accessibility, and cross-platform consistency.

Anti-fabrication

This skill follows core:anti-fabrication. The claim area is the tonal-palette, type-

scale, and layout-breakpoint numbers, which come from a living spec rather than a

versioned release. Verified against m3.material.io plus the first-party

material-color-utilities source (claude-skills-223), three corrections: tonal palettes

have 13 tones (0,10,20...90,95,99,100 per commonTones), not "50-99 tones per color";

the type scale is 5 categories x 3 sizes = 15 styles total, not "5 display sizes and 9

text sizes" (the sp values 57/32/16/11 were already correct); and MD3 now defines 5

window-size classes, not 3 — Expanded is capped at 1199dp, with Large and Extra-large

added above it. Re-verify against m3.material.io before asserting a token count or

breakpoint this skill doesn't cover — Google updates this spec continuously, with no

versioned release to pin against.

What is Material Design 3?

Material Design 3 (Material You) represents Google's latest design system with:

Key Differences from Material Design 2

| Aspect | MD2 | MD3 |

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

| Colors | Fixed brand palettes | Dynamic, user-generated schemes |

| Customization | Limited theming | Highly personalized |

| Components | Flat, rigid shapes | Rounded, expressive |

| Accessibility | Basic support | Priority built-in |

Core Foundations

1. Dynamic Color System

Material Design 3 uses HCT (Hue, Chroma, Tone) color space for perceptually accurate color generation.

Key concepts:

2. Typography

Type scale with 5 categories (display, headline, title, body, label), each with 3 sizes (large, medium, small) — 15 styles total:

Quick example:

3. Layout

Responsive breakpoints and grid system:

Component Guidelines

Material Design 3 provides specifications for:

Full specifications for every component live at m3.material.io (linked under Resources).

Quick Component Examples

Buttons

// Jetpack Compose
Button(onClick = { }) {
    Text("Filled Button")
}

OutlinedButton(onClick = { }) {
    Text("Outlined Button")
}

Cards

Card(
    modifier = Modifier.fillMaxWidth(),
    elevation = CardDefaults.cardElevation(defaultElevation = 6.dp)
) {
    Column(modifier = Modifier.padding(16.dp)) {
        Text("Card Title", style = MaterialTheme.typography.headlineSmall)
        Text("Card content", style = MaterialTheme.typography.bodyMedium)
    }
}

Text Fields

OutlinedTextField(
    value = text,
    onValueChange = { text = it },
    label = { Text("Label") },
    supportingText = { Text("Helper text") }
)

Implementing Dynamic Color

Android (Jetpack Compose)

val dynamicColor = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S

val colorScheme = when {
    dynamicColor && darkTheme -> dynamicDarkColorScheme(LocalContext.current)
    dynamicColor && !darkTheme -> dynamicLightColorScheme(LocalContext.current)
    darkTheme -> darkColorScheme()
    else -> lightColorScheme()
}

MaterialTheme(
    colorScheme = colorScheme,
    typography = Typography,
    content = content
)

Web

Use Material Web Components (linked under Resources) for web implementation.

Motion and Animation

Material Design 3 motion principles:

Accessibility

Material Design 3 prioritizes accessibility:

Load /design:accessibility for WCAG implementation guidance.

Key Principles

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.