The three-tier token architecture that powers Material Design 3. Understand how reference, system, and component tokens work together.
md.ref.*md.sys.*md.comp.*Design tokens are the single source of truth for design decisions. They bridge the gap between design and development, ensuring consistency and enabling powerful theming capabilities.
Material Design 3 uses a three-tier token system that separates raw values from semantic meaning from component-specific usage. This hierarchy enables theming, consistency, and maintainability across design systems.
Tokens follow the pattern: md.<tier>.<category>.<property>. For example: md.sys.color.primary (system color token) or md.comp.filled-button.container.color (component token referencing a system token).Semantic tokens that map meaning to reference values. These change between light/dark mode and different themes. System tokens describe what a value is used for, not what it literally is.
md.sys.color.primarymd.ref.palette.primary40The primary brand color for key actions and emphasis
Maps to: md.ref.palette.primary40
md.sys.color.on-primarymd.ref.palette.primary100Text/icons displayed on primary color
Maps to: md.ref.palette.primary100
md.sys.color.surfacemd.ref.palette.neutral99Background color for surfaces and containers
Maps to: md.ref.palette.neutral99
md.sys.color.on-surfacemd.ref.palette.neutral10Primary text color on surfaces
Maps to: md.ref.palette.neutral10
md.sys.typescale.label-large14sp/20sp/500Typography style for button labels and navigation
Maps to: Roboto Medium 14/20
md.sys.shape.corner.full9999pxPill-shaped fully rounded corners
Maps to: 9999px
See how a component token resolves through the hierarchy:
md.comp.filled-button.container.colorComponent needs a container color
md.sys.color.primaryResolves to the primary color role
md.ref.palette.primary40 = #6750A4Final resolved value from tonal palette
The filled button container renders with #6750A4
Official Material Design 3 documentation on the design token architecture, naming conventions, and hierarchy.
DocsCommunity-maintained repository of Material Design 3 tokens in multiple export formats.
RepoFigma plugin to generate complete M3 color schemes from a seed color and export as design tokens.
ToolWeb-based tool to create and preview custom M3 themes, then export tokens for Android, Web, and Flutter.
ToolM3 tokens can be exported for any platform. Click a format to see an example.