[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CXSZFKSSCR0025EQKT632V":3,"skill-same:01M7CXSZFKSSCR0025EQKT632V":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":47},"01M7CXSZFKSSCR0025EQKT632V","material-3",null,"Implement Google's Material Design 3 (Material You) UI system. Primary: Jetpack Compose Material3 (MaterialTheme, components, adaptive layout). Also Flutter and limited web (@material\u002Fweb, maintenance mode). Covers tokens, 30+ components, layout, theming, M3 Expressive (platform matrix), and accessibility. Use when: \"material design\", \"MD3\", \"material you\", \"Jetpack Compose\", \"MaterialTheme\", \"material component\", \"md3 button\".","BotHarness\u002FDeepSeekBot","BotHarness","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F330270786?v=4","01M7CX37EXWM53FHAQ28JNKZTZ","01M7CX37FHA8NY5D2KXFZWV63Y",852,"MIT","https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: material-3\ndescription: >\n  Implement Google's Material Design 3 (Material You) UI system. Primary: Jetpack Compose\n  Material3 (MaterialTheme, components, adaptive layout). Also Flutter and limited web\n  (@material\u002Fweb, maintenance mode). Covers tokens, 30+ components, layout, theming,\n  M3 Expressive (platform matrix), and accessibility. Use when: \"material design\", \"MD3\",\n  \"material you\", \"Jetpack Compose\", \"MaterialTheme\", \"material component\", \"md3 button\".\nuser-invokable: true\nargument-hint: \"[component|theme|layout|scaffold|audit] [description or URL]\"\n---\n\n# Material Design 3\n\nThis skill guides implementation of Google's Material Design 3 (MD3) — a personal, adaptive, expressive design system. MD3 uses dynamic color, tonal surfaces, rounded shapes, and spring-based motion to create UIs that feel alive and personal.\n\n## Philosophy\n\nMD3 is built on three principles:\n- **Personal**: Dynamic color adapts UI to the user's wallpaper or content. Theming is individual, not one-size-fits-all.\n- **Adaptive**: Layouts transform across 5 window size classes. Components resize, reposition, and change form factor responsively.\n- **Expressive**: Shape morphing, spring physics, and emphasized typography create moments of delight without sacrificing usability.\n\n## Current Updates: Google I\u002FO 2026\n\nMaterial's [Google I\u002FO 2026 update](https:\u002F\u002Fm3.material.io\u002Fblog\u002Fwhats-new-at-io26) reinforces a **Compose-first** Android path and expands expressive\u002Fadaptive guidance:\n\n- **Material Android is Compose-first**: For new Android work, prefer Jetpack Compose Material3 for the latest components, expressive APIs, adaptive scaffolds, and Styles API integration. Android Views may remain necessary in existing apps, but they should not be treated as the default path for new Material 3 implementations.\n- **Expressive layout system**: Use an expressive layout scaffold to adapt screens across mobile, desktop, foldables, watches, XR, and other spatial form factors. Start from adaptive scaffolds\u002Fwindow size classes instead of fixed phone-first layouts.\n- **8dp spacing system**: Apply spacing tokens for margins, padding, and gaps so layouts and components can adapt programmatically to device type and density.\n- **New\u002Fupdated expressive components**: Lists, menus, search, and search app bars have refreshed expressive guidance, with Jetpack Compose as the primary implementation target.\n- **Watches and XR**: Watches emphasize physics-based motion, arc text, and edge-hugging containers. XR emphasizes spatial panels and depth-based elevation.\n\n**Key differences from MD2:**\n- Tonal surfaces replace elevation shadows as the primary depth cue\n- Dynamic color generates full schemes from a single seed color\n- Fully rounded corners by default (not slightly rounded)\n- Spring-based motion physics replace fixed easing curves for components\n- 3 levels of user-controlled contrast (standard\u002Fmedium\u002Fhigh)\n\n**Relationship with frontend-design skill:**\nWhen both skills are active, MD3 provides the design system (tokens, components, layout rules) and frontend-design provides creative direction within those constraints. MD3 rules take precedence for component structure and token usage. Note: Roboto\u002FRoboto Flex IS the correct default typeface in MD3 — the frontend-design guidance to avoid Roboto does not apply when implementing MD3.\n\n## Decision Tree\n\n**What are you building?**\n```\nFull app scaffold        → See \"Common Patterns: App Shell\" + references\u002Flayout-and-responsive.md\nSingle component         → See \"Component Quick Reference\" table → references\u002Fcomponent-catalog.md\nCustom theme             → See references\u002Ftheming-and-dynamic-color.md\nForm \u002F input layout      → See references\u002Fcomponent-catalog.md § Input Components\nNavigation structure     → See references\u002Fnavigation-patterns.md\nData display             → See references\u002Fcomponent-catalog.md § Data Display\n```\n\n**What platform?**\n```\nJetpack Compose          → Primary: androidx.compose.material3, MaterialTheme, references\u002F*\nFlutter                  → useMaterial3: true in ThemeData, ColorScheme.fromSeed()\nWeb (vanilla JS)         → @material\u002Fweb (limited; maintenance mode) + CSS custom properties\nWeb (React\u002FVue\u002FSvelte)   → CSS custom properties + wrapper components (no official React lib)\nWeb (CSS-only)           → MD3 token values as CSS custom properties (no \u003Cmd-*> elements)\n```\n\n## Design Token System\n\nAll MD3 tokens use the `md.sys` namespace. **Jetpack Compose** maps roles to `MaterialTheme.colorScheme`, `MaterialTheme.typography`, and `MaterialTheme.shapes` (same semantic roles as the spec). **On the web**, these map to CSS custom properties (`--md-sys-*`):\n\n### Color Tokens (`--md-sys-color-*`)\n| Token | Purpose |\n|-------|---------|\n| `primary` | High-emphasis fills, text, icons against surface |\n| `on-primary` | Text\u002Ficons on primary |\n| `primary-container` | Standout fill for key components (FAB, etc.) |\n| `on-primary-container` | Text\u002Ficons on primary-container |\n| `secondary` \u002F `on-secondary` | Less prominent accents |\n| `secondary-container` \u002F `on-secondary-container` | Recessive components (tonal buttons) |\n| `tertiary` \u002F `on-tertiary` | Contrasting accents |\n| `tertiary-container` \u002F `on-tertiary-container` | Complementary containers |\n| `error` \u002F `on-error` | Error states (static — doesn't change with dynamic color) |\n| `error-container` \u002F `on-error-container` | Error container fills |\n| `surface` | Default background |\n| `on-surface` | Text\u002Ficons on any surface |\n| `on-surface-variant` | Lower-emphasis text\u002Ficons on surface |\n| `surface-container-lowest` | Lowest-emphasis container |\n| `surface-container-low` | Low-emphasis container |\n| `surface-container` | Default container (nav areas) |\n| `surface-container-high` | High-emphasis container |\n| `surface-container-highest` | Highest-emphasis container |\n| `surface-dim` \u002F `surface-bright` | Maintain relative brightness across light\u002Fdark |\n| `inverse-surface` \u002F `inverse-on-surface` \u002F `inverse-primary` | Contrasting elements (snackbars) |\n| `outline` | Important boundaries (text field borders) |\n| `outline-variant` | Decorative elements (dividers) |\n\nFull details: `references\u002Fcolor-system.md`\n\n### Typography Tokens (`--md-sys-typescale-*`)\n| Scale | Sizes | Use |\n|-------|-------|-----|\n| Display | L \u002F M \u002F S | Hero text, large numbers |\n| Headline | L \u002F M \u002F S | Section headers |\n| Title | L \u002F M \u002F S | Smaller headers, card titles |\n| Body | L \u002F M \u002F S | Paragraph text, descriptions |\n| Label | L \u002F M \u002F S | Buttons, chips, captions |\n\nEach style has tokens for: `-font`, `-weight`, `-size`, `-line-height`, `-tracking`\nPlus 15 **emphasized** variants (higher weight) via `--md-sys-typescale-emphasized-*`\n\nFull details: `references\u002Ftypography-and-shape.md`\n\n### Shape Tokens (`--md-sys-shape-corner-*`)\n| Token | Value | Example components |\n|-------|-------|-------------------|\n| `none` | 0dp | — |\n| `extra-small` | 4dp | Chips, snackbars |\n| `small` | 8dp | Text fields, menus |\n| `medium` | 12dp | Cards |\n| `large` | 16dp | FABs, navigation drawer |\n| `large-increased` | 20dp | (Expressive) |\n| `extra-large` | 28dp | Dialogs, bottom sheets |\n| `extra-large-increased` | 32dp | (Expressive) |\n| `extra-extra-large` | 48dp | (Expressive) |\n| `full` | 9999px | Buttons, chips, badges |\n\n### Elevation Levels\n| Level | DP | Tonal offset | Use |\n|-------|-----|-------------|-----|\n| 0 | 0dp | None | Flat surfaces, most components at rest |\n| 1 | 1dp | +5% primary | Elevated cards, modal sheets |\n| 2 | 3dp | +8% primary | Menus, nav bar, scrolled app bar |\n| 3 | 6dp | +11% primary | FAB, dialogs, search, date\u002Ftime pickers |\n| 4 | 8dp | +12% primary | (hover\u002Ffocus increase only) |\n| 5 | 12dp | +14% primary | (hover\u002Ffocus increase only) |\n\nElevation in MD3 is communicated through **tonal surface color**, not shadows. Shadows are only used when needed for additional protection against busy backgrounds.\n\n### Motion\nMD3 Expressive (May 2025) introduced **spring-based motion physics** for components. The legacy easing\u002Fduration system is still used for **transitions** (enter\u002Fexit\u002Fshared-axis):\n\n| Easing | Duration | Transition type |\n|--------|----------|-----------------|\n| Emphasized | 500ms | Begin and end on screen |\n| Emphasized decelerate | 400ms | Enter the screen |\n| Emphasized accelerate | 200ms | Exit the screen |\n| Standard | 300ms | Begin and end on screen (utility) |\n| Standard decelerate | 250ms | Enter screen (utility) |\n| Standard accelerate | 200ms | Exit screen (utility) |\n\nCSS easing values:\n- Emphasized: `cubic-bezier(0.2, 0, 0, 1)`\n- Emphasized decelerate: `cubic-bezier(0.05, 0.7, 0.1, 1)`\n- Emphasized accelerate: `cubic-bezier(0.3, 0, 0.8, 0.15)`\n- Standard: `cubic-bezier(0.2, 0, 0, 1)`\n- Standard decelerate: `cubic-bezier(0, 0, 0, 1)`\n- Standard accelerate: `cubic-bezier(0.3, 0, 1, 1)`\n\n## Component Quick Reference\n\n| Component | Web Element | Key Variants | Category |\n|-----------|------------|--------------|----------|\n| Button | `md-filled-button`, `md-outlined-button`, `md-text-button`, `md-elevated-button`, `md-filled-tonal-button` | Filled, Outlined, Text, Elevated, Tonal; 5 sizes (XS–XL); toggle | Actions |\n| Button group | `md-button-group` | Standard, connected | Actions |\n| Extended FAB | `md-extended-fab` | Surface, Primary, Secondary, Tertiary | Actions |\n| FAB | `md-fab` | Small, Medium, Large | Actions |\n| FAB menu | — | — | Actions |\n| Icon button | `md-icon-button`, `md-filled-icon-button`, `md-filled-tonal-icon-button`, `md-outlined-icon-button` | Standard, Filled, Filled Tonal, Outlined | Actions |\n| Segmented button | — | Single-select, Multi-select | Actions |\n| Split button | — | — | Actions |\n| Badge | — | Small (dot), Large (count) | Communication |\n| Loading indicator | — | Linear, Circular | Communication |\n| Progress indicator | `md-linear-progress`, `md-circular-progress` | Linear, Circular; determinate\u002Findeterminate | Communication |\n| Snackbar | — | Single-line, Two-line, Action | Communication |\n| Tooltip | — | Plain, Rich | Communication |\n| Card | — | Filled, Outlined, Elevated | Containment |\n| Carousel | — | Multi-browse, Uncontained, Hero | Containment |\n| Dialog | `md-dialog` | Basic, Full-screen | Containment |\n| Bottom sheet | — | Standard, Modal | Sheets |\n| Side sheet | — | Standard, Modal | Sheets |\n| Divider | `md-divider` | Full-width, Inset | Containment |\n| Checkbox | `md-checkbox` | — | Input |\n| Chips | `md-chip-set`, `md-assist-chip`, `md-filter-chip`, `md-input-chip`, `md-suggestion-chip` | Assist, Filter, Input, Suggestion | Input |\n| Date picker | — | Docked, Modal, Range | Input |\n| Menu | `md-menu`, `md-menu-item` | — | Input |\n| Radio button | `md-radio` | — | Input |\n| Slider | `md-slider` | Continuous, Discrete, Range | Input |\n| Switch | `md-switch` | With\u002Fwithout icon | Input |\n| Text field | `md-filled-text-field`, `md-outlined-text-field` | Filled, Outlined | Input |\n| Time picker | — | Docked, Modal | Input |\n| App bar (top) | — | Center-aligned, Small, Medium, Large | Navigation |\n| Navigation bar | `md-navigation-bar` | — | Navigation |\n| Navigation drawer | `md-navigation-drawer` | Standard, Modal | Navigation |\n| Navigation rail | — | — | Navigation |\n| Search | — | Search bar, Search view | Navigation |\n| Tabs | `md-tabs`, `md-primary-tab`, `md-secondary-tab` | Primary, Secondary | Navigation |\n| Toolbar | — | — | Navigation |\n| List | `md-list`, `md-list-item` | One-line, Two-line, Three-line | Data Display |\n\n**Note:** Components marked with `—` for web element don't have @material\u002Fweb implementations yet. Use CSS custom properties with standard HTML for these. **Compose** mappings and examples live in `references\u002Fcomponent-catalog.md`.\n\nFull component details with code examples: `references\u002Fcomponent-catalog.md`\n\n## Jetpack Compose (primary)\n\nUse **`androidx.compose.material3`** with `MaterialTheme` and Material 3 composables (`Scaffold`, `Button`, `NavigationBar`, top app bars, etc.).\n\n- **Theming**: `MaterialTheme(colorScheme = …, typography = …, shapes = …)`. Prefer `dynamicLightColorScheme` \u002F `dynamicDarkColorScheme` on **Android 12+ (API 31+)** when dynamic color is desired; otherwise `lightColorScheme` \u002F `darkColorScheme` or generated theme code from Material Theme Builder.\n- **Adaptive UI**: Window size classes, list-detail and supporting-pane layouts, foldables — see `references\u002Flayout-and-responsive.md` and `references\u002Fnavigation-patterns.md`.\n- **Edge-to-edge & insets**: Lay out content with `WindowInsets` \u002F scaffold padding so bars and IME behave correctly — see `references\u002Flayout-and-responsive.md`.\n- **Experimental APIs**: Some Material 3 APIs require `@OptIn(ExperimentalMaterial3Api::class)` or expressive opt-ins; match your BOM and compiler.\n\n```kotlin\nMaterialTheme(\n    colorScheme = colorScheme, \u002F\u002F from dynamicLightColorScheme \u002F lightColorScheme \u002F etc.\n    typography = Typography(),\n    shapes = Shapes(),\n) {\n    \u002F\u002F M3 content — prefer references for Scaffold, navigation, text fields\n}\n```\n\n## Web (limited): @material\u002Fweb\n\n**Important:** Per [Material Design 3 for Web](https:\u002F\u002Fm3.material.io\u002Fdevelop\u002Fweb), **Material Web Components are in maintenance mode** and **M3 Expressive is not implemented on Web**. Use `@material\u002Fweb` for token-backed web UIs when appropriate, but do not treat it as equivalent to Compose for current Expressive features.\n\n### Setup\n\n```bash\nnpm install @material\u002Fweb\n```\n\n### Import Components Individually\n\nAlways import only the components you use — importing the entire package bloats the bundle:\n\n```javascript\n\u002F\u002F Good — individual imports\nimport '@material\u002Fweb\u002Fbutton\u002Ffilled-button.js';\nimport '@material\u002Fweb\u002Fbutton\u002Foutlined-button.js';\nimport '@material\u002Fweb\u002Ftextfield\u002Foutlined-text-field.js';\nimport '@material\u002Fweb\u002Ficon\u002Ficon.js';\n\n\u002F\u002F Bad — never do this\nimport '@material\u002Fweb'; \u002F\u002F imports everything\n```\n\n### Basic Usage\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Cmeta charset=\"UTF-8\">\n  \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  \u003Clink href=\"https:\u002F\u002Ffonts.googleapis.com\u002Fcss2?family=Roboto+Flex:wght@400;500;700&display=swap\" rel=\"stylesheet\">\n  \u003Clink href=\"https:\u002F\u002Ffonts.googleapis.com\u002Ficon?family=Material+Symbols+Outlined\" rel=\"stylesheet\">\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cmd-filled-button>Get started\u003C\u002Fmd-filled-button>\n  \u003Cmd-outlined-text-field label=\"Email\" type=\"email\">\u003C\u002Fmd-outlined-text-field>\n\n  \u003Cscript type=\"module\">\n    import '@material\u002Fweb\u002Fbutton\u002Ffilled-button.js';\n    import '@material\u002Fweb\u002Ftextfield\u002Foutlined-text-field.js';\n  \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Theming with CSS Custom Properties\n\nApply a custom theme by setting CSS custom properties on `:root` or any ancestor:\n\n```css\n:root {\n  \u002F* Color scheme (generate with @material\u002Fmaterial-color-utilities) *\u002F\n  --md-sys-color-primary: #6750A4;\n  --md-sys-color-on-primary: #FFFFFF;\n  --md-sys-color-primary-container: #EADDFF;\n  --md-sys-color-on-primary-container: #21005D;\n  --md-sys-color-secondary: #625B71;\n  --md-sys-color-on-secondary: #FFFFFF;\n  --md-sys-color-secondary-container: #E8DEF8;\n  --md-sys-color-on-secondary-container: #1D192B;\n  --md-sys-color-surface: #FEF7FF;\n  --md-sys-color-on-surface: #1D1B20;\n  --md-sys-color-surface-container: #F3EDF7;\n  --md-sys-color-outline: #79747E;\n  --md-sys-color-outline-variant: #CAC4D0;\n\n  \u002F* Typography *\u002F\n  --md-sys-typescale-body-large-font: 'Roboto Flex', sans-serif;\n  --md-sys-typescale-body-large-size: 1rem;\n  --md-sys-typescale-body-large-weight: 400;\n  --md-sys-typescale-body-large-line-height: 1.5rem;\n\n  \u002F* Shape *\u002F\n  --md-sys-shape-corner-full: 9999px;\n  --md-sys-shape-corner-medium: 12px;\n}\n```\n\n### Component-Level Overrides\n\nOverride individual component tokens for specific customization:\n\n```css\nmd-filled-button {\n  --md-filled-button-container-color: var(--md-sys-color-primary);\n  --md-filled-button-label-text-color: var(--md-sys-color-on-primary);\n  --md-filled-button-container-shape: var(--md-sys-shape-corner-full);\n  --md-filled-button-container-height: 40px;\n}\n\nmd-outlined-text-field {\n  --md-outlined-text-field-container-shape: var(--md-sys-shape-corner-small);\n  --md-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);\n}\n```\n\n### Dark Theme\n\nApply dark theme by overriding color tokens on a class or media query:\n\n```css\n@media (prefers-color-scheme: dark) {\n  :root {\n    --md-sys-color-primary: #D0BCFF;\n    --md-sys-color-on-primary: #381E72;\n    --md-sys-color-primary-container: #4F378B;\n    --md-sys-color-on-primary-container: #EADDFF;\n    --md-sys-color-surface: #141218;\n    --md-sys-color-on-surface: #E6E0E9;\n    --md-sys-color-surface-container: #211F26;\n    --md-sys-color-outline: #938F99;\n    --md-sys-color-outline-variant: #49454F;\n  }\n}\n```\n\nFull theming guide: `references\u002Ftheming-and-dynamic-color.md`\n\n## Common Patterns\n\n### App Shell\n\nStandard MD3 app with responsive navigation + top app bar + content area:\n\n```html\n\u003Cdiv class=\"md3-app\">\n  \u003Cnav class=\"md3-nav-rail\" aria-label=\"Main navigation\">\n    \u003C!-- Navigation rail for medium+ screens -->\n    \u003Cmd-fab size=\"small\" aria-label=\"Compose\">\n      \u003Cmd-icon slot=\"icon\">edit\u003C\u002Fmd-icon>\n    \u003C\u002Fmd-fab>\n    \u003Cmd-navigation-bar>\n      \u003Cmd-navigation-tab label=\"Home\">\n        \u003Cmd-icon slot=\"active-icon\">home\u003C\u002Fmd-icon>\n        \u003Cmd-icon slot=\"inactive-icon\">home\u003C\u002Fmd-icon>\n      \u003C\u002Fmd-navigation-tab>\n      \u003Cmd-navigation-tab label=\"Search\">\n        \u003Cmd-icon slot=\"active-icon\">search\u003C\u002Fmd-icon>\n        \u003Cmd-icon slot=\"inactive-icon\">search\u003C\u002Fmd-icon>\n      \u003C\u002Fmd-navigation-tab>\n    \u003C\u002Fmd-navigation-bar>\n  \u003C\u002Fnav>\n  \u003Cmain class=\"md3-content\">\n    \u003Cheader class=\"md3-top-app-bar\">\n      \u003Ch1 class=\"md3-top-app-bar__title\" style=\"font: var(--md-sys-typescale-title-large)\">\n        Page Title\n      \u003C\u002Fh1>\n    \u003C\u002Fheader>\n    \u003Cdiv class=\"md3-body\">\n      \u003C!-- Content here -->\n    \u003C\u002Fdiv>\n  \u003C\u002Fmain>\n\u003C\u002Fdiv>\n```\n\n```css\n.md3-app {\n  display: flex;\n  min-height: 100vh;\n  background: var(--md-sys-color-surface);\n  color: var(--md-sys-color-on-surface);\n}\n\n.md3-nav-rail {\n  width: 80px;\n  background: var(--md-sys-color-surface);\n  border-right: 1px solid var(--md-sys-color-outline-variant);\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  padding-top: 12px;\n  gap: 12px;\n}\n\n.md3-content {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.md3-top-app-bar {\n  height: 64px;\n  padding: 0 16px;\n  display: flex;\n  align-items: center;\n  background: var(--md-sys-color-surface);\n}\n\n.md3-body {\n  padding: 24px;\n  flex: 1;\n}\n\n\u002F* Responsive: switch to bottom nav on compact *\u002F\n@media (max-width: 599px) {\n  .md3-app { flex-direction: column; }\n  .md3-nav-rail {\n    order: 1;\n    width: 100%;\n    flex-direction: row;\n    justify-content: center;\n    border-right: none;\n    border-top: 1px solid var(--md-sys-color-outline-variant);\n    padding: 0;\n  }\n}\n```\n\n### Card Grid\n\n```html\n\u003Cdiv class=\"md3-card-grid\">\n  \u003Cdiv class=\"md3-card md3-card--outlined\">\n    \u003Cimg src=\"image.jpg\" alt=\"Description\" class=\"md3-card__media\">\n    \u003Cdiv class=\"md3-card__content\">\n      \u003Ch3 style=\"font: var(--md-sys-typescale-title-medium)\">Card Title\u003C\u002Fh3>\n      \u003Cp style=\"font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant)\">\n        Supporting text for this card.\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n    \u003Cdiv class=\"md3-card__actions\">\n      \u003Cmd-text-button>Learn more\u003C\u002Fmd-text-button>\n      \u003Cmd-filled-tonal-button>Action\u003C\u002Fmd-filled-tonal-button>\n    \u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n```css\n.md3-card-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n  gap: 16px;\n}\n\n.md3-card--outlined {\n  border: 1px solid var(--md-sys-color-outline-variant);\n  border-radius: var(--md-sys-shape-corner-medium, 12px);\n  background: var(--md-sys-color-surface);\n  overflow: hidden;\n}\n\n.md3-card__content { padding: 16px; }\n.md3-card__actions { padding: 8px 16px 16px; display: flex; gap: 8px; justify-content: flex-end; }\n.md3-card__media { width: 100%; aspect-ratio: 16\u002F9; object-fit: cover; }\n```\n\n### Form Layout\n\n```html\n\u003Cform class=\"md3-form\">\n  \u003Cmd-outlined-text-field label=\"Full name\" required>\u003C\u002Fmd-outlined-text-field>\n  \u003Cmd-outlined-text-field label=\"Email\" type=\"email\" required>\u003C\u002Fmd-outlined-text-field>\n  \u003Cmd-outlined-text-field label=\"Message\" type=\"textarea\" rows=\"4\">\u003C\u002Fmd-outlined-text-field>\n  \u003Cdiv class=\"md3-form__actions\">\n    \u003Cmd-text-button type=\"reset\">Cancel\u003C\u002Fmd-text-button>\n    \u003Cmd-filled-button type=\"submit\">Submit\u003C\u002Fmd-filled-button>\n  \u003C\u002Fdiv>\n\u003C\u002Fform>\n```\n\n```css\n.md3-form {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  max-width: 560px;\n}\n\n.md3-form__actions {\n  display: flex;\n  gap: 8px;\n  justify-content: flex-end;\n  margin-top: 8px;\n}\n```\n\nMore patterns: `references\u002Fnavigation-patterns.md`, `references\u002Flayout-and-responsive.md`\n\n## Anti-Patterns\n\n**Never do these when implementing MD3:**\n\n- **Mix MD2 and MD3 libraries**: Don't use `@material\u002Fmdc-*` (MD2) alongside `@material\u002Fweb` (MD3). They have incompatible APIs and styling.\n- **Hardcode colors**: Always use `var(--md-sys-color-*)` tokens, never raw hex\u002Frgb values. Hardcoded colors break dynamic theming, dark mode, and contrast adjustment.\n- **Ignore tonal pairing**: Only combine colors in their intended pairs (e.g., `primary` + `on-primary`, `surface-container` + `on-surface`). Arbitrary pairings break contrast in dynamic color and high contrast modes.\n- **Use `outline` for dividers**: Use `outline-variant` for dividers. `outline` is for important boundaries like text field borders.\n- **Import all of @material\u002Fweb**: Always import individual component modules. Barrel imports include every component and destroy bundle size.\n- **Use `border-radius` directly**: Use shape tokens (`var(--md-sys-shape-corner-medium)`) so shapes stay consistent with theming.\n- **Use shadows for elevation by default**: MD3 communicates elevation through tonal surface color, not shadows. Only add shadows when elements need extra separation from busy backgrounds.\n- **Apply frontend-design \"avoid Roboto\" rule**: On **Android**, **Roboto** is the default Material typeface; **web** often uses Roboto or Roboto Flex with MD3 tokens. Replace only when intentionally customizing the type scale.\n- **Assume SSR compatibility**: `@material\u002Fweb` uses Web Components (custom elements) which require JavaScript to render. They won't produce meaningful HTML in SSR without additional hydration strategies.\n- **Ignore foldables and large screens**: MD3 is designed for all screen sizes. Don't ship phone-only layouts — use canonical layouts, multi-pane at 600dp+, and test on foldable\u002Ftablet emulators. Place no interactive content across the fold\u002Fhinge.\n- **Stretch content to fill wide screens**: On Large (1200dp+) and Extra-large (1600dp+) windows, constrain content to a max width (840–1040dp). Endless-width text lines are unreadable.\n\n## Platform Notes\n\n### Flutter\n```dart\nMaterialApp(\n  theme: ThemeData(\n    useMaterial3: true,\n    colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),\n  ),\n);\n```\n\n### Jetpack Compose\nSee **[Jetpack Compose (primary)](#jetpack-compose-primary)** above. Use `LocalContext.current` with `dynamicLightColorScheme` \u002F `dynamicDarkColorScheme` only when `Build.VERSION.SDK_INT >= Build.VERSION_CODES.S` and dynamic color is enabled; otherwise supply static light\u002Fdark schemes.\n\n### Component Name Mapping\n| Concept | Web | Flutter | Compose |\n|---------|-----|---------|---------|\n| Filled button | `md-filled-button` | `FilledButton` | `Button` |\n| Outlined text field | `md-outlined-text-field` | `OutlinedTextField` | `OutlinedTextField` |\n| FAB | `md-fab` | `FloatingActionButton` | `FloatingActionButton` |\n| Navigation bar | `md-navigation-bar` | `NavigationBar` | `NavigationBar` |\n| Switch | `md-switch` | `Switch` | `Switch` |\n\n## M3 Expressive (May 2025)\n\nThe Expressive update adds visual richness while maintaining usability. **Availability differs by platform** — do not assume one stack implements everything.\n\n| Capability | Jetpack Compose | Flutter | Web (`@material\u002Fweb`) |\n|------------|-----------------|---------|------------------------|\n| Expressive layout scaffold \u002F adaptive layout | Compose-first via Material3 adaptive APIs and window size classes | Use Flutter adaptive\u002Flayout primitives | CSS\u002Fcontainer queries\u002Fmanual layout; no Material Web parity |\n| 8dp spacing system | Use design tokens \u002F `Dp` spacing constants; keep margins, padding, and gaps adaptive | Use theme spacing constants | CSS custom properties \u002F design tokens |\n| Expressive lists, menus, search, search app bar | Primary target per current Material guidance; check BOM and opt-ins | Check current Flutter Material docs | Spec-aligned custom implementation; `@material\u002Fweb` is maintenance-only |\n| Spring \u002F motion physics | Supported in Material 3 (see `MotionScheme`, expressive APIs per BOM) | Varies by Flutter Material version | **Not** in Material Web; use easing\u002Fduration or custom motion |\n| Emphasized typography | Via theme \u002F type scale | Via theme | Token\u002FCSS only; no full Expressive component set |\n| Shape morphing | Compose-first in Google’s expressive rollout | Check current Flutter docs | **Not** in `@material\u002Fweb` |\n| New button sizes (XS–XL), toggle | Follow Compose Material3 components | Follow Flutter MD3 | Height\u002FCSS approximations only |\n| Extra corner tokens (e.g. large-increased) | `MaterialTheme.shapes` \u002F tokens | Theme shapes | CSS `--md-sys-shape-*` |\n| 3 contrast levels | Scheme builders \u002F system | Plugins \u002F manual | `SchemeContent` contrast parameter in JS utilities |\n| Watches \u002F XR form factors | Use Compose\u002FWear\u002FXR-specific guidance where available | Platform-specific | Web\u002Fspatial UI custom implementation |\n\n**Web:** [Material Web is maintenance-only; M3 Expressive is not on Web](https:\u002F\u002Fm3.material.io\u002Fdevelop\u002Fweb). Use CSS easing\u002Fduration tokens as fallback for motion, not spring parity.\n\n**Legacy easing\u002Fduration** remains valid for **transitions** (enter\u002Fexit\u002Fshared-axis) where the spec still references them; see the Motion table below.\n\n## MD3 Compliance Audit\n\nWhen invoked with `audit` as the argument (e.g., `\u002Fmaterial-3 audit`), or when asked to audit\u002Freview MD3 compliance, analyze the target app or page and produce a compliance report.\n\n### Audit Procedure\n\n1. **Identify the target**: The user provides a URL (use browser tools to inspect), file paths (read source), or a running app.\n2. **Inspect the following categories** and score each 0–10:\n\n| Category | What to check |\n|----------|--------------|\n| **Color tokens** | **Web:** `--md-sys-color-*` \u002F generated CSS. **Compose:** `MaterialTheme.colorScheme` roles (no arbitrary `Color(...)` for surfaces without reason). Proper tonal pairing (`onX` on `X`). Dark theme. **Flutter:** `ColorScheme` roles. |\n| **Typography** | MD3 type scale: **Compose** `MaterialTheme.typography`; **web** typescale tokens; correct roles (Display, Headline, Title, Body, Label). |\n| **Shape** | **Compose** `MaterialTheme.shapes` \u002F component `Shape`; **web** `var(--md-sys-shape-*)`. Buttons: full; cards: medium; avoid magic numbers. |\n| **Elevation** | Tonal elevation (`Surface` tonal\u002Fshadow as appropriate). **Web:** hover\u002Ffocus where relevant. |\n| **Components** | **Compose:** Material3 composables (`Button`, `Scaffold`, etc.). **Web:** `@material\u002Fweb` or spec-aligned HTML\u002FCSS. Correct variants. |\n| **Layout** | Canonical layouts; **Compose** window size class \u002F adaptive APIs; readable max width on large widths; foldable hinge avoidance. |\n| **Navigation** | Bar \u002F rail \u002F drawer \u002F drawers+**Compose** `NavHost` patterns per size class; predictive back where applicable. |\n| **Motion** | **Compose** `MotionScheme` \u002F expressive APIs when used; transitions may still use easing\u002Fduration. **Web:** CSS motion tokens fallback. |\n| **Accessibility** | MD3 roles help, but **verify contrast**: UI components often need **3:1** for large text\u002Fborders and **4.5:1** for normal text (WCAG 2.x). TalkBack\u002Fsemantics (Compose), focus order, touch targets (~48dp). **Web:** ARIA, keyboard. |\n| **Theming** | **Compose:** `MaterialTheme` + light\u002Fdark\u002Fdynamic as designed. **Web:** CSS custom properties on `:root` or subtree. **Flutter:** `ThemeData` + `ColorScheme`. |\n\n3. **Generate the report**:\n\n```\n# MD3 Compliance Audit Report\n\nTarget: [URL or file path]\nDate: [date]\nOverall Score: [X\u002F100]\n\n## Scores by Category\n| Category       | Score | Status |\n|----------------|-------|--------|\n| Color tokens   | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Typography     | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Shape          | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Elevation      | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Components     | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Layout         | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Navigation     | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Motion         | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Accessibility  | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Theming        | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n\n## Critical Issues\n[List items scoring 0-3 with specific file:line references and fixes]\n\n## Warnings\n[List items scoring 4-6 with recommendations]\n\n## Passing\n[List items scoring 7-10 with notes on what's done well]\n\n## Recommended Fixes (Priority Order)\n1. [Most impactful fix first]\n2. ...\n```\n\n### Audit Methods\n\n**For a live URL** (browser or devtools):\n- Inspect computed styles and CSS variables (`--md-sys-*`)\n- Resize viewport or use responsive mode for breakpoints\n- Capture screenshots at key widths if helpful\n\n**For source code** (file paths provided):\n- **Compose\u002FKotlin:** `.kt` files — `MaterialTheme`, composables, `Color(0x…)` abuse, hard-coded `Dp`, missing `Modifier.semantics` where needed\n- **Flutter:** `.dart` — `ThemeData`, `ColorScheme`\n- **Web:** HTML\u002FJSX\u002FVue\u002FSvelte; CSS\u002FSCSS for tokens\n- Check **web** imports for `@material\u002Fweb` vs `@material\u002Fmdc-*` (MD2)\n\n**Quick checks** (adapt paths to your stack):\n```\n# Web: hardcoded colors\ngrep -rn '#[0-9a-fA-F]\\{3,8\\}' --include='*.css' --include='*.scss'\n\n# Compose: raw Color(...) audits (sample — tune for your codebase)\ngrep -rn 'Color(0x' --include='*.kt'\n\n# MD2 on web\ngrep -rn '@material\u002Fmdc-' --include='*.js' --include='*.ts'\n```\n\n**Browser automation** (if your environment exposes MCP browser tools): navigate, snapshot DOM\u002FCSS variables, resize for breakpoints — optional, not required.\n\n### Scoring Guide\n\n- **9-10**: Fully MD3 compliant, uses correct tokens and patterns\n- **7-8**: Mostly compliant, minor issues (e.g., a few hardcoded values)\n- **4-6**: Partially compliant, some MD3 patterns but significant gaps\n- **1-3**: Major violations, mostly non-MD3 or MD2 patterns\n- **0**: Not applicable or completely absent\n\nStatus thresholds: **pass** (7+), **warn** (4-6), **fail** (0-3)\n\n## Reference Documents\n\n- `references\u002Fcolor-system.md` — Color roles, tonal palettes, dynamic color, Compose + CSS mapping\n- `references\u002Ftypography-and-shape.md` — Type scale, shape corners, elevation, motion, Expressive notes\n- `references\u002Fcomponent-catalog.md` — Components: Compose + `@material\u002Fweb` where applicable\n- `references\u002Fnavigation-patterns.md` — Navigation selection, Compose-first adaptive patterns\n- `references\u002Flayout-and-responsive.md` — Breakpoints, canonical layouts, insets, foldables\n- `references\u002Ftheming-and-dynamic-color.md` — Theming: Compose first, then Flutter and web\n","# Material Design 3\n\nThis skill guides implementation of Google's Material Design 3 (MD3) — a personal, adaptive, expressive design system. MD3 uses dynamic color, tonal surfaces, rounded shapes, and spring-based motion to create UIs that feel alive and personal.\n\n## Philosophy\n\nMD3 is built on three principles:\n- **Personal**: Dynamic color adapts UI to the user's wallpaper or content. Theming is individual, not one-size-fits-all.\n- **Adaptive**: Layouts transform across 5 window size classes. Components resize, reposition, and change form factor responsively.\n- **Expressive**: Shape morphing, spring physics, and emphasized typography create moments of delight without sacrificing usability.\n\n## Current Updates: Google I\u002FO 2026\n\nMaterial's [Google I\u002FO 2026 update](https:\u002F\u002Fm3.material.io\u002Fblog\u002Fwhats-new-at-io26) reinforces a **Compose-first** Android path and expands expressive\u002Fadaptive guidance:\n\n- **Material Android is Compose-first**: For new Android work, prefer Jetpack Compose Material3 for the latest components, expressive APIs, adaptive scaffolds, and Styles API integration. Android Views may remain necessary in existing apps, but they should not be treated as the default path for new Material 3 implementations.\n- **Expressive layout system**: Use an expressive layout scaffold to adapt screens across mobile, desktop, foldables, watches, XR, and other spatial form factors. Start from adaptive scaffolds\u002Fwindow size classes instead of fixed phone-first layouts.\n- **8dp spacing system**: Apply spacing tokens for margins, padding, and gaps so layouts and components can adapt programmatically to device type and density.\n- **New\u002Fupdated expressive components**: Lists, menus, search, and search app bars have refreshed expressive guidance, with Jetpack Compose as the primary implementation target.\n- **Watches and XR**: Watches emphasize physics-based motion, arc text, and edge-hugging containers. XR emphasizes spatial panels and depth-based elevation.\n\n**Key differences from MD2:**\n- Tonal surfaces replace elevation shadows as the primary depth cue\n- Dynamic color generates full schemes from a single seed color\n- Fully rounded corners by default (not slightly rounded)\n- Spring-based motion physics replace fixed easing curves for components\n- 3 levels of user-controlled contrast (standard\u002Fmedium\u002Fhigh)\n\n**Relationship with frontend-design skill:**\nWhen both skills are active, MD3 provides the design system (tokens, components, layout rules) and frontend-design provides creative direction within those constraints. MD3 rules take precedence for component structure and token usage. Note: Roboto\u002FRoboto Flex IS the correct default typeface in MD3 — the frontend-design guidance to avoid Roboto does not apply when implementing MD3.\n\n## Decision Tree\n\n**What are you building?**\n```\nFull app scaffold        → See \"Common Patterns: App Shell\" + references\u002Flayout-and-responsive.md\nSingle component         → See \"Component Quick Reference\" table → references\u002Fcomponent-catalog.md\nCustom theme             → See references\u002Ftheming-and-dynamic-color.md\nForm \u002F input layout      → See references\u002Fcomponent-catalog.md § Input Components\nNavigation structure     → See references\u002Fnavigation-patterns.md\nData display             → See references\u002Fcomponent-catalog.md § Data Display\n```\n\n**What platform?**\n```\nJetpack Compose          → Primary: androidx.compose.material3, MaterialTheme, references\u002F*\nFlutter                  → useMaterial3: true in ThemeData, ColorScheme.fromSeed()\nWeb (vanilla JS)         → @material\u002Fweb (limited; maintenance mode) + CSS custom properties\nWeb (React\u002FVue\u002FSvelte)   → CSS custom properties + wrapper components (no official React lib)\nWeb (CSS-only)           → MD3 token values as CSS custom properties (no \u003Cmd-*> elements)\n```\n\n## Design Token System\n\nAll MD3 tokens use the `md.sys` namespace. **Jetpack Compose** maps roles to `MaterialTheme.colorScheme`, `MaterialTheme.typography`, and `MaterialTheme.shapes` (same semantic roles as the spec). **On the web**, these map to CSS custom properties (`--md-sys-*`):\n\n### Color Tokens (`--md-sys-color-*`)\n| Token | Purpose |\n|-------|---------|\n| `primary` | High-emphasis fills, text, icons against surface |\n| `on-primary` | Text\u002Ficons on primary |\n| `primary-container` | Standout fill for key components (FAB, etc.) |\n| `on-primary-container` | Text\u002Ficons on primary-container |\n| `secondary` \u002F `on-secondary` | Less prominent accents |\n| `secondary-container` \u002F `on-secondary-container` | Recessive components (tonal buttons) |\n| `tertiary` \u002F `on-tertiary` | Contrasting accents |\n| `tertiary-container` \u002F `on-tertiary-container` | Complementary containers |\n| `error` \u002F `on-error` | Error states (static — doesn't change with dynamic color) |\n| `error-container` \u002F `on-error-container` | Error container fills |\n| `surface` | Default background |\n| `on-surface` | Text\u002Ficons on any surface |\n| `on-surface-variant` | Lower-emphasis text\u002Ficons on surface |\n| `surface-container-lowest` | Lowest-emphasis container |\n| `surface-container-low` | Low-emphasis container |\n| `surface-container` | Default container (nav areas) |\n| `surface-container-high` | High-emphasis container |\n| `surface-container-highest` | Highest-emphasis container |\n| `surface-dim` \u002F `surface-bright` | Maintain relative brightness across light\u002Fdark |\n| `inverse-surface` \u002F `inverse-on-surface` \u002F `inverse-primary` | Contrasting elements (snackbars) |\n| `outline` | Important boundaries (text field borders) |\n| `outline-variant` | Decorative elements (dividers) |\n\nFull details: `references\u002Fcolor-system.md`\n\n### Typography Tokens (`--md-sys-typescale-*`)\n| Scale | Sizes | Use |\n|-------|-------|-----|\n| Display | L \u002F M \u002F S | Hero text, large numbers |\n| Headline | L \u002F M \u002F S | Section headers |\n| Title | L \u002F M \u002F S | Smaller headers, card titles |\n| Body | L \u002F M \u002F S | Paragraph text, descriptions |\n| Label | L \u002F M \u002F S | Buttons, chips, captions |\n\nEach style has tokens for: `-font`, `-weight`, `-size`, `-line-height`, `-tracking`\nPlus 15 **emphasized** variants (higher weight) via `--md-sys-typescale-emphasized-*`\n\nFull details: `references\u002Ftypography-and-shape.md`\n\n### Shape Tokens (`--md-sys-shape-corner-*`)\n| Token | Value | Example components |\n|-------|-------|-------------------|\n| `none` | 0dp | — |\n| `extra-small` | 4dp | Chips, snackbars |\n| `small` | 8dp | Text fields, menus |\n| `medium` | 12dp | Cards |\n| `large` | 16dp | FABs, navigation drawer |\n| `large-increased` | 20dp | (Expressive) |\n| `extra-large` | 28dp | Dialogs, bottom sheets |\n| `extra-large-increased` | 32dp | (Expressive) |\n| `extra-extra-large` | 48dp | (Expressive) |\n| `full` | 9999px | Buttons, chips, badges |\n\n### Elevation Levels\n| Level | DP | Tonal offset | Use |\n|-------|-----|-------------|-----|\n| 0 | 0dp | None | Flat surfaces, most components at rest |\n| 1 | 1dp | +5% primary | Elevated cards, modal sheets |\n| 2 | 3dp | +8% primary | Menus, nav bar, scrolled app bar |\n| 3 | 6dp | +11% primary | FAB, dialogs, search, date\u002Ftime pickers |\n| 4 | 8dp | +12% primary | (hover\u002Ffocus increase only) |\n| 5 | 12dp | +14% primary | (hover\u002Ffocus increase only) |\n\nElevation in MD3 is communicated through **tonal surface color**, not shadows. Shadows are only used when needed for additional protection against busy backgrounds.\n\n### Motion\nMD3 Expressive (May 2025) introduced **spring-based motion physics** for components. The legacy easing\u002Fduration system is still used for **transitions** (enter\u002Fexit\u002Fshared-axis):\n\n| Easing | Duration | Transition type |\n|--------|----------|-----------------|\n| Emphasized | 500ms | Begin and end on screen |\n| Emphasized decelerate | 400ms | Enter the screen |\n| Emphasized accelerate | 200ms | Exit the screen |\n| Standard | 300ms | Begin and end on screen (utility) |\n| Standard decelerate | 250ms | Enter screen (utility) |\n| Standard accelerate | 200ms | Exit screen (utility) |\n\nCSS easing values:\n- Emphasized: `cubic-bezier(0.2, 0, 0, 1)`\n- Emphasized decelerate: `cubic-bezier(0.05, 0.7, 0.1, 1)`\n- Emphasized accelerate: `cubic-bezier(0.3, 0, 0.8, 0.15)`\n- Standard: `cubic-bezier(0.2, 0, 0, 1)`\n- Standard decelerate: `cubic-bezier(0, 0, 0, 1)`\n- Standard accelerate: `cubic-bezier(0.3, 0, 1, 1)`\n\n## Component Quick Reference\n\n| Component | Web Element | Key Variants | Category |\n|-----------|------------|--------------|----------|\n| Button | `md-filled-button`, `md-outlined-button`, `md-text-button`, `md-elevated-button`, `md-filled-tonal-button` | Filled, Outlined, Text, Elevated, Tonal; 5 sizes (XS–XL); toggle | Actions |\n| Button group | `md-button-group` | Standard, connected | Actions |\n| Extended FAB | `md-extended-fab` | Surface, Primary, Secondary, Tertiary | Actions |\n| FAB | `md-fab` | Small, Medium, Large | Actions |\n| FAB menu | — | — | Actions |\n| Icon button | `md-icon-button`, `md-filled-icon-button`, `md-filled-tonal-icon-button`, `md-outlined-icon-button` | Standard, Filled, Filled Tonal, Outlined | Actions |\n| Segmented button | — | Single-select, Multi-select | Actions |\n| Split button | — | — | Actions |\n| Badge | — | Small (dot), Large (count) | Communication |\n| Loading indicator | — | Linear, Circular | Communication |\n| Progress indicator | `md-linear-progress`, `md-circular-progress` | Linear, Circular; determinate\u002Findeterminate | Communication |\n| Snackbar | — | Single-line, Two-line, Action | Communication |\n| Tooltip | — | Plain, Rich | Communication |\n| Card | — | Filled, Outlined, Elevated | Containment |\n| Carousel | — | Multi-browse, Uncontained, Hero | Containment |\n| Dialog | `md-dialog` | Basic, Full-screen | Containment |\n| Bottom sheet | — | Standard, Modal | Sheets |\n| Side sheet | — | Standard, Modal | Sheets |\n| Divider | `md-divider` | Full-width, Inset | Containment |\n| Checkbox | `md-checkbox` | — | Input |\n| Chips | `md-chip-set`, `md-assist-chip`, `md-filter-chip`, `md-input-chip`, `md-suggestion-chip` | Assist, Filter, Input, Suggestion | Input |\n| Date picker | — | Docked, Modal, Range | Input |\n| Menu | `md-menu`, `md-menu-item` | — | Input |\n| Radio button | `md-radio` | — | Input |\n| Slider | `md-slider` | Continuous, Discrete, Range | Input |\n| Switch | `md-switch` | With\u002Fwithout icon | Input |\n| Text field | `md-filled-text-field`, `md-outlined-text-field` | Filled, Outlined | Input |\n| Time picker | — | Docked, Modal | Input |\n| App bar (top) | — | Center-aligned, Small, Medium, Large | Navigation |\n| Navigation bar | `md-navigation-bar` | — | Navigation |\n| Navigation drawer | `md-navigation-drawer` | Standard, Modal | Navigation |\n| Navigation rail | — | — | Navigation |\n| Search | — | Search bar, Search view | Navigation |\n| Tabs | `md-tabs`, `md-primary-tab`, `md-secondary-tab` | Primary, Secondary | Navigation |\n| Toolbar | — | — | Navigation |\n| List | `md-list`, `md-list-item` | One-line, Two-line, Three-line | Data Display |\n\n**Note:** Components marked with `—` for web element don't have @material\u002Fweb implementations yet. Use CSS custom properties with standard HTML for these. **Compose** mappings and examples live in `references\u002Fcomponent-catalog.md`.\n\nFull component details with code examples: `references\u002Fcomponent-catalog.md`\n\n## Jetpack Compose (primary)\n\nUse **`androidx.compose.material3`** with `MaterialTheme` and Material 3 composables (`Scaffold`, `Button`, `NavigationBar`, top app bars, etc.).\n\n- **Theming**: `MaterialTheme(colorScheme = …, typography = …, shapes = …)`. Prefer `dynamicLightColorScheme` \u002F `dynamicDarkColorScheme` on **Android 12+ (API 31+)** when dynamic color is desired; otherwise `lightColorScheme` \u002F `darkColorScheme` or generated theme code from Material Theme Builder.\n- **Adaptive UI**: Window size classes, list-detail and supporting-pane layouts, foldables — see `references\u002Flayout-and-responsive.md` and `references\u002Fnavigation-patterns.md`.\n- **Edge-to-edge & insets**: Lay out content with `WindowInsets` \u002F scaffold padding so bars and IME behave correctly — see `references\u002Flayout-and-responsive.md`.\n- **Experimental APIs**: Some Material 3 APIs require `@OptIn(ExperimentalMaterial3Api::class)` or expressive opt-ins; match your BOM and compiler.\n\n```kotlin\nMaterialTheme(\n    colorScheme = colorScheme, \u002F\u002F from dynamicLightColorScheme \u002F lightColorScheme \u002F etc.\n    typography = Typography(),\n    shapes = Shapes(),\n) {\n    \u002F\u002F M3 content — prefer references for Scaffold, navigation, text fields\n}\n```\n\n## Web (limited): @material\u002Fweb\n\n**Important:** Per [Material Design 3 for Web](https:\u002F\u002Fm3.material.io\u002Fdevelop\u002Fweb), **Material Web Components are in maintenance mode** and **M3 Expressive is not implemented on Web**. Use `@material\u002Fweb` for token-backed web UIs when appropriate, but do not treat it as equivalent to Compose for current Expressive features.\n\n### Setup\n\n```bash\nnpm install @material\u002Fweb\n```\n\n### Import Components Individually\n\nAlways import only the components you use — importing the entire package bloats the bundle:\n\n```javascript\n\u002F\u002F Good — individual imports\nimport '@material\u002Fweb\u002Fbutton\u002Ffilled-button.js';\nimport '@material\u002Fweb\u002Fbutton\u002Foutlined-button.js';\nimport '@material\u002Fweb\u002Ftextfield\u002Foutlined-text-field.js';\nimport '@material\u002Fweb\u002Ficon\u002Ficon.js';\n\n\u002F\u002F Bad — never do this\nimport '@material\u002Fweb'; \u002F\u002F imports everything\n```\n\n### Basic Usage\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Cmeta charset=\"UTF-8\">\n  \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  \u003Clink href=\"https:\u002F\u002Ffonts.googleapis.com\u002Fcss2?family=Roboto+Flex:wght@400;500;700&display=swap\" rel=\"stylesheet\">\n  \u003Clink href=\"https:\u002F\u002Ffonts.googleapis.com\u002Ficon?family=Material+Symbols+Outlined\" rel=\"stylesheet\">\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cmd-filled-button>Get started\u003C\u002Fmd-filled-button>\n  \u003Cmd-outlined-text-field label=\"Email\" type=\"email\">\u003C\u002Fmd-outlined-text-field>\n\n  \u003Cscript type=\"module\">\n    import '@material\u002Fweb\u002Fbutton\u002Ffilled-button.js';\n    import '@material\u002Fweb\u002Ftextfield\u002Foutlined-text-field.js';\n  \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Theming with CSS Custom Properties\n\nApply a custom theme by setting CSS custom properties on `:root` or any ancestor:\n\n```css\n:root {\n  \u002F* Color scheme (generate with @material\u002Fmaterial-color-utilities) *\u002F\n  --md-sys-color-primary: #6750A4;\n  --md-sys-color-on-primary: #FFFFFF;\n  --md-sys-color-primary-container: #EADDFF;\n  --md-sys-color-on-primary-container: #21005D;\n  --md-sys-color-secondary: #625B71;\n  --md-sys-color-on-secondary: #FFFFFF;\n  --md-sys-color-secondary-container: #E8DEF8;\n  --md-sys-color-on-secondary-container: #1D192B;\n  --md-sys-color-surface: #FEF7FF;\n  --md-sys-color-on-surface: #1D1B20;\n  --md-sys-color-surface-container: #F3EDF7;\n  --md-sys-color-outline: #79747E;\n  --md-sys-color-outline-variant: #CAC4D0;\n\n  \u002F* Typography *\u002F\n  --md-sys-typescale-body-large-font: 'Roboto Flex', sans-serif;\n  --md-sys-typescale-body-large-size: 1rem;\n  --md-sys-typescale-body-large-weight: 400;\n  --md-sys-typescale-body-large-line-height: 1.5rem;\n\n  \u002F* Shape *\u002F\n  --md-sys-shape-corner-full: 9999px;\n  --md-sys-shape-corner-medium: 12px;\n}\n```\n\n### Component-Level Overrides\n\nOverride individual component tokens for specific customization:\n\n```css\nmd-filled-button {\n  --md-filled-button-container-color: var(--md-sys-color-primary);\n  --md-filled-button-label-text-color: var(--md-sys-color-on-primary);\n  --md-filled-button-container-shape: var(--md-sys-shape-corner-full);\n  --md-filled-button-container-height: 40px;\n}\n\nmd-outlined-text-field {\n  --md-outlined-text-field-container-shape: var(--md-sys-shape-corner-small);\n  --md-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);\n}\n```\n\n### Dark Theme\n\nApply dark theme by overriding color tokens on a class or media query:\n\n```css\n@media (prefers-color-scheme: dark) {\n  :root {\n    --md-sys-color-primary: #D0BCFF;\n    --md-sys-color-on-primary: #381E72;\n    --md-sys-color-primary-container: #4F378B;\n    --md-sys-color-on-primary-container: #EADDFF;\n    --md-sys-color-surface: #141218;\n    --md-sys-color-on-surface: #E6E0E9;\n    --md-sys-color-surface-container: #211F26;\n    --md-sys-color-outline: #938F99;\n    --md-sys-color-outline-variant: #49454F;\n  }\n}\n```\n\nFull theming guide: `references\u002Ftheming-and-dynamic-color.md`\n\n## Common Patterns\n\n### App Shell\n\nStandard MD3 app with responsive navigation + top app bar + content area:\n\n```html\n\u003Cdiv class=\"md3-app\">\n  \u003Cnav class=\"md3-nav-rail\" aria-label=\"Main navigation\">\n    \u003C!-- Navigation rail for medium+ screens -->\n    \u003Cmd-fab size=\"small\" aria-label=\"Compose\">\n      \u003Cmd-icon slot=\"icon\">edit\u003C\u002Fmd-icon>\n    \u003C\u002Fmd-fab>\n    \u003Cmd-navigation-bar>\n      \u003Cmd-navigation-tab label=\"Home\">\n        \u003Cmd-icon slot=\"active-icon\">home\u003C\u002Fmd-icon>\n        \u003Cmd-icon slot=\"inactive-icon\">home\u003C\u002Fmd-icon>\n      \u003C\u002Fmd-navigation-tab>\n      \u003Cmd-navigation-tab label=\"Search\">\n        \u003Cmd-icon slot=\"active-icon\">search\u003C\u002Fmd-icon>\n        \u003Cmd-icon slot=\"inactive-icon\">search\u003C\u002Fmd-icon>\n      \u003C\u002Fmd-navigation-tab>\n    \u003C\u002Fmd-navigation-bar>\n  \u003C\u002Fnav>\n  \u003Cmain class=\"md3-content\">\n    \u003Cheader class=\"md3-top-app-bar\">\n      \u003Ch1 class=\"md3-top-app-bar__title\" style=\"font: var(--md-sys-typescale-title-large)\">\n        Page Title\n      \u003C\u002Fh1>\n    \u003C\u002Fheader>\n    \u003Cdiv class=\"md3-body\">\n      \u003C!-- Content here -->\n    \u003C\u002Fdiv>\n  \u003C\u002Fmain>\n\u003C\u002Fdiv>\n```\n\n```css\n.md3-app {\n  display: flex;\n  min-height: 100vh;\n  background: var(--md-sys-color-surface);\n  color: var(--md-sys-color-on-surface);\n}\n\n.md3-nav-rail {\n  width: 80px;\n  background: var(--md-sys-color-surface);\n  border-right: 1px solid var(--md-sys-color-outline-variant);\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  padding-top: 12px;\n  gap: 12px;\n}\n\n.md3-content {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.md3-top-app-bar {\n  height: 64px;\n  padding: 0 16px;\n  display: flex;\n  align-items: center;\n  background: var(--md-sys-color-surface);\n}\n\n.md3-body {\n  padding: 24px;\n  flex: 1;\n}\n\n\u002F* Responsive: switch to bottom nav on compact *\u002F\n@media (max-width: 599px) {\n  .md3-app { flex-direction: column; }\n  .md3-nav-rail {\n    order: 1;\n    width: 100%;\n    flex-direction: row;\n    justify-content: center;\n    border-right: none;\n    border-top: 1px solid var(--md-sys-color-outline-variant);\n    padding: 0;\n  }\n}\n```\n\n### Card Grid\n\n```html\n\u003Cdiv class=\"md3-card-grid\">\n  \u003Cdiv class=\"md3-card md3-card--outlined\">\n    \u003Cimg src=\"image.jpg\" alt=\"Description\" class=\"md3-card__media\">\n    \u003Cdiv class=\"md3-card__content\">\n      \u003Ch3 style=\"font: var(--md-sys-typescale-title-medium)\">Card Title\u003C\u002Fh3>\n      \u003Cp style=\"font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant)\">\n        Supporting text for this card.\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n    \u003Cdiv class=\"md3-card__actions\">\n      \u003Cmd-text-button>Learn more\u003C\u002Fmd-text-button>\n      \u003Cmd-filled-tonal-button>Action\u003C\u002Fmd-filled-tonal-button>\n    \u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n```css\n.md3-card-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n  gap: 16px;\n}\n\n.md3-card--outlined {\n  border: 1px solid var(--md-sys-color-outline-variant);\n  border-radius: var(--md-sys-shape-corner-medium, 12px);\n  background: var(--md-sys-color-surface);\n  overflow: hidden;\n}\n\n.md3-card__content { padding: 16px; }\n.md3-card__actions { padding: 8px 16px 16px; display: flex; gap: 8px; justify-content: flex-end; }\n.md3-card__media { width: 100%; aspect-ratio: 16\u002F9; object-fit: cover; }\n```\n\n### Form Layout\n\n```html\n\u003Cform class=\"md3-form\">\n  \u003Cmd-outlined-text-field label=\"Full name\" required>\u003C\u002Fmd-outlined-text-field>\n  \u003Cmd-outlined-text-field label=\"Email\" type=\"email\" required>\u003C\u002Fmd-outlined-text-field>\n  \u003Cmd-outlined-text-field label=\"Message\" type=\"textarea\" rows=\"4\">\u003C\u002Fmd-outlined-text-field>\n  \u003Cdiv class=\"md3-form__actions\">\n    \u003Cmd-text-button type=\"reset\">Cancel\u003C\u002Fmd-text-button>\n    \u003Cmd-filled-button type=\"submit\">Submit\u003C\u002Fmd-filled-button>\n  \u003C\u002Fdiv>\n\u003C\u002Fform>\n```\n\n```css\n.md3-form {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  max-width: 560px;\n}\n\n.md3-form__actions {\n  display: flex;\n  gap: 8px;\n  justify-content: flex-end;\n  margin-top: 8px;\n}\n```\n\nMore patterns: `references\u002Fnavigation-patterns.md`, `references\u002Flayout-and-responsive.md`\n\n## Anti-Patterns\n\n**Never do these when implementing MD3:**\n\n- **Mix MD2 and MD3 libraries**: Don't use `@material\u002Fmdc-*` (MD2) alongside `@material\u002Fweb` (MD3). They have incompatible APIs and styling.\n- **Hardcode colors**: Always use `var(--md-sys-color-*)` tokens, never raw hex\u002Frgb values. Hardcoded colors break dynamic theming, dark mode, and contrast adjustment.\n- **Ignore tonal pairing**: Only combine colors in their intended pairs (e.g., `primary` + `on-primary`, `surface-container` + `on-surface`). Arbitrary pairings break contrast in dynamic color and high contrast modes.\n- **Use `outline` for dividers**: Use `outline-variant` for dividers. `outline` is for important boundaries like text field borders.\n- **Import all of @material\u002Fweb**: Always import individual component modules. Barrel imports include every component and destroy bundle size.\n- **Use `border-radius` directly**: Use shape tokens (`var(--md-sys-shape-corner-medium)`) so shapes stay consistent with theming.\n- **Use shadows for elevation by default**: MD3 communicates elevation through tonal surface color, not shadows. Only add shadows when elements need extra separation from busy backgrounds.\n- **Apply frontend-design \"avoid Roboto\" rule**: On **Android**, **Roboto** is the default Material typeface; **web** often uses Roboto or Roboto Flex with MD3 tokens. Replace only when intentionally customizing the type scale.\n- **Assume SSR compatibility**: `@material\u002Fweb` uses Web Components (custom elements) which require JavaScript to render. They won't produce meaningful HTML in SSR without additional hydration strategies.\n- **Ignore foldables and large screens**: MD3 is designed for all screen sizes. Don't ship phone-only layouts — use canonical layouts, multi-pane at 600dp+, and test on foldable\u002Ftablet emulators. Place no interactive content across the fold\u002Fhinge.\n- **Stretch content to fill wide screens**: On Large (1200dp+) and Extra-large (1600dp+) windows, constrain content to a max width (840–1040dp). Endless-width text lines are unreadable.\n\n## Platform Notes\n\n### Flutter\n```dart\nMaterialApp(\n  theme: ThemeData(\n    useMaterial3: true,\n    colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),\n  ),\n);\n```\n\n### Jetpack Compose\nSee **[Jetpack Compose (primary)](#jetpack-compose-primary)** above. Use `LocalContext.current` with `dynamicLightColorScheme` \u002F `dynamicDarkColorScheme` only when `Build.VERSION.SDK_INT >= Build.VERSION_CODES.S` and dynamic color is enabled; otherwise supply static light\u002Fdark schemes.\n\n### Component Name Mapping\n| Concept | Web | Flutter | Compose |\n|---------|-----|---------|---------|\n| Filled button | `md-filled-button` | `FilledButton` | `Button` |\n| Outlined text field | `md-outlined-text-field` | `OutlinedTextField` | `OutlinedTextField` |\n| FAB | `md-fab` | `FloatingActionButton` | `FloatingActionButton` |\n| Navigation bar | `md-navigation-bar` | `NavigationBar` | `NavigationBar` |\n| Switch | `md-switch` | `Switch` | `Switch` |\n\n## M3 Expressive (May 2025)\n\nThe Expressive update adds visual richness while maintaining usability. **Availability differs by platform** — do not assume one stack implements everything.\n\n| Capability | Jetpack Compose | Flutter | Web (`@material\u002Fweb`) |\n|------------|-----------------|---------|------------------------|\n| Expressive layout scaffold \u002F adaptive layout | Compose-first via Material3 adaptive APIs and window size classes | Use Flutter adaptive\u002Flayout primitives | CSS\u002Fcontainer queries\u002Fmanual layout; no Material Web parity |\n| 8dp spacing system | Use design tokens \u002F `Dp` spacing constants; keep margins, padding, and gaps adaptive | Use theme spacing constants | CSS custom properties \u002F design tokens |\n| Expressive lists, menus, search, search app bar | Primary target per current Material guidance; check BOM and opt-ins | Check current Flutter Material docs | Spec-aligned custom implementation; `@material\u002Fweb` is maintenance-only |\n| Spring \u002F motion physics | Supported in Material 3 (see `MotionScheme`, expressive APIs per BOM) | Varies by Flutter Material version | **Not** in Material Web; use easing\u002Fduration or custom motion |\n| Emphasized typography | Via theme \u002F type scale | Via theme | Token\u002FCSS only; no full Expressive component set |\n| Shape morphing | Compose-first in Google’s expressive rollout | Check current Flutter docs | **Not** in `@material\u002Fweb` |\n| New button sizes (XS–XL), toggle | Follow Compose Material3 components | Follow Flutter MD3 | Height\u002FCSS approximations only |\n| Extra corner tokens (e.g. large-increased) | `MaterialTheme.shapes` \u002F tokens | Theme shapes | CSS `--md-sys-shape-*` |\n| 3 contrast levels | Scheme builders \u002F system | Plugins \u002F manual | `SchemeContent` contrast parameter in JS utilities |\n| Watches \u002F XR form factors | Use Compose\u002FWear\u002FXR-specific guidance where available | Platform-specific | Web\u002Fspatial UI custom implementation |\n\n**Web:** [Material Web is maintenance-only; M3 Expressive is not on Web](https:\u002F\u002Fm3.material.io\u002Fdevelop\u002Fweb). Use CSS easing\u002Fduration tokens as fallback for motion, not spring parity.\n\n**Legacy easing\u002Fduration** remains valid for **transitions** (enter\u002Fexit\u002Fshared-axis) where the spec still references them; see the Motion table below.\n\n## MD3 Compliance Audit\n\nWhen invoked with `audit` as the argument (e.g., `\u002Fmaterial-3 audit`), or when asked to audit\u002Freview MD3 compliance, analyze the target app or page and produce a compliance report.\n\n### Audit Procedure\n\n1. **Identify the target**: The user provides a URL (use browser tools to inspect), file paths (read source), or a running app.\n2. **Inspect the following categories** and score each 0–10:\n\n| Category | What to check |\n|----------|--------------|\n| **Color tokens** | **Web:** `--md-sys-color-*` \u002F generated CSS. **Compose:** `MaterialTheme.colorScheme` roles (no arbitrary `Color(...)` for surfaces without reason). Proper tonal pairing (`onX` on `X`). Dark theme. **Flutter:** `ColorScheme` roles. |\n| **Typography** | MD3 type scale: **Compose** `MaterialTheme.typography`; **web** typescale tokens; correct roles (Display, Headline, Title, Body, Label). |\n| **Shape** | **Compose** `MaterialTheme.shapes` \u002F component `Shape`; **web** `var(--md-sys-shape-*)`. Buttons: full; cards: medium; avoid magic numbers. |\n| **Elevation** | Tonal elevation (`Surface` tonal\u002Fshadow as appropriate). **Web:** hover\u002Ffocus where relevant. |\n| **Components** | **Compose:** Material3 composables (`Button`, `Scaffold`, etc.). **Web:** `@material\u002Fweb` or spec-aligned HTML\u002FCSS. Correct variants. |\n| **Layout** | Canonical layouts; **Compose** window size class \u002F adaptive APIs; readable max width on large widths; foldable hinge avoidance. |\n| **Navigation** | Bar \u002F rail \u002F drawer \u002F drawers+**Compose** `NavHost` patterns per size class; predictive back where applicable. |\n| **Motion** | **Compose** `MotionScheme` \u002F expressive APIs when used; transitions may still use easing\u002Fduration. **Web:** CSS motion tokens fallback. |\n| **Accessibility** | MD3 roles help, but **verify contrast**: UI components often need **3:1** for large text\u002Fborders and **4.5:1** for normal text (WCAG 2.x). TalkBack\u002Fsemantics (Compose), focus order, touch targets (~48dp). **Web:** ARIA, keyboard. |\n| **Theming** | **Compose:** `MaterialTheme` + light\u002Fdark\u002Fdynamic as designed. **Web:** CSS custom properties on `:root` or subtree. **Flutter:** `ThemeData` + `ColorScheme`. |\n\n3. **Generate the report**:\n\n```\n# MD3 Compliance Audit Report\n\nTarget: [URL or file path]\nDate: [date]\nOverall Score: [X\u002F100]\n\n## Scores by Category\n| Category       | Score | Status |\n|----------------|-------|--------|\n| Color tokens   | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Typography     | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Shape          | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Elevation      | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Components     | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Layout         | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Navigation     | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Motion         | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Accessibility  | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n| Theming        | X\u002F10  | [pass\u002Fwarn\u002Ffail] |\n\n## Critical Issues\n[List items scoring 0-3 with specific file:line references and fixes]\n\n## Warnings\n[List items scoring 4-6 with recommendations]\n\n## Passing\n[List items scoring 7-10 with notes on what's done well]\n\n## Recommended Fixes (Priority Order)\n1. [Most impactful fix first]\n2. ...\n```\n\n### Audit Methods\n\n**For a live URL** (browser or devtools):\n- Inspect computed styles and CSS variables (`--md-sys-*`)\n- Resize viewport or use responsive mode for breakpoints\n- Capture screenshots at key widths if helpful\n\n**For source code** (file paths provided):\n- **Compose\u002FKotlin:** `.kt` files — `MaterialTheme`, composables, `Color(0x…)` abuse, hard-coded `Dp`, missing `Modifier.semantics` where needed\n- **Flutter:** `.dart` — `ThemeData`, `ColorScheme`\n- **Web:** HTML\u002FJSX\u002FVue\u002FSvelte; CSS\u002FSCSS for tokens\n- Check **web** imports for `@material\u002Fweb` vs `@material\u002Fmdc-*` (MD2)\n\n**Quick checks** (adapt paths to your stack):\n```\n# Web: hardcoded colors\ngrep -rn '#[0-9a-fA-F]\\{3,8\\}' --include='*.css' --include='*.scss'\n\n# Compose: raw Color(...) audits (sample — tune for your codebase)\ngrep -rn 'Color(0x' --include='*.kt'\n\n# MD2 on web\ngrep -rn '@material\u002Fmdc-' --include='*.js' --include='*.ts'\n```\n\n**Browser automation** (if your environment exposes MCP browser tools): navigate, snapshot DOM\u002FCSS variables, resize for breakpoints — optional, not required.\n\n### Scoring Guide\n\n- **9-10**: Fully MD3 compliant, uses correct tokens and patterns\n- **7-8**: Mostly compliant, minor issues (e.g., a few hardcoded values)\n- **4-6**: Partially compliant, some MD3 patterns but significant gaps\n- **1-3**: Major violations, mostly non-MD3 or MD2 patterns\n- **0**: Not applicable or completely absent\n\nStatus thresholds: **pass** (7+), **warn** (4-6), **fail** (0-3)\n\n## Reference Documents\n\n- `references\u002Fcolor-system.md` — Color roles, tonal palettes, dynamic color, Compose + CSS mapping\n- `references\u002Ftypography-and-shape.md` — Type scale, shape corners, elevation, motion, Expressive notes\n- `references\u002Fcomponent-catalog.md` — Components: Compose + `@material\u002Fweb` where applicable\n- `references\u002Fnavigation-patterns.md` — Navigation selection, Compose-first adaptive patterns\n- `references\u002Flayout-and-responsive.md` — Breakpoints, canonical layouts, insets, foldables\n- `references\u002Ftheming-and-dynamic-color.md` — Theming: Compose first, then Flutter and web\n",{"name":5,"description":23,"argument-hint":24,"user-invokable":25},"Implement Google's Material Design 3 (Material You) UI system. Primary: Jetpack Compose Material3 (MaterialTheme, components, adaptive layout). Also Flutter and limited web (@material\u002Fweb, maintenance mode). Covers tokens, 30+ components, layout, theming, M3 Expressive (platform matrix), and accessibility. Use when: \"material design\", \"MD3\", \"material you\", \"Jetpack Compose\", \"MaterialTheme\", \"material component\", \"md3 button\".\n","[component|theme|layout|scaffold|audit] [description or URL]",true,"main","d922e716d0801fbdf6c27f023b245c8da7e4c804",".agents\u002Fskills\u002Fmaterial-3",63,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot","https:\u002F\u002Ftobs.app","https:\u002F\u002Fgithub.com\u002FBotHarness","https:\u002F\u002Fdeepseekbot.app\u002F","2026-11-15 06:17:31",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":25},[37,40,43],{"tool":38,"command":39},"npx","npx skills add BotHarness\u002FDeepSeekBot --skill material-3",{"tool":41,"command":42},"bunx","bunx skills add BotHarness\u002FDeepSeekBot --skill material-3",{"tool":44,"command":45},"pnpm","pnpm dlx skills add BotHarness\u002FDeepSeekBot --skill material-3","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002FSKILL.md",[48,54,58,62,66,70,74],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},".claude-plugin\u002Fplugin.json","REFERENCE","参考文档",413,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002F.claude-plugin\u002Fplugin.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fcolor-system.md",15959,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002Freferences\u002Fcolor-system.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fcomponent-catalog.md",28040,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002Freferences\u002Fcomponent-catalog.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Flayout-and-responsive.md",22264,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002Freferences\u002Flayout-and-responsive.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fnavigation-patterns.md",17010,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002Freferences\u002Fnavigation-patterns.md",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Ftheming-and-dynamic-color.md",14351,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002Freferences\u002Ftheming-and-dynamic-color.md",{"path":75,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Ftypography-and-shape.md",14513,"https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmaterial-3\u002Freferences\u002Ftypography-and-shape.md",[79,86,93,100,107,114],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7CY5WHFGASZATK5CQF05G0A","slide-authoring","Technical reference for writing or editing open-slide pages — file contract, 1920×1080 canvas, type scale, layout, palette\u002Fvisual direction, assets, speaker notes, stepped reveals, page transitions, and morph transitions. Consult this whenever you are about to write or modify any file under `slides\u002F\u003Cid>\u002F`, including from inside the `create-slide` or `apply-comments` workflows, or for any ad-hoc slide edit. Triggers on phrases like \"edit slide\", \"tweak this page\", \"fix the layout\", \"change the palette\", \"reveal one by one\", \"add a transition\", \"morph transition\", \"write the speaker notes\", \"generate the script \u002F talk track\", \"investigate the slide framework\", \"how do slides work here\".","https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002Fapps\u002Fpresentations\u002F.agents\u002Fskills\u002Fslide-authoring\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7CY5NMS099ZRH9ECYS47ZKG","current-slide","Resolve which slide, page, and (optionally) selected element the user is currently viewing in the open-slide dev server. Consult this whenever the user references \"this page\", \"this slide\", \"this element\", \"the slide I'm on\", \"the current page\", or any deictic reference to slide content without naming it. Re-read `node_modules\u002F.open-slide\u002Fcurrent.json` at the start of every such turn — the user navigates between turns, so a value you read earlier in the conversation is almost certainly stale.","https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002Fapps\u002Fpresentations\u002F.agents\u002Fskills\u002Fcurrent-slide\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7CY5G6XHNY7Y8KVGGKF654E","create-theme","Use this skill when the user wants to create, draft, author, or extract a slide theme in this open-slide repo. Triggers on phrases like \"create a theme\", \"make a theme called X\", \"extract a theme from \u003Cslide>\", \"build a theme from these images\". Produces two paired files under `themes\u002F` — `\u003Cid>.md` (palette, typography, layout, fixed Title\u002FFooter components, motion) and `\u003Cid>.demo.tsx` (a runnable demo slide that the dev-UI Themes panel previews). Do NOT use for editing real slides — only for authoring the theme bundle.","https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002Fapps\u002Fpresentations\u002F.agents\u002Fskills\u002Fcreate-theme\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M7CY5B0DZNEVRY95X3QEKW3C","create-slide","Use this skill when the user wants to create, draft, author, or generate new slides \u002F a presentation in this open-slide repo. Triggers on phrases like \"make slides about X\", \"make a deck about X\", \"create a presentation\", \"draft slides for\", \"new slide\", \"a deck with speaker notes \u002F a script\", or when the user asks to add content under `slides\u002F`. Do NOT use for editing the framework itself — only for authoring content inside `slides\u002F\u003Cid>\u002F`.","https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002Fapps\u002Fpresentations\u002F.agents\u002Fskills\u002Fcreate-slide\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":18},"01M7CY57ED279GA6QC3BFMPXG5","apply-comments","Apply pending @slide-comment markers written by the open-slide inspector tool. Use when the user asks to \"apply comments\", \"process slide comments\", \"apply the inspector comments\", or references markers left inside `slides\u002F\u003Cid>\u002Findex.tsx`.","https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002Fapps\u002Fpresentations\u002F.agents\u002Fskills\u002Fapply-comments\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":18},"01M7CY53ZCYB0P3GYM2V3MEN1N","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002FBotHarness\u002FDeepSeekBot\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[],[]]