material-design-3-color

Applies Material Design 3 dynamic color tokens and theming to user interfaces.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve? Designing accessible, consistent color systems for light and dark themes is error-prone when developers hard-code hex values and skip contrast validation. This Skill provides the complete Material Design 3 (M3) Expressive color framework—tonal palettes, 26+ color roles, fixed accent colors, and contrast levels—so interfaces meet WCAG requirements and support dynamic theming. ## Core Features & Use Cases - Complete M3 Color Token System: Implements all five tonal palettes (Primary, Secondary, Tertiary, Neutral, Neutral Variant) mapped to 26+ semantic color roles as CSS custom properties for light and dark themes. - Accessibility-First Theming: Standardizes three contrast levels (standard, medium, high) and enforces WCAG contrast ratios with proper "On" color pairings. - Ready-to-Use Assets: Ships a tokens.css file based on the orange baseline palette (#FF9800) that can be copied directly into a project and customized. - Use Case: When building a Next.js app with a design system, use this Skill to generate the full M3 token set, wire up dark mode via data-theme="dark", and apply surface container hierarchy to cards, dialogs, and snackbars. ## Quick Start Apply Material Design 3 color tokens to my app's stylesheet using the included tokens.css and set up light and dark theme support.

Frequently Asked Questions about material-design-3-color

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

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

Define M3 color roles as CSS custom properties like --md-sys-color-primary on :root for light theme and under [data-theme="dark"] for dark mode. The included tokens.css file provides a complete ready-to-use token set based on the orange baseline palette.

What are Material Design 3 fixed accent colors?

Fixed accent colors are M3 Expressive tokens (primary-fixed, secondary-fixed, tertiary-fixed) that keep identical values across light and dark themes. Use them for brand elements like logos or banners that must not change appearance between themes.

Does Material Design 3 support dark mode theming?

Yes, M3 defines parallel token sets for light and dark themes, toggled via a data-theme attribute or prefers-color-scheme media query. Dark themes use lower tones (10-20) for surfaces and higher tones (80-90) for emphasis colors.

What contrast ratio does Material Design 3 require for accessibility?

M3 requires a minimum 4.5:1 contrast for body text and 3:1 for large text and interactive elements, following WCAG AA. M3 Expressive also standardizes three tokenized contrast levels: standard, medium, and high.

How do I generate a dynamic color scheme from a source color?

Extract the dominant hue from the source color, generate five tonal palettes using the HCT color space, then map tones to the 26+ semantic color roles. Tools like Material Theme Builder or the material-color-utilities library automate this process.