Text color
(theme_color
)
MDC Web includes a theming system designed to make it easy to change your application's colors. It provides multiple options for implementing themes, allowing for maximum flexibility.
Primary (mdc-theme--primary)
On primary (mdc-theme--on-primary)
Secondary (mdc-theme--secondary)
On secondary (mdc-theme--on-secondary)
Error (mdc-theme--error)
On error (mdc-theme--on-error)
On surface. (mdc-theme--on-surface)
Primary on background (mdc-theme--text-primary-on-background)
Secondary on background (mdc-theme--text-secondary-on-background)
Hint on background (mdc-theme--text-hint-on-background)
Disabled on background (mdc-theme--text-disabled-on-background)
Primary on light (mdc-theme--text-primary-on-light)
Secondary on light (mdc-theme--text-secondary-on-light)
Hint on light (mdc-theme--text-hint-on-light)
Disabled on light (mdc-theme--text-disabled-on-light)
Primary on dark (mdc-theme--text-primary-on-dark)
Secondary on dark (mdc-theme--text-secondary-on-dark)
Hint on dark (mdc-theme--text-hint-on-dark)
Disabled on dark (mdc-theme--text-disabled-on-dark)
Background color
(theme_bg_color
)
MDC Web includes a theming system designed to make it easy to change your application's colors. It provides multiple options for implementing themes, allowing for maximum flexibility.
Primary (mdc-theme--primary-bg)
Secondary (mdc-theme--secondary-bg)
Surface (mdc-theme--surface)
Background (mdc-theme--background)
Typography
(typography
)
Material Design's text sizes and styles were developed to balance content density and reading comfort under typical usage conditions.
Headline 1. (mdc-typography--headline1)
Headline 2 (mdc-typography--headline2)
Headline 3 (mdc-typography--headline3)
Headline 4 (mdc-typography--headline4)
Headline 5 (mdc-typography--headline5)
Headline 6 (mdc-typography--headline6)
Subtitle 1 (mdc-typography--subtitle1)
Subtitle 2 (mdc-typography--subtitle2)
Body 1 (mdc-typography--body1)
Body 2 (mdc-typography--body2)
Caption (mdc-typography--caption)
Overline (mdc-typography--overline)
Elevation
(elevation
)
For practical reason, only fibonacci values are proposed here.
Elevation 0 (mdc-elevation--z0)
Elevation 1 (mdc-elevation--z1)
Elevation 2 (mdc-elevation--z2)
Elevation 3 (mdc-elevation--z3)
Elevation 5 (mdc-elevation--z5)
Elevation 8 (mdc-elevation--z8)
Elevation 13 (mdc-elevation--z13)
Elevation 21 (mdc-elevation--z21)