material — скилл для Claude Code: что делает и как установить
Скилл задаёт правила Material Design для проектирования интерфейсов: фиксирует шкалу отступов, типографику, токены цветов и требования WCAG 2.2 AA.
npx skills add bergside/awesome-design-skills --skill material -a claude-codeЧто делает material
Скилл инструктирует агента составлять спецификации компонентов по принципам Material Design. Вместо произвольных стилей агент опирается на цветовую палитру (#6442D6 для primary, #C8B3FD для secondary, #111827 для текста), типографику с шрифтами Inter, Roboto и Fira Code, а также шаг отступов 4/8/12/16/24/32.
При описании компонентов агент обязан задавать состояния hover, focus-visible, active, disabled, loading и error. Требования к доступности опираются на стандарт WCAG 2.2 AA и фокус с клавиатуры. Если эстетика интерфейса спорит с контрастностью или читаемостью, скилл требует отдавать безусловный приоритет доступности.
Какие задачи решает
- составить спецификацию UI-компонента по стандартам Material Design
- зафиксировать дизайн-токены цветов, отступов и шрифтов для проекта
- сформировать чек-лист проверки доступности интерфейса по WCAG 2.2 AA
- описать состояния компонента для клика, клавиатурного фокуса и ошибок
Примеры запросов агенту
- Составь спецификацию для кнопки с учётом токенов Material Design и состояний фокуса
- Опиши правила для модального окна по шкале отступов и шрифтов скилла material
- Сформируй QA-чеклист для проверки карточки товара на соответствие WCAG 2.2 AA
Как установить material
1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a claude-code2Вручную: положить файлы
~/.claude/skills/material/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/material/
1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a codex2Вручную: положить файлы
.agents/skills/material/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a cursor2Вручную: положить файлы
.cursor/skills/material/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install bergside/awesome-design-skills material2Вручную: положить файлы
.github/skills/material/SKILL.md1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a gemini-cli2Командой платформы
gemini skills install https://github.com/bergside/awesome-design-skills --path skills/materialВручную: положить файлы
.devin/skills/material/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill material -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о material
Как установить material в Claude Code?
Выполните в терминале команду npx skills add bergside/awesome-design-skills --skill material -a claude-code. Также можно вручную поместить файл инструкции по пути ~/.claude/skills/material/SKILL.md.
Что делает скилл material?
Он задаёт системные правила создания компонентов: палитру токенов, шкалу размеров текста, шесть шагов отступов и пошаговый план формирования дизайн-гайдов.
Какие требования к доступности заложены в скилл?
Скилл требует строгого соответствия уровню WCAG 2.2 AA, видимого фокуса и поддержки управления с клавиатуры. Любые визуальные решения уступают критериям доступности при возникновении конфликта.
Исходный текст
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