material-design-3-typography

Implements Material Design 3 type scales, variable fonts, and typography tokens in CSS.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Applying Material Design 3 typography correctly requires memorizing 15 baseline type styles plus 15 emphasized variants, each with exact sizes, line heights, weights, and letter spacing. This Skill provides the complete specification and ready-to-use CSS patterns so text hierarchy is implemented consistently without consulting external docs. ## Core Features & Use Cases - Complete M3 Type Scale: All 15 baseline styles (display, headline, title, body, label) plus 15 M3 Expressive emphasized variants with exact size, weight, line-height, and tracking values. - CSS Token Implementation: Ready-made CSS custom properties and reusable type classes following the md-sys-typescale naming convention. - Variable Font Guidance: Roboto Flex setup with font-variation-settings, font-display swap, subsetting, and performance optimization. - Use Case: When building a Next.js page with a design system, ask for M3 typography and receive correctly scaled headline, body, and label classes with emphasized variants for calls to action, plus an HTML preview of the full scale. ## Quick Start Apply Material Design 3 typography to my page with a headline-large title, body-large text, and an emphasized label for the primary button.

Frequently Asked Questions about material-design-3-typography

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

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

Define CSS custom properties for each of the 15 type scale roles using the md-sys-typescale naming convention, covering font family, size, line height, weight, and tracking. Then create reusable classes like .headline-large and .body-medium that reference those tokens.

What is the M3 type scale and how many styles does it have?

The M3 baseline type scale has 15 styles across five roles: display, headline, title, body, and label, each in large, medium, and small sizes. M3 Expressive adds 15 emphasized variants with heavier weights for calls to action and key content.

What font should I use for Material Design 3?

Roboto is the default M3 typeface, and Roboto Flex is recommended for M3 Expressive because its variable weight and width axes enable dynamic adjustments. Brand fonts like Inter, Poppins, or Work Sans can substitute if they remain readable at small sizes.

When should I use emphasized type styles in M3 Expressive?

Use emphasized styles for calls to action, key headlines, dashboard data points, and onboarding highlights. Apply them sparingly alongside baseline styles, since the contrast between baseline and emphasized weights is what creates visual hierarchy.

Does M3 typography meet accessibility contrast requirements?

The guidelines require a minimum 4.5:1 contrast ratio for body text and 3:1 for large text, using semantic color tokens like on-surface. Relative units such as rem ensure text remains readable when users zoom, and M3 Expressive's medium contrast approach balances legibility with expression.

How do I make M3 typography responsive across screen sizes?

Use CSS clamp() to create fluid type tokens, for example scaling display-large between 2.5rem and 3.562rem based on viewport width. Container queries can also adjust component-level type sizes, such as card titles, based on their container width.