[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C4CT86QFTT2N0PJCPTG5RB":3,"skill-same:01M7C4CT86QFTT2N0PJCPTG5RB":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C4CT86QFTT2N0PJCPTG5RB","material-design-3-typography",null,"Applies Material Design 3 Expressive typography principles including variable fonts, type scales, and hierarchy. Use this when working on text styling, type hierarchy, readable interfaces, or when the user asks to apply Material Design 3 typography guidelines.","pohlai88\u002Fafenda-xforge-v5","pohlai88","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216658843?v=4","01M7C3ZWD8Y9WVZSNWJ6200V3P","01M7C3ZWDW077V142FSQEFJJ0B",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fmaterial-design-3-typography\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: material-design-3-typography\ndescription: Applies Material Design 3 Expressive typography principles including variable fonts, type scales, and hierarchy. Use this when working on text styling, type hierarchy, readable interfaces, or when the user asks to apply Material Design 3 typography guidelines.\nlicense: Apache-2.0\n---\n\n# Material Design 3 Typography\n\n## Overview\n\nThis skill guides the implementation of Material Design 3 (M3) typography — from the baseline Material You type scale through to M3 Expressive's 30-style expanded type system — to create clear, readable, and emotionally engaging text hierarchies.\n\n**Keywords**: Material Design 3, M3, typography, type scale, variable fonts, text hierarchy, readability, font weights, line height, letter spacing, emphasized type, medium contrast, Material You\n\n## Core Principles\n\n### Typography Philosophy\n\nM3 typography focuses on:\n\n1. **Variable Fonts**: Support dynamic weight and width adjustments for expressive text\n2. **Clear Hierarchy**: Distinct type scales that guide users through content\n3. **Readability**: Optimized for legibility across devices and contexts\n4. **Flexibility**: Adaptable to different content needs and screen sizes\n5. **Expression**: Typography that conveys personality and emotion\n6. **Emphasis**: Baseline and emphasized variants for every type role (M3 Expressive)\n\n## Type Scale\n\n### Baseline Type Scale (15 styles)\n\nM3 defines a comprehensive type scale with specific roles for different UI elements. These 15 baseline styles form the foundation of all M3 typography:\n\n#### Display Styles (Large, attention-grabbing text)\n\n**Display Large**:\n- Font: Roboto (or brand font)\n- Size: 57px \u002F 3.562rem\n- Line Height: 64px \u002F 4rem\n- Weight: 400 (Regular)\n- Letter Spacing: -0.25px\n- Use: Largest headlines, hero text\n\n**Display Medium**:\n- Size: 45px \u002F 2.812rem\n- Line Height: 52px \u002F 3.25rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Large section headers\n\n**Display Small**:\n- Size: 36px \u002F 2.25rem\n- Line Height: 44px \u002F 2.75rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Smaller headers, card titles\n\n#### Headline Styles (Structural headings)\n\n**Headline Large**:\n- Size: 32px \u002F 2rem\n- Line Height: 40px \u002F 2.5rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Page titles, major sections\n\n**Headline Medium**:\n- Size: 28px \u002F 1.75rem\n- Line Height: 36px \u002F 2.25rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Subsection headers\n\n**Headline Small**:\n- Size: 24px \u002F 1.5rem\n- Line Height: 32px \u002F 2rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Component headers, dialog titles\n\n#### Title Styles (Emphasis within components)\n\n**Title Large**:\n- Size: 22px \u002F 1.375rem\n- Line Height: 28px \u002F 1.75rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Large list items, emphasized text\n\n**Title Medium**:\n- Size: 16px \u002F 1rem\n- Line Height: 24px \u002F 1.5rem\n- Weight: 500 (Medium)\n- Letter Spacing: 0.15px\n- Use: Card titles, list headers\n\n**Title Small**:\n- Size: 14px \u002F 0.875rem\n- Line Height: 20px \u002F 1.25rem\n- Weight: 500\n- Letter Spacing: 0.1px\n- Use: Compact card titles, tabs\n\n#### Body Styles (Main content)\n\n**Body Large**:\n- Size: 16px \u002F 1rem\n- Line Height: 24px \u002F 1.5rem\n- Weight: 400\n- Letter Spacing: 0.5px\n- Use: Long-form content, articles\n\n**Body Medium**:\n- Size: 14px \u002F 0.875rem\n- Line Height: 20px \u002F 1.25rem\n- Weight: 400\n- Letter Spacing: 0.25px\n- Use: Default body text\n\n**Body Small**:\n- Size: 12px \u002F 0.75rem\n- Line Height: 16px \u002F 1rem\n- Weight: 400\n- Letter Spacing: 0.4px\n- Use: Captions, helper text\n\n#### Label Styles (UI elements)\n\n**Label Large**:\n- Size: 14px \u002F 0.875rem\n- Line Height: 20px \u002F 1.25rem\n- Weight: 500\n- Letter Spacing: 0.1px\n- Use: Button text, navigation items\n\n**Label Medium**:\n- Size: 12px \u002F 0.75rem\n- Line Height: 16px \u002F 1rem\n- Weight: 500\n- Letter Spacing: 0.5px\n- Use: Small buttons, chips\n\n**Label Small**:\n- Size: 11px \u002F 0.687rem\n- Line Height: 16px \u002F 1rem\n- Weight: 500\n- Letter Spacing: 0.5px\n- Use: Tiny labels, timestamps\n\n### Emphasized Type Scale (15 additional styles — M3 Expressive)\n\nM3 Expressive adds 15 emphasized variants — one for each baseline style. Emphasized styles are bolder, larger, or more dynamic for highlighting key moments, calls to action, and editorial emphasis:\n\n| Role | Baseline | Emphasized |\n|------|----------|------------|\n| Display Large | 57px \u002F 400 | 57px \u002F 700 |\n| Display Medium | 45px \u002F 400 | 45px \u002F 700 |\n| Display Small | 36px \u002F 400 | 36px \u002F 700 |\n| Headline Large | 32px \u002F 400 | 32px \u002F 700 |\n| Headline Medium | 28px \u002F 400 | 28px \u002F 700 |\n| Headline Small | 24px \u002F 400 | 24px \u002F 600 |\n| Title Large | 22px \u002F 400 | 22px \u002F 700 |\n| Title Medium | 16px \u002F 500 | 16px \u002F 700 |\n| Title Small | 14px \u002F 500 | 14px \u002F 700 |\n| Body Large | 16px \u002F 400 | 16px \u002F 700 |\n| Body Medium | 14px \u002F 400 | 14px \u002F 700 |\n| Body Small | 12px \u002F 400 | 12px \u002F 700 |\n| Label Large | 14px \u002F 500 | 14px \u002F 800 |\n| Label Medium | 12px \u002F 500 | 12px \u002F 800 |\n| Label Small | 11px \u002F 500 | 11px \u002F 800 |\n\n**When to use emphasized styles**:\n- Calls to action and primary buttons with strong visual weight\n- Important headlines or numbers that users should notice immediately\n- Editorial emphasis in content layouts\n- Key data points in dashboards or summaries\n- Onboarding screens and feature highlights\n\n**Pairing baseline and emphasized**:\n- Use emphasized sparingly alongside baseline styles to create rhythm and momentum\n- Never use all emphasized styles on a single screen — the contrast between baseline and emphasized is what creates hierarchy\n\n### Medium Contrast (M3 Expressive Default)\n\nM3 Expressive introduces \"medium contrast\" as the default typography approach:\n- Balances legibility with visual flair\n- More accessible than low-contrast approaches while more expressive than high-contrast\n- Ensures expressive type choices remain highly accessible across device types\n- Achieved through careful weight\u002Fsize pairing in the baseline vs emphasized type scale\n\n## Font Recommendations\n\n### System Fonts\n\n**Roboto** (Default for M3):\n- Versatile, highly readable\n- Available in variable font format\n- Weights: 100-900\n- Use for both display and body text\n\n**Roboto Flex** (Variable font):\n- Supports width and weight axes\n- Ideal for M3 Expressive\n- Enables dynamic adjustments\n\n### Brand Fonts\n\nConsider these characteristics when choosing brand fonts:\n\n**Display Fonts**:\n- Distinctive personality\n- High readability at large sizes\n- Consider: Poppins, Montserrat, Work Sans, DM Sans\n\n**Body Fonts**:\n- Excellent readability at small sizes\n- Good for long-form content\n- Consider: Inter, Open Sans, Source Sans Pro, Noto Sans\n\n### Variable Font Implementation\n\n```css\n@font-face {\n  font-family: 'Roboto Flex';\n  src: url('RobotoFlex-Variable.woff2') format('woff2-variations');\n  font-weight: 100 900;\n  font-stretch: 75% 125%;\n}\n\n.dynamic-text {\n  font-family: 'Roboto Flex', sans-serif;\n  font-variation-settings: \n    'wght' 400,\n    'wdth' 100;\n}\n```\n\n## Implementation Guidelines\n\n### CSS Type Tokens\n\nDefine typography tokens using CSS custom properties. M3 Expressive adds emphasized variants alongside baseline:\n\n```css\n:root {\n  \u002F* Font families *\u002F\n  --md-sys-typescale-font-family-brand: 'Roboto', sans-serif;\n  --md-sys-typescale-font-family-plain: 'Roboto', sans-serif;\n  \n  \u002F* Display Large — Baseline *\u002F\n  --md-sys-typescale-display-large-font: var(--md-sys-typescale-font-family-brand);\n  --md-sys-typescale-display-large-size: 3.562rem;\n  --md-sys-typescale-display-large-line-height: 4rem;\n  --md-sys-typescale-display-large-weight: 400;\n  --md-sys-typescale-display-large-tracking: -0.25px;\n  \n  \u002F* Display Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-display-large-emphasized-weight: 700;\n  \n  \u002F* Headline Large — Baseline *\u002F\n  --md-sys-typescale-headline-large-font: var(--md-sys-typescale-font-family-brand);\n  --md-sys-typescale-headline-large-size: 2rem;\n  --md-sys-typescale-headline-large-line-height: 2.5rem;\n  --md-sys-typescale-headline-large-weight: 400;\n  --md-sys-typescale-headline-large-tracking: 0;\n  \n  \u002F* Headline Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-headline-large-emphasized-weight: 700;\n  \n  \u002F* Body Large — Baseline *\u002F\n  --md-sys-typescale-body-large-font: var(--md-sys-typescale-font-family-plain);\n  --md-sys-typescale-body-large-size: 1rem;\n  --md-sys-typescale-body-large-line-height: 1.5rem;\n  --md-sys-typescale-body-large-weight: 400;\n  --md-sys-typescale-body-large-tracking: 0.5px;\n  \n  \u002F* Body Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-body-large-emphasized-weight: 700;\n  \n  \u002F* Label Large — Baseline *\u002F\n  --md-sys-typescale-label-large-font: var(--md-sys-typescale-font-family-plain);\n  --md-sys-typescale-label-large-size: 0.875rem;\n  --md-sys-typescale-label-large-line-height: 1.25rem;\n  --md-sys-typescale-label-large-weight: 500;\n  --md-sys-typescale-label-large-tracking: 0.1px;\n  \n  \u002F* Label Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-label-large-emphasized-weight: 800;\n}\n```\n\n### Type Classes\n\nCreate reusable type classes for both baseline and emphasized styles:\n\n```css\n\u002F* Baseline styles *\u002F\n.display-large {\n  font-family: var(--md-sys-typescale-display-large-font);\n  font-size: var(--md-sys-typescale-display-large-size);\n  line-height: var(--md-sys-typescale-display-large-line-height);\n  font-weight: var(--md-sys-typescale-display-large-weight);\n  letter-spacing: var(--md-sys-typescale-display-large-tracking);\n}\n\n.headline-large {\n  font-family: var(--md-sys-typescale-headline-large-font);\n  font-size: var(--md-sys-typescale-headline-large-size);\n  line-height: var(--md-sys-typescale-headline-large-line-height);\n  font-weight: var(--md-sys-typescale-headline-large-weight);\n  letter-spacing: var(--md-sys-typescale-headline-large-tracking);\n}\n\n.body-large {\n  font-family: var(--md-sys-typescale-body-large-font);\n  font-size: var(--md-sys-typescale-body-large-size);\n  line-height: var(--md-sys-typescale-body-large-line-height);\n  font-weight: var(--md-sys-typescale-body-large-weight);\n  letter-spacing: var(--md-sys-typescale-body-large-tracking);\n}\n\n\u002F* Emphasized styles (M3 Expressive) *\u002F\n.display-large-emphasized {\n  font-family: var(--md-sys-typescale-display-large-font);\n  font-size: var(--md-sys-typescale-display-large-size);\n  line-height: var(--md-sys-typescale-display-large-line-height);\n  font-weight: var(--md-sys-typescale-display-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-display-large-tracking);\n}\n\n.headline-large-emphasized {\n  font-family: var(--md-sys-typescale-headline-large-font);\n  font-size: var(--md-sys-typescale-headline-large-size);\n  line-height: var(--md-sys-typescale-headline-large-line-height);\n  font-weight: var(--md-sys-typescale-headline-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-headline-large-tracking);\n}\n\n.body-large-emphasized {\n  font-family: var(--md-sys-typescale-body-large-font);\n  font-size: var(--md-sys-typescale-body-large-size);\n  line-height: var(--md-sys-typescale-body-large-line-height);\n  font-weight: var(--md-sys-typescale-body-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-body-large-tracking);\n}\n\n.label-large-emphasized {\n  font-family: var(--md-sys-typescale-label-large-font);\n  font-size: var(--md-sys-typescale-label-large-size);\n  line-height: var(--md-sys-typescale-label-large-line-height);\n  font-weight: var(--md-sys-typescale-label-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-label-large-tracking);\n}\n```\n\n## Typography Best Practices\n\n### Hierarchy\n\n1. **Use the Scale**: Don't create custom sizes—use the defined scale\n2. **Skip Levels Sparingly**: Can skip one level, but maintain clear hierarchy\n3. **Consistent Application**: Same content type should use same style\n4. **Color for Emphasis**: Use color roles for text (on-surface, on-primary, etc.)\n\n### Readability\n\n1. **Line Length**: 50-75 characters per line for body text\n2. **Line Height**: 1.4-1.6 for body text (already built into scale)\n3. **Contrast**: Minimum 4.5:1 for body text, 3:1 for large text\n4. **Text Color**: Use semantic color tokens (on-surface, on-background)\n\n### Responsive Typography\n\n```css\n\u002F* Mobile-first base sizes *\u002F\n:root {\n  --fluid-display-large: clamp(2.5rem, 5vw + 1rem, 3.562rem);\n  --fluid-headline-large: clamp(1.5rem, 3vw + 0.5rem, 2rem);\n}\n\n.display-large {\n  font-size: var(--fluid-display-large);\n}\n\n\u002F* Or use container queries for component-level responsiveness *\u002F\n@container (min-width: 600px) {\n  .card-title {\n    font-size: var(--md-sys-typescale-title-large-size);\n  }\n}\n```\n\n### Accessibility\n\n1. **Zoom Support**: Use relative units (rem, em) for all sizes\n2. **Clear Hierarchy**: Visual hierarchy should be clear without color\n3. **Focus States**: Ensure text links have visible focus indicators\n4. **Screen Readers**: Use semantic HTML (h1-h6, p, etc.)\n\n### Performance\n\n1. **Font Loading**: Use `font-display: swap` to prevent text blocking\n2. **Subset Fonts**: Load only needed characters and weights\n3. **Variable Fonts**: Use single variable font file instead of multiple weights\n4. **System Fonts**: Consider system font stack for performance\n\n```css\n@font-face {\n  font-family: 'Roboto';\n  src: url('roboto.woff2') format('woff2');\n  font-display: swap;\n  \u002F* Subset to Latin characters *\u002F\n  unicode-range: U+0000-00FF, U+0131, U+0152-0153;\n}\n```\n\n## Advanced Typography\n\n### Expressive Text Effects\n\n**Variable Font Animations**:\n```css\n@keyframes weight-shift {\n  from { font-variation-settings: 'wght' 300; }\n  to { font-variation-settings: 'wght' 700; }\n}\n\n.animated-heading {\n  animation: weight-shift 2s ease-in-out infinite alternate;\n}\n```\n\n**Gradient Text**:\n```css\n.gradient-headline {\n  background: linear-gradient(\n    90deg,\n    var(--md-sys-color-primary),\n    var(--md-sys-color-tertiary)\n  );\n  -webkit-background-clip: text;\n  -webkit-text-fill-color: transparent;\n  background-clip: text;\n}\n```\n\n### Text Truncation\n\n```css\n\u002F* Single line truncation *\u002F\n.truncate {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n\u002F* Multi-line truncation *\u002F\n.truncate-multi {\n  display: -webkit-box;\n  -webkit-line-clamp: 3;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n}\n```\n\n## Common Type Patterns\n\n### Card Title and Body\n```html\n\u003Cdiv class=\"card\">\n  \u003Ch3 class=\"title-large\">Card Title\u003C\u002Fh3>\n  \u003Cp class=\"body-medium\">Card description text goes here.\u003C\u002Fp>\n\u003C\u002Fdiv>\n```\n\n### Page Header with Subheader\n```html\n\u003Cheader>\n  \u003Ch1 class=\"headline-large\">Page Title\u003C\u002Fh1>\n  \u003Cp class=\"body-large\">Supporting description or subtitle\u003C\u002Fp>\n\u003C\u002Fheader>\n```\n\n### Button Text\n```html\n\u003Cbutton class=\"label-large\">Action\u003C\u002Fbutton>\n```\n\n### List Item\n```html\n\u003Cli>\n  \u003Cspan class=\"title-medium\">List Item Title\u003C\u002Fspan>\n  \u003Cspan class=\"body-small\">Supporting text\u003C\u002Fspan>\n\u003C\u002Fli>\n```\n\n## Checklist for Typography Implementation\n\nWhen implementing M3 typography, ensure:\n\n- [ ] All 15 baseline type styles from the scale are defined as CSS tokens\n- [ ] All 15 emphasized type styles are defined (M3 Expressive)\n- [ ] Roboto or appropriate brand font is loaded\n- [ ] Variable fonts are used when available\n- [ ] Font display swap is set to prevent blocking\n- [ ] All text uses semantic color tokens\n- [ ] Proper hierarchy is established (display > headline > title > body)\n- [ ] Emphasized styles are used sparingly for key moments and calls to action\n- [ ] Line height and letter spacing match the specification\n- [ ] Responsive scaling is implemented for different screen sizes\n- [ ] Relative units (rem\u002Fem) are used for all sizes\n- [ ] Text contrast meets WCAG requirements (4.5:1 minimum)\n- [ ] Font weights are used consistently (400 baseline, 500 labels, 700+ emphasized)\n- [ ] Semantic HTML tags match visual hierarchy\n- [ ] Long-form content has appropriate line length (50-75 characters)\n- [ ] All text is readable at default and zoomed sizes\n- [ ] Performance is optimized (font subsetting, loading strategy)\n- [ ] Medium contrast approach is followed for balance of legibility and expression\n\n## Resources\n\n- `examples\u002Ftype-scale.html` — Interactive HTML example showing the complete M3 type scale (display, headline, title, body, label) with correct sizes, weights, and line heights. Open in a browser to preview the hierarchy.\n- M3 typography overview: https:\u002F\u002Fm3.material.io\u002Fstyles\u002Ftypography\u002Foverview\n- Material Design Tokens (typography): https:\u002F\u002Fgithub.com\u002Fmaterial-foundation\u002Fmaterial-tokens\n- Google Fonts: https:\u002F\u002Ffonts.google.com\u002F\n","# Material Design 3 Typography\n\n## Overview\n\nThis skill guides the implementation of Material Design 3 (M3) typography — from the baseline Material You type scale through to M3 Expressive's 30-style expanded type system — to create clear, readable, and emotionally engaging text hierarchies.\n\n**Keywords**: Material Design 3, M3, typography, type scale, variable fonts, text hierarchy, readability, font weights, line height, letter spacing, emphasized type, medium contrast, Material You\n\n## Core Principles\n\n### Typography Philosophy\n\nM3 typography focuses on:\n\n1. **Variable Fonts**: Support dynamic weight and width adjustments for expressive text\n2. **Clear Hierarchy**: Distinct type scales that guide users through content\n3. **Readability**: Optimized for legibility across devices and contexts\n4. **Flexibility**: Adaptable to different content needs and screen sizes\n5. **Expression**: Typography that conveys personality and emotion\n6. **Emphasis**: Baseline and emphasized variants for every type role (M3 Expressive)\n\n## Type Scale\n\n### Baseline Type Scale (15 styles)\n\nM3 defines a comprehensive type scale with specific roles for different UI elements. These 15 baseline styles form the foundation of all M3 typography:\n\n#### Display Styles (Large, attention-grabbing text)\n\n**Display Large**:\n- Font: Roboto (or brand font)\n- Size: 57px \u002F 3.562rem\n- Line Height: 64px \u002F 4rem\n- Weight: 400 (Regular)\n- Letter Spacing: -0.25px\n- Use: Largest headlines, hero text\n\n**Display Medium**:\n- Size: 45px \u002F 2.812rem\n- Line Height: 52px \u002F 3.25rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Large section headers\n\n**Display Small**:\n- Size: 36px \u002F 2.25rem\n- Line Height: 44px \u002F 2.75rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Smaller headers, card titles\n\n#### Headline Styles (Structural headings)\n\n**Headline Large**:\n- Size: 32px \u002F 2rem\n- Line Height: 40px \u002F 2.5rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Page titles, major sections\n\n**Headline Medium**:\n- Size: 28px \u002F 1.75rem\n- Line Height: 36px \u002F 2.25rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Subsection headers\n\n**Headline Small**:\n- Size: 24px \u002F 1.5rem\n- Line Height: 32px \u002F 2rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Component headers, dialog titles\n\n#### Title Styles (Emphasis within components)\n\n**Title Large**:\n- Size: 22px \u002F 1.375rem\n- Line Height: 28px \u002F 1.75rem\n- Weight: 400\n- Letter Spacing: 0\n- Use: Large list items, emphasized text\n\n**Title Medium**:\n- Size: 16px \u002F 1rem\n- Line Height: 24px \u002F 1.5rem\n- Weight: 500 (Medium)\n- Letter Spacing: 0.15px\n- Use: Card titles, list headers\n\n**Title Small**:\n- Size: 14px \u002F 0.875rem\n- Line Height: 20px \u002F 1.25rem\n- Weight: 500\n- Letter Spacing: 0.1px\n- Use: Compact card titles, tabs\n\n#### Body Styles (Main content)\n\n**Body Large**:\n- Size: 16px \u002F 1rem\n- Line Height: 24px \u002F 1.5rem\n- Weight: 400\n- Letter Spacing: 0.5px\n- Use: Long-form content, articles\n\n**Body Medium**:\n- Size: 14px \u002F 0.875rem\n- Line Height: 20px \u002F 1.25rem\n- Weight: 400\n- Letter Spacing: 0.25px\n- Use: Default body text\n\n**Body Small**:\n- Size: 12px \u002F 0.75rem\n- Line Height: 16px \u002F 1rem\n- Weight: 400\n- Letter Spacing: 0.4px\n- Use: Captions, helper text\n\n#### Label Styles (UI elements)\n\n**Label Large**:\n- Size: 14px \u002F 0.875rem\n- Line Height: 20px \u002F 1.25rem\n- Weight: 500\n- Letter Spacing: 0.1px\n- Use: Button text, navigation items\n\n**Label Medium**:\n- Size: 12px \u002F 0.75rem\n- Line Height: 16px \u002F 1rem\n- Weight: 500\n- Letter Spacing: 0.5px\n- Use: Small buttons, chips\n\n**Label Small**:\n- Size: 11px \u002F 0.687rem\n- Line Height: 16px \u002F 1rem\n- Weight: 500\n- Letter Spacing: 0.5px\n- Use: Tiny labels, timestamps\n\n### Emphasized Type Scale (15 additional styles — M3 Expressive)\n\nM3 Expressive adds 15 emphasized variants — one for each baseline style. Emphasized styles are bolder, larger, or more dynamic for highlighting key moments, calls to action, and editorial emphasis:\n\n| Role | Baseline | Emphasized |\n|------|----------|------------|\n| Display Large | 57px \u002F 400 | 57px \u002F 700 |\n| Display Medium | 45px \u002F 400 | 45px \u002F 700 |\n| Display Small | 36px \u002F 400 | 36px \u002F 700 |\n| Headline Large | 32px \u002F 400 | 32px \u002F 700 |\n| Headline Medium | 28px \u002F 400 | 28px \u002F 700 |\n| Headline Small | 24px \u002F 400 | 24px \u002F 600 |\n| Title Large | 22px \u002F 400 | 22px \u002F 700 |\n| Title Medium | 16px \u002F 500 | 16px \u002F 700 |\n| Title Small | 14px \u002F 500 | 14px \u002F 700 |\n| Body Large | 16px \u002F 400 | 16px \u002F 700 |\n| Body Medium | 14px \u002F 400 | 14px \u002F 700 |\n| Body Small | 12px \u002F 400 | 12px \u002F 700 |\n| Label Large | 14px \u002F 500 | 14px \u002F 800 |\n| Label Medium | 12px \u002F 500 | 12px \u002F 800 |\n| Label Small | 11px \u002F 500 | 11px \u002F 800 |\n\n**When to use emphasized styles**:\n- Calls to action and primary buttons with strong visual weight\n- Important headlines or numbers that users should notice immediately\n- Editorial emphasis in content layouts\n- Key data points in dashboards or summaries\n- Onboarding screens and feature highlights\n\n**Pairing baseline and emphasized**:\n- Use emphasized sparingly alongside baseline styles to create rhythm and momentum\n- Never use all emphasized styles on a single screen — the contrast between baseline and emphasized is what creates hierarchy\n\n### Medium Contrast (M3 Expressive Default)\n\nM3 Expressive introduces \"medium contrast\" as the default typography approach:\n- Balances legibility with visual flair\n- More accessible than low-contrast approaches while more expressive than high-contrast\n- Ensures expressive type choices remain highly accessible across device types\n- Achieved through careful weight\u002Fsize pairing in the baseline vs emphasized type scale\n\n## Font Recommendations\n\n### System Fonts\n\n**Roboto** (Default for M3):\n- Versatile, highly readable\n- Available in variable font format\n- Weights: 100-900\n- Use for both display and body text\n\n**Roboto Flex** (Variable font):\n- Supports width and weight axes\n- Ideal for M3 Expressive\n- Enables dynamic adjustments\n\n### Brand Fonts\n\nConsider these characteristics when choosing brand fonts:\n\n**Display Fonts**:\n- Distinctive personality\n- High readability at large sizes\n- Consider: Poppins, Montserrat, Work Sans, DM Sans\n\n**Body Fonts**:\n- Excellent readability at small sizes\n- Good for long-form content\n- Consider: Inter, Open Sans, Source Sans Pro, Noto Sans\n\n### Variable Font Implementation\n\n```css\n@font-face {\n  font-family: 'Roboto Flex';\n  src: url('RobotoFlex-Variable.woff2') format('woff2-variations');\n  font-weight: 100 900;\n  font-stretch: 75% 125%;\n}\n\n.dynamic-text {\n  font-family: 'Roboto Flex', sans-serif;\n  font-variation-settings: \n    'wght' 400,\n    'wdth' 100;\n}\n```\n\n## Implementation Guidelines\n\n### CSS Type Tokens\n\nDefine typography tokens using CSS custom properties. M3 Expressive adds emphasized variants alongside baseline:\n\n```css\n:root {\n  \u002F* Font families *\u002F\n  --md-sys-typescale-font-family-brand: 'Roboto', sans-serif;\n  --md-sys-typescale-font-family-plain: 'Roboto', sans-serif;\n  \n  \u002F* Display Large — Baseline *\u002F\n  --md-sys-typescale-display-large-font: var(--md-sys-typescale-font-family-brand);\n  --md-sys-typescale-display-large-size: 3.562rem;\n  --md-sys-typescale-display-large-line-height: 4rem;\n  --md-sys-typescale-display-large-weight: 400;\n  --md-sys-typescale-display-large-tracking: -0.25px;\n  \n  \u002F* Display Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-display-large-emphasized-weight: 700;\n  \n  \u002F* Headline Large — Baseline *\u002F\n  --md-sys-typescale-headline-large-font: var(--md-sys-typescale-font-family-brand);\n  --md-sys-typescale-headline-large-size: 2rem;\n  --md-sys-typescale-headline-large-line-height: 2.5rem;\n  --md-sys-typescale-headline-large-weight: 400;\n  --md-sys-typescale-headline-large-tracking: 0;\n  \n  \u002F* Headline Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-headline-large-emphasized-weight: 700;\n  \n  \u002F* Body Large — Baseline *\u002F\n  --md-sys-typescale-body-large-font: var(--md-sys-typescale-font-family-plain);\n  --md-sys-typescale-body-large-size: 1rem;\n  --md-sys-typescale-body-large-line-height: 1.5rem;\n  --md-sys-typescale-body-large-weight: 400;\n  --md-sys-typescale-body-large-tracking: 0.5px;\n  \n  \u002F* Body Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-body-large-emphasized-weight: 700;\n  \n  \u002F* Label Large — Baseline *\u002F\n  --md-sys-typescale-label-large-font: var(--md-sys-typescale-font-family-plain);\n  --md-sys-typescale-label-large-size: 0.875rem;\n  --md-sys-typescale-label-large-line-height: 1.25rem;\n  --md-sys-typescale-label-large-weight: 500;\n  --md-sys-typescale-label-large-tracking: 0.1px;\n  \n  \u002F* Label Large — Emphasized (M3 Expressive) *\u002F\n  --md-sys-typescale-label-large-emphasized-weight: 800;\n}\n```\n\n### Type Classes\n\nCreate reusable type classes for both baseline and emphasized styles:\n\n```css\n\u002F* Baseline styles *\u002F\n.display-large {\n  font-family: var(--md-sys-typescale-display-large-font);\n  font-size: var(--md-sys-typescale-display-large-size);\n  line-height: var(--md-sys-typescale-display-large-line-height);\n  font-weight: var(--md-sys-typescale-display-large-weight);\n  letter-spacing: var(--md-sys-typescale-display-large-tracking);\n}\n\n.headline-large {\n  font-family: var(--md-sys-typescale-headline-large-font);\n  font-size: var(--md-sys-typescale-headline-large-size);\n  line-height: var(--md-sys-typescale-headline-large-line-height);\n  font-weight: var(--md-sys-typescale-headline-large-weight);\n  letter-spacing: var(--md-sys-typescale-headline-large-tracking);\n}\n\n.body-large {\n  font-family: var(--md-sys-typescale-body-large-font);\n  font-size: var(--md-sys-typescale-body-large-size);\n  line-height: var(--md-sys-typescale-body-large-line-height);\n  font-weight: var(--md-sys-typescale-body-large-weight);\n  letter-spacing: var(--md-sys-typescale-body-large-tracking);\n}\n\n\u002F* Emphasized styles (M3 Expressive) *\u002F\n.display-large-emphasized {\n  font-family: var(--md-sys-typescale-display-large-font);\n  font-size: var(--md-sys-typescale-display-large-size);\n  line-height: var(--md-sys-typescale-display-large-line-height);\n  font-weight: var(--md-sys-typescale-display-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-display-large-tracking);\n}\n\n.headline-large-emphasized {\n  font-family: var(--md-sys-typescale-headline-large-font);\n  font-size: var(--md-sys-typescale-headline-large-size);\n  line-height: var(--md-sys-typescale-headline-large-line-height);\n  font-weight: var(--md-sys-typescale-headline-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-headline-large-tracking);\n}\n\n.body-large-emphasized {\n  font-family: var(--md-sys-typescale-body-large-font);\n  font-size: var(--md-sys-typescale-body-large-size);\n  line-height: var(--md-sys-typescale-body-large-line-height);\n  font-weight: var(--md-sys-typescale-body-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-body-large-tracking);\n}\n\n.label-large-emphasized {\n  font-family: var(--md-sys-typescale-label-large-font);\n  font-size: var(--md-sys-typescale-label-large-size);\n  line-height: var(--md-sys-typescale-label-large-line-height);\n  font-weight: var(--md-sys-typescale-label-large-emphasized-weight);\n  letter-spacing: var(--md-sys-typescale-label-large-tracking);\n}\n```\n\n## Typography Best Practices\n\n### Hierarchy\n\n1. **Use the Scale**: Don't create custom sizes—use the defined scale\n2. **Skip Levels Sparingly**: Can skip one level, but maintain clear hierarchy\n3. **Consistent Application**: Same content type should use same style\n4. **Color for Emphasis**: Use color roles for text (on-surface, on-primary, etc.)\n\n### Readability\n\n1. **Line Length**: 50-75 characters per line for body text\n2. **Line Height**: 1.4-1.6 for body text (already built into scale)\n3. **Contrast**: Minimum 4.5:1 for body text, 3:1 for large text\n4. **Text Color**: Use semantic color tokens (on-surface, on-background)\n\n### Responsive Typography\n\n```css\n\u002F* Mobile-first base sizes *\u002F\n:root {\n  --fluid-display-large: clamp(2.5rem, 5vw + 1rem, 3.562rem);\n  --fluid-headline-large: clamp(1.5rem, 3vw + 0.5rem, 2rem);\n}\n\n.display-large {\n  font-size: var(--fluid-display-large);\n}\n\n\u002F* Or use container queries for component-level responsiveness *\u002F\n@container (min-width: 600px) {\n  .card-title {\n    font-size: var(--md-sys-typescale-title-large-size);\n  }\n}\n```\n\n### Accessibility\n\n1. **Zoom Support**: Use relative units (rem, em) for all sizes\n2. **Clear Hierarchy**: Visual hierarchy should be clear without color\n3. **Focus States**: Ensure text links have visible focus indicators\n4. **Screen Readers**: Use semantic HTML (h1-h6, p, etc.)\n\n### Performance\n\n1. **Font Loading**: Use `font-display: swap` to prevent text blocking\n2. **Subset Fonts**: Load only needed characters and weights\n3. **Variable Fonts**: Use single variable font file instead of multiple weights\n4. **System Fonts**: Consider system font stack for performance\n\n```css\n@font-face {\n  font-family: 'Roboto';\n  src: url('roboto.woff2') format('woff2');\n  font-display: swap;\n  \u002F* Subset to Latin characters *\u002F\n  unicode-range: U+0000-00FF, U+0131, U+0152-0153;\n}\n```\n\n## Advanced Typography\n\n### Expressive Text Effects\n\n**Variable Font Animations**:\n```css\n@keyframes weight-shift {\n  from { font-variation-settings: 'wght' 300; }\n  to { font-variation-settings: 'wght' 700; }\n}\n\n.animated-heading {\n  animation: weight-shift 2s ease-in-out infinite alternate;\n}\n```\n\n**Gradient Text**:\n```css\n.gradient-headline {\n  background: linear-gradient(\n    90deg,\n    var(--md-sys-color-primary),\n    var(--md-sys-color-tertiary)\n  );\n  -webkit-background-clip: text;\n  -webkit-text-fill-color: transparent;\n  background-clip: text;\n}\n```\n\n### Text Truncation\n\n```css\n\u002F* Single line truncation *\u002F\n.truncate {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n\u002F* Multi-line truncation *\u002F\n.truncate-multi {\n  display: -webkit-box;\n  -webkit-line-clamp: 3;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n}\n```\n\n## Common Type Patterns\n\n### Card Title and Body\n```html\n\u003Cdiv class=\"card\">\n  \u003Ch3 class=\"title-large\">Card Title\u003C\u002Fh3>\n  \u003Cp class=\"body-medium\">Card description text goes here.\u003C\u002Fp>\n\u003C\u002Fdiv>\n```\n\n### Page Header with Subheader\n```html\n\u003Cheader>\n  \u003Ch1 class=\"headline-large\">Page Title\u003C\u002Fh1>\n  \u003Cp class=\"body-large\">Supporting description or subtitle\u003C\u002Fp>\n\u003C\u002Fheader>\n```\n\n### Button Text\n```html\n\u003Cbutton class=\"label-large\">Action\u003C\u002Fbutton>\n```\n\n### List Item\n```html\n\u003Cli>\n  \u003Cspan class=\"title-medium\">List Item Title\u003C\u002Fspan>\n  \u003Cspan class=\"body-small\">Supporting text\u003C\u002Fspan>\n\u003C\u002Fli>\n```\n\n## Checklist for Typography Implementation\n\nWhen implementing M3 typography, ensure:\n\n- [ ] All 15 baseline type styles from the scale are defined as CSS tokens\n- [ ] All 15 emphasized type styles are defined (M3 Expressive)\n- [ ] Roboto or appropriate brand font is loaded\n- [ ] Variable fonts are used when available\n- [ ] Font display swap is set to prevent blocking\n- [ ] All text uses semantic color tokens\n- [ ] Proper hierarchy is established (display > headline > title > body)\n- [ ] Emphasized styles are used sparingly for key moments and calls to action\n- [ ] Line height and letter spacing match the specification\n- [ ] Responsive scaling is implemented for different screen sizes\n- [ ] Relative units (rem\u002Fem) are used for all sizes\n- [ ] Text contrast meets WCAG requirements (4.5:1 minimum)\n- [ ] Font weights are used consistently (400 baseline, 500 labels, 700+ emphasized)\n- [ ] Semantic HTML tags match visual hierarchy\n- [ ] Long-form content has appropriate line length (50-75 characters)\n- [ ] All text is readable at default and zoomed sizes\n- [ ] Performance is optimized (font subsetting, loading strategy)\n- [ ] Medium contrast approach is followed for balance of legibility and expression\n\n## Resources\n\n- `examples\u002Ftype-scale.html` — Interactive HTML example showing the complete M3 type scale (display, headline, title, body, label) with correct sizes, weights, and line heights. Open in a browser to preview the hierarchy.\n- M3 typography overview: https:\u002F\u002Fm3.material.io\u002Fstyles\u002Ftypography\u002Foverview\n- Material Design Tokens (typography): https:\u002F\u002Fgithub.com\u002Fmaterial-foundation\u002Fmaterial-tokens\n- Google Fonts: https:\u002F\u002Ffonts.google.com\u002F\n",{"name":5,"license":14,"description":7},"master","ee4668daab05d977b529036c0b1711dc09f997e0",".claude\u002Fskills\u002Fmaterial-design-3-typography","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5","https:\u002F\u002Fgithub.com\u002Fpohlai88","2026-09-05 22:56:19",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add pohlai88\u002Fafenda-xforge-v5 --skill material-design-3-typography",{"tool":35,"command":36},"bunx","bunx skills add pohlai88\u002Fafenda-xforge-v5 --skill material-design-3-typography",{"tool":38,"command":39},"pnpm","pnpm dlx skills add pohlai88\u002Fafenda-xforge-v5 --skill material-design-3-typography","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fmaterial-design-3-typography\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"examples\u002Ftype-scale.html","REFERENCE","参考文档",8994,"https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fmaterial-design-3-typography\u002Fexamples\u002Ftype-scale.html",[50,58,65,72,79,86],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7C4FZM0ZBB1P5GV1EZJJCCT","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","MIT","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7C4F67V83B35BDPW73AQNWR","turborepo","Turborepo monorepo build system and orchestration. Covers task pipelines, dependsOn syntax, caching configuration, remote cache, filtering, CI optimization, environment variables, workspace management, watch mode, package boundaries, and code generation.\n\nUse when configuring tasks, creating packages, setting up monorepo, sharing code between apps, running changed packages, debugging cache, optimizing CI, resolving workspace dependencies, enforcing package boundaries, or generating code.","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fturborepo\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7C4ET5ETKW3FFB4SFFPNQWG","tailwind","Tailwind CSS v4 patterns and design systems. Use when configuring Tailwind themes, building components, implementing dark mode, using container queries, migrating from v3, integrating shadcn\u002Fui, or fixing build errors. Use for tailwind, css, styling, theme, design-tokens.","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftailwind\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":54,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7C4DESY6RA5XWDNVV155THK","pnpm-workspace","pnpm workspace monorepo management with filtering, catalogs, and shared configs. Use when setting up monorepos, managing workspace dependencies, filtering package commands, or sharing configuration across packages.","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fpnpm-workspace\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7C4CZ3VMTYQQJXVJXGY3M0X","material-theme-builder","Generate Material Design 3 color themes programmatically from a source color using @material\u002Fmaterial-color-utilities, the same engine that powers the Material Theme Builder. Use this when the user asks to generate an M3 color palette, create a custom theme from a brand color, or export M3 tokens to CSS, JSON, or framework configs.","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fmaterial-theme-builder\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7C4CNRR649PD3EAVPWSHEDP","material-design-3-shape","Applies Material Design 3 Expressive shape and containment principles including rounded corners, morphing shapes, and container design. Use this when working on component shapes, borders, containment, or when the user asks to apply Material Design 3 shape guidelines.","https:\u002F\u002Fgithub.com\u002Fpohlai88\u002Fafenda-xforge-v5\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fmaterial-design-3-shape\u002FSKILL.md",[],[]]