material-design-3-layout

Implements Material Design 3 layout, spacing, grid, and elevation systems in CSS.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/pohlai88/afenda-xforge-v5 --skill material-design-3-layout-pohlai88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: material-design-3-layout
Source: https://github.com/pohlai88/afenda-xforge-v5/tree/main/.agents/skills/material-design-3-layout
Command: npx skills add https://github.com/pohlai88/afenda-xforge-v5 --skill material-design-3-layout-pohlai88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building responsive interfaces that follow Material Design 3 guidelines requires memorizing dozens of spacing values, breakpoints, elevation levels, and interaction state rules, and inconsistent application leads to visually broken layouts. ## Core Features & Use Cases - Spacing and Grid Systems: Provides the 4dp spacing scale, semantic spacing tokens, and 4/8/12-column responsive grids with standard M3 breakpoints (600px, 905px, 1240px). - Component Specifications: Defines exact padding, sizing, and gap values for buttons, cards, dialogs, lists, and navigation components. - Elevation and Interaction States: Supplies five elevation levels with shadow tokens, surface tinting, background blur for overlays, and state layer opacities for hover, focus, and pressed states. - Use Case: When building a dashboard page, apply the responsive grid patterns, card containment rules, and 48px touch targets to produce a layout that works from mobile to desktop. ## Quick Start Apply Material Design 3 layout guidelines to build a responsive dashboard page with a sidebar, card grid, and proper spacing tokens.

Frequently Asked Questions about material-design-3-layout

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Material Design 3 spacing in CSS?

Define CSS custom properties on the 4dp scale, such as --md-sys-spacing-4 for 16px, then create semantic tokens like component padding and section gaps that reference them. Use these tokens everywhere instead of hard-coded pixel values.

What breakpoints does Material Design 3 use for responsive layouts?

M3 defines breakpoints at 600px, 905px, 1240px, and 1440px. Grids use 4 columns on mobile, 8 on tablets, and 12 on desktop, with margins and gutters of 16px on mobile and 24px on larger screens.

How do Material Design 3 elevation levels work?

M3 defines six elevation levels from 0 to 5, each with a specific box-shadow token, ranging from flat surfaces to modal bottom sheets. Elevated surfaces also receive a subtle primary-color tint overlay to reinforce depth.

What is the minimum touch target size in Material Design?

All interactive elements must be at least 48 by 48 dp, even if the visual element appears smaller. Achieve this with padding so the clickable area meets the accessibility requirement.

When should I use explicit versus implicit containment in layouts?

Use explicit containment such as borders, cards, or elevation for interactive or distinct actionable sections. Use implicit containment through proximity, spacing, and alignment for related text blocks, label-value pairs, and sequential content.

How do Material Design 3 interaction state layers work?

State layers are overlays using the on-surface content color at fixed opacities: 8% for hover, 12% for focus and pressed, and 16% for dragged. Only one state applies at a time, and disabled elements render content at 38% opacity.