- CSS variables included by
mat.theme()prefixed with--mat-sys - Utility classes included by
mat.system-classes()for applying styles directly in templates
By using system tokens, your application will automatically support both light and dark mode using the
color-scheme CSS property.Colors
Material Design uses color to create accessible, personal color schemes that communicate your product’s hierarchy, state, and brand.Primary Colors
Primary backgrounds are useful for key components with greater importance:Always use
on-primary text color with primary backgrounds to ensure good contrast and accessibility.Secondary Colors
Secondary backgrounds are useful for less prominent components:Error Colors
Error backgrounds indicate error states or important notifications:Surface Colors
Surfaces provide backgrounds for components with varying elevation levels:Surface Hierarchy
Surface Hierarchy
surface-container-lowest- Least emphasissurface-container-low- Less emphasissurface-container- Default surfacesurface-container-high- More emphasissurface-container-highest- Most emphasis
Typography
Material Design provides five categories of font types with three sizes each:Body
Default text content
Display
Large, impactful text
Headline
Page and section titles
Label
Buttons and UI labels
Title
Card and component titles
Body Typography
Display Typography
Display typefaces are useful for short, high-impact text:Label Typography
Labels are useful for buttons, chips, and menu items:Shape
Material Design uses border radius to help direct attention and communicate state:- Extra Small
- Small
- Medium
- Large
- Full
Elevation
Material Design uses borders and shadows to create depth and hierarchy.Borders
Shadows
Practical Examples
Using CSS Variables
Using Utility Classes
Material Design 2 Support
Available System Tokens
Color Tokens
Color Tokens
Typography Tokens
Typography Tokens
Each category has: font, line-height, size, tracking, and weight
- body-small, body-medium, body-large
- display-small, display-medium, display-large
- headline-small, headline-medium, headline-large
- label-small, label-medium, label-large
- title-small, title-medium, title-large
Shape Tokens
Shape Tokens
Learn More
Material Design Color
Official Material Design 3 color guidance
Typography
Material Design typography system
Shape
Corner radius scale documentation
Elevation
Elevation and shadows guide