dvn

Public skill

Alias /material-design

Material Design

View prompt

Read https://dvn.pw/material-design.md and help me use this skill for my task. Load task-required stages through dvn when needed.

How to use Material Design
CURRENTVerified 2026-12-02T21:31:37.794Z
Read the Markdown invocation packet

Skill instructions

Original instructions

material-design/SKILL.md

---
name: material-design
description: Apply Google's Material 3 guidance and official Material Symbols to web (React or plain HTML/TS) and Android/Jetpack Compose interfaces, including Android TV. Use when restyling or building UI to look and behave "more Material", replacing a third-party icon set with Material Symbols, or making icon-only controls clear and screen-reader friendly. Not for brand strategy or copywriting alone.
---

# Material Design

Make an interface read as Google Material 3: one official icon family, clear state, tonal surfaces, rounded shapes, and controls that communicate without words while still speaking to assistive technology.

## Contract

- Use Google's **Material Symbols** as the only icon family in the product surface being changed. Pick one style (Rounded, Outlined, or Sharp) and keep it everywhere. Remove the replaced icon library when nothing else uses it.
- Source glyphs from Google: the Material Symbols CDN or `google/material-design-icons` (Apache-2.0). Vendor them into the repository; builds must not fetch icons. Keep the license beside the vendored files. See [symbols and sourcing](references/symbols-and-sourcing.md).
- Every glyph is decorative (`aria-hidden="true"`, `contentDescription = null`) **inside** a control that owns the accessible name. Never let a screen reader announce an icon by itself.
- Icon-only controls need an accessible name that states the action and, when it toggles, the current state ("Shuffle on", "Repeat one"). Add a tooltip or `title` for pointer users.
- Go icon-only only for universally understood concepts: play, pause, previous/next, shuffle, repeat, search, microphone, close, add, edit, delete, download, upload, open in new, copy, move up/down, expand. Keep a visible label beside the icon for navigation destinations and for any action whose meaning an icon alone would leave ambiguous.
- Show state in the glyph as well as in color: filled style for the selected destination and primary transport control; `shuffle_on`, `repeat_on`, and `repeat_one_on` for active modes. Color is never the only signal.
- Follow Material 3 structure, not just its icons: full-rounded buttons and chips, rounded surfaces (dialogs 28dp), tonal surface layers instead of heavy borders and textures, visible focus and pressed states, and one accent color role with an on-accent color that passes contrast. See the [Material 3 checklist](references/material-3-checklist.md).
- Keep minimum targets at 48dp (Android) or 44px (web); TV controls larger. Preserve keyboard, D-pad, and focus behavior when swapping controls.
- Run the project's existing tests. Tests that locate controls by accessible name keep working when labels are preserved; update any that assert on removed text rather than loosening them.

Pair with `no-useless-copy` when available: once a symbol carries a concept, delete words that only repeat it, but never delete an accessible name.

## Method

1. Inventory controls and icons on the affected surfaces. Map each existing icon to a Material Symbol name (a starter map is in [symbols and sourcing](references/symbols-and-sourcing.md)); flag concepts with no clear symbol to keep as text.
2. List the needed symbols (and which need the filled style) and vendor them with [scripts/fetch_material_symbols.py](scripts/fetch_material_symbols.py). It writes a TypeScript path table for web and vector drawables for Android from the same list.
3. Add one small shared helper per platform: a React component, a DOM helper, or a Compose icon button. Recipes are in [platform recipes](references/platform-recipes.md).
4. Replace controls. Keep existing accessible names; move visible words into `aria-label`/`contentDescription` when a control becomes icon-only.
5. Align tokens with Material 3 roles: surface, surface-container levels, on-surface, on-surface-variant, primary, on-primary, outline. Derive the primary accent from the product's identity (for example its logo color) instead of a default purple.
6. Verify: typecheck/compile, unit and browser/instrumented tests, a rendered screenshot at desktop and phone (or TV) sizes, keyboard or D-pad traversal, and a screen reader spot check where available.

## Completion Check

- One Material Symbols style across the changed surfaces, vendored with its license, and no leftover imports from the replaced icon set.
- Every icon-only control has an action-and-state accessible name and a tooltip; every glyph is hidden from assistive technology.
- Selected navigation and toggled modes change the glyph, not only the color.
- Buttons are full-rounded, dialogs and cards use rounded tonal surfaces, and focus is visible.
- Tests pass, and rendered screenshots were reviewed. Report anything not verified, such as screen reader output on a physical device.
Source and verification details

Canonical skill ID: public/material-design

Freshness: Age: 8 seconds; source check: verified

Main source: material-design/SKILL.md

Main Git blob: 6fd89761cc7cbcba80fe0e44feaefef6882cfad1

  • devin-thomas/skills @ 4e48b69132901e3a6ec97b854d95d3d932ff01f6; verified 2026-12-02T21:31:37.794Z