material-design-3-color

Generate Material Design 3 semantic color tokens for light and dark themes.

Updated Nov 24, 2021
One-click install
npx skills add https://github.com/ishiyan/Mbng --skill material-design-3-color-ishiyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: material-design-3-color
Source: https://github.com/ishiyan/Mbng/tree/main/.opencode/skills/material-design-3-color
Command: npx skills add https://github.com/ishiyan/Mbng --skill material-design-3-color-ishiyan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Material Design 3 color system and theming guidance to help UI teams create vibrant, accessible, and brand-consistent color palettes across light and dark themes.

Core Features & Use Cases

  • Dynamic, semantic color tokens for primary, secondary, tertiary, neutral surfaces, and error roles.
  • Fixed accent colors and surface container hierarchy supporting brand consistency and accessibility.
  • Tools and references (tokens.css, color reference assets) to accelerate theme generation and implementation in design systems and apps.

Quick Start

Copy tokens.css into your project and reference the md-sys color tokens to build light and dark themes.

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 generate Material Design 3 color tokens for light and dark themes?

You can generate Material Design 3 color tokens by copying the provided tokens.css file into your project. This file defines semantic color roles for primary, surface, neutral, and error, enabling you to build consistent light and dark themes.

What are semantic color tokens and how do they support WCAG accessibility?

Semantic color tokens are role-based color definitions like primary, surface, and error that map to specific UI elements. They support WCAG accessibility by managing contrast levels and providing a surface container hierarchy for consistent light and dark theming.

How do I apply dynamic theming with fixed accent colors in a design system?

Dynamic theming with fixed accent colors is applied by referencing the md-sys color tokens from the tokens.css file. This approach maintains brand consistency while allowing the system to dynamically switch between light and dark surface container hierarchies.

Can I use this Material Design 3 color system for an existing web project?

Yes, you can use this Material Design 3 color system in an existing web project. It requires no external dependencies; simply copy the tokens.css file into your project and reference the semantic color tokens to manage theming and accessibility.

What is the best way to manage surface container hierarchy for dark mode?

The best way to manage surface container hierarchy for dark mode is by utilizing the predefined neutral surface tokens in the tokens.css file. These tokens establish proper contrast and elevation layers, ensuring accessible and visually distinct UI components.

How do I structure neutral and error color roles for UI theming?

Neutral and error color roles are structured as semantic tokens within the tokens.css file, defining specific shades for surfaces, text, and error states. This structure ensures accessible contrast and clear visual feedback across light and dark themes.