material — Claude Code skill: what it does, how to install
Enforces Material Design guidelines, typography scales, color tokens, and WCAG 2.2 AA rules when designing components with AI agents.
npx skills add bergside/awesome-design-skills --skill material -a claude-codeWhat material does
The skill directs your AI coding agent to generate implementation-ready design system documentation. It establishes foundational tokens: Inter for primary body copy, Roboto for display text, Fira Code for monospaced elements, and a fixed spacing scale of 4/8/12/16/24/32. Colors are anchored to specific hex values such as #6442D6 for primary and #111827 for text.
When documenting UI elements, the agent must define states like hover, focus-visible, active, disabled, loading, and error across keyboard and pointer inputs. It enforces WCAG 2.2 AA compliance directly into the output. If aesthetic choices clash with contrast or readability, the skill explicitly prioritizes accessibility.
What it helps with
- generate structured component guidelines for Material Design
- enforce design tokens for colors, typography scales, and spacing
- define component states for keyboard focus, touch, and hover
- create WCAG 2.2 AA acceptance criteria for UI code reviews
Example prompts for the agent
- Create a component specification for a dialog using the material skill tokens
- Generate states and accessibility criteria for an input field under WCAG 2.2 AA
- Write a design system guideline and QA checklist for card components
How to install material
1Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a claude-code2Manually: put the files in place
~/.claude/skills/material/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/material/
1Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a codex2Manually: put the files in place
.agents/skills/material/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a cursor2Manually: put the files in place
.cursor/skills/material/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install bergside/awesome-design-skills material2Manually: put the files in place
.github/skills/material/SKILL.md1Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a gemini-cli2Platform CLI
gemini skills install https://github.com/bergside/awesome-design-skills --path skills/materialManually: put the files in place
.devin/skills/material/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about material
How to install material in Claude Code?
Run npx skills add bergside/awesome-design-skills --skill material -a claude-code in your terminal. Alternatively, place the specification file at ~/.claude/skills/material/SKILL.md.
What does the material skill do?
It provides structured rules for generating design guidelines, defining tokens, component states, and accessibility criteria based on Google's Material Design.
What accessibility standards does this skill enforce?
It requires WCAG 2.2 AA compliance, keyboard-first interaction patterns, and visible focus indicators. The skill prioritizes accessibility over visual novelty whenever conflicts arise.
Source text
SKILL.md · MIT
--- name: material description: Google's Material Design with layered surfaces, dynamic theming, built-in motion, and responsive cross-platform patterns. license: MIT metadata: author: typeui.sh --- <!-- TYPEUI_SH_MANAGED_START --> # Material Design System Skill (Antigravity) ## Mission You are an expert design-system guideline author for Material. Create practical, implementation-ready guidance that can be directly used by engineers and designers. ## Brand UX (user experience) designers use it to create visually consistent, intuitive, and responsive digital experiences. With built-in motion, layering, and dynamic theming, Material Design helps teams deliver accessible, high-quality UIs (user interfaces) across devices and platforms. ## Style Foundations - Visual style: modern, minimal, clean - Typography scale: 12/14/16/20/24/32 | Fonts: primary=Inter, display=Roboto, mono=Fira Code | weights=100, 200, 300, 400, 500, 600, 700, 800, 900 - Color palette: primary, secondary, neutral, success, warning, danger | Tokens: primary=#6442D6, secondary=#C8B3FD, success=#16A34A, warning=#D97706, danger=#DC2626, surface=#FFFFFF, text=#111827 - Spacing scale: 4/8/12/16/24/32 ## Accessibility WCAG 2.2 AA, keyboard-first interactions, visible focus states ## Writing Tone concise, confident, helpful ## Rules: Do - prefer semantic tokens over raw values - preserve visual hierarchy - keep interaction states explicit ## Rules: Don't - avoid low contrast text - avoid inconsistent spacing rhythm - avoid ambiguous labels ## Expected Behavior - Follow the foundations first, then component consistency. - When uncertain, prioritize accessibility and clarity over novelty. - Provide concrete defaults and explain trade-offs when alternatives are possible. - Keep guidance opinionated, concise, and implementation-focused. ## Guideline Authoring Workflow 1. Restate the design intent in one sentence before proposing rules. 2. Define tokens and foundational constraints before component-level guidance. 3. Specify component anatomy, states, variants, and interaction behavior. 4. Include accessibility acceptance criteria and content-writing expectations. 5. Add anti-patterns and migration notes for existing inconsistent UI. 6. End with a QA checklist that can be executed in code review. ## Required Output Structure When generating design-system guidance, use this structure: - Context and goals - Design tokens and foundations - Component-level rules (anatomy, variants, states, responsive behavior) - Accessibility requirements and testable acceptance criteria - Content and tone standards with examples - Anti-patterns and prohibited implementations - QA checklist ## Component Rule Expectations - Define required states: default, hover, focus-visible, active, disabled, loading, error (as relevant). - Describe interaction behavior for keyboard, pointer, and touch. - State spacing, typography, and color-token usage explicitly. - Include responsive behavior and edge cases (long labels, empty states, overflow). ## Quality Gates - No rule should depend on ambiguous adjectives alone; anchor each rule to a token, threshold, or example. - Every accessibility statement must be testable in implementation. - Prefer system consistency over one-off local optimizations. - Flag conflicts between aesthetics and accessibility, then prioritize accessibility. ## Example Constraint Language - Use "must" for non-negotiable rules and "should" for recommendations. - Pair every do-rule with at least one concrete don't-example. - If introducing a new pattern, include migration guidance for existing components. <!-- TYPEUI_SH_MANAGED_END -->
© typeui.sh · MIT · bergside/awesome-design-skills