Implementing your theme

The following techniques can be used to customize and apply color, typography, and shape. Iconography is provided with five unique sets to choose from.


Color

The color system supports 12 categories of color that can be applied to components, text, icons, and surfaces.

1. Primary 2. Primary Variant 3. Secondary 4. Secondary Variant 5. Background 6. Surface 7. Error 8. On Primary 9. On Secondary 10. On Background 11. On Surface 12. On Error

Theming with color

To use Material Theming with color, start by choosing suitable colors to apply to your UI. Color can be selected in several ways: The Material...

Read More

Primary and secondary colors

Primary and secondary colors are applied sparingly to strategic parts of your UI. They are typically chosen for their ability to represent your brand. Primary...

Read More

Primary and secondary colors are applied sparingly to strategic parts of your UI. They are typically chosen for their ability to represent your brand.

Primary colors map to components and elements, like app bars and buttons. Secondary colors are most often used as accents on components, such as FABS and selection controls.

Finally, color variants can also be used to complement and provide accessible options for your primary and secondary colors.

Surface, background, and error colors

Surface, background, and error colors typically don’t represent brand. In general, they occupy the following areas of the UI: The elements in an app use...

Read More

Surface, background, and error colors typically don’t represent brand.

In general, they occupy the following areas of the UI:

  • Surface colors map to components such as cards, sheets, and menus
  • Background color is found behind scrollable content
  • Error color indicates errors in components, such as text fields

“On” colors

The elements in an app use colors from specific categories in your color palette, such as a primary color. Whenever other screen elements, such as text or icons, appear in front of surfaces using those colors, those elements should use colors specifically designed to appear clearly and legibly against the colors behind them.

This category of colors is called “on” colors, referring to the fact that they color elements that are sometimes placed “on” top of key surfaces that use a primary color, secondary color, surface color, background color, or error color. These are labelled using the original category name (such as primary color) with the prefix “on”.

“On” colors are primarily applied to text, iconography, and strokes. Sometimes, they are also applied to surfaces.

“On” color naming

Category

“On” category

Primary

On Primary

Secondary

On Secondary

Surface

On Surface

Background

On Background

Error

On Error

The colors in the “on” category are applied to text and icons (and sometimes surfaces) that appear in front of areas colored using: a primary color, secondary color, surface color, background color, or error color.


Typography

The type system supports 13 categories that, when combined, form the typescale. This typescale is evident in the variety of text styles and sizes that appear on screen, ranging from body copy to buttons. Type appears across the UI, in places such as in components and on surfaces.

Type attributes are controlled by values that can be customized for the type family, font, case, size, and tracking.

Theming methods

There are multiple ways to choose typography:

Read More

Customize and apply typography

There are multiple ways to choose typography:

  • Generate typescales from your local system’s fonts using the Material Theme Editor, and then apply them across your stickersheet
  • Pick a typeface from Google Fonts that reflects your product

Headings

Headlines 1-6 are the largest sizes in the typescale. They are reserved for short, but impactful, moments of text. They are also used for numerals....

Read More

Headlines 1-6 are the largest sizes in the typescale. They are reserved for short, but impactful, moments of text. They are also used for numerals.

Subtitles are smaller than headlines. They are typically reserved for medium-emphasis text used in shorter text strings.

Body and smaller text

Body text 1-2 is typically used for longform writing. It should be optimized for small text sizes. Caption and overline text are the smallest font...

Read More

Body text 1-2 is typically used for longform writing. It should be optimized for small text sizes.

Caption and overline text are the smallest font sizes. They are used sparingly to annotate imagery or to provide a brief introduction to a headline.

Button text is typically used in text buttons, outlined buttons, and contained buttons.


Shape

The shape system currently supports two types of shapes that can be applied to component corners to suit your brand and app: rounded shapes and cut shapes.

  • Rounded shapes have curved corners
  • Cut shapes have angled corners

These shapes can be applied to corners of a component, to create either a symmetrical (all corners use the same shape) or asymmetrical effect (not every corner uses the same shape). Corners can customize their size and shape type.

1. Rounded (0dp), 2. Rounded (4dp), 3. Rounded (16dp), 4. Rounded (24dp)

Scaled to 500%. The height of the shapes in images 1-3 is 36dp. The height of the shape in image 4 is 64dp.

1. Cut (0dp), 2. Cut (2dp), 3. Cut (8dp), 3. Cut (12dp)

Scaled to 500%. The height of the shape in images 1-3 is 36dp. The height of the shape in image 4 is 64dp.

Theming with shape

Shape categories and overrides

Components are grouped into categories based on their size. Changes made to a category’s values (rather than a specific component) are applied to all components...

Read More

Components are grouped into categories based on their size. Changes made to a category’s values (rather than a specific component) are applied to all components in that category.

Changes made to a specific component’s values override values inherited from that shape’s category, enabling individual components to use different shapes than the category’s values.

Rounded shapes

Components such as cards, menus, snackbars, tooltips, dialogs, and buttons all use 4dp rounded corners as part of the baseline Material theme. The roundest components...

Read More

Components such as cards, menus, snackbars, tooltips, dialogs, and buttons all use 4dp rounded corners as part of the baseline Material theme.

1. Zoomed at 2000%, 2. Zoomed at 400%

The roundest components have a baseline radii of 50%, such as pill-shape chips and circular floating action buttons.

1. Zoomed at 2000%, 2. Zoomed at 400%

1. Zoomed at 1200%, 2. Zoomed at 400%

Square shapes

Components with square shapes have 0dp rounded corners in the baseline Material theme, such as full-screen bottom sheets with square, or 90-degree angle, corners. Cut...

Read More

Components with square shapes have 0dp rounded corners in the baseline Material theme, such as full-screen bottom sheets with square, or 90-degree angle, corners.

Cut 0dp corners and rounded 0dp corners are the same square shape and can be used interchangeably.

1. Zoomed at 2000%, 2. Zoomed at 400%

Cut shapes

Component corners can be straight cut shapes which are always at a 45-degree angle. These corners can be different lengths, measured from the 0dp rounded...

Read More

Component corners can be straight cut shapes which are always at a 45-degree angle. These corners can be different lengths, measured from the 0dp rounded corner, going along the outline of the shape.

1. Zoomed at 2000%, 2. Zoomed at 400%

For example, larger surfaces like cards can have larger cuts, while buttons can have smaller cuts. Determine the best size for each component by considering your brand, component size, and amount of legible area required.


1. Large cut zoomed at 2000%, 2. Small cut zoomed at 2000%



Icons

1. Filled, 2. Sharp, 3. Rounded, 4. Outlined, 5. Two-Tone

In addition to the original filled Material Design Icons, four additional icon themes are available. Each icon set should be used consistently across an app to maintain visual consistency, without mixing multiple icon sets in a single UI.

Theming with icons

Select an icon set from five different themes:

Read More

Select an icon set from five different themes:

  • Filled icons
  • Sharp icons
  • Rounded icons
  • Outlined icons
  • Two-tone icons

Icon types

The filled icon set is the original set of Material icons. The sharp icon set has eliminated the corner radius from the filled icons. The...

Read More

Filled icons

The filled icon set is the original set of Material icons.

1. Grid structure, 2. Filled set samples

Sharp icons

The sharp icon set has eliminated the corner radius from the filled icons.

1. Grid structure, 2. Sharp set samples

Rounded icons

The rounded icon set shares the same 2dp radii with the filled set for its exterior corners. There is an additional 1dp radii for strokes, the interior corners, and counter area.

1. Grid structure, 2. Rounded set samples

Outlined icons

The outlined icon set eliminates a majority of fills, converting most icons to 2dp strokes, reducing their visual weight. These can also be used to represent state, such as combining them with filled icons to show a selected state.

1. Grid structure, 2. Outlined set samples

Two-tone icons

The two-tone icon set uses the same color at varying opacities for the stroke and fill.

1. Grid structure, 2. Two-Tone set samples