# Material Theming with MDC: Type

DevFeed: [Material Theming with MDC: Type](<https://devfeed.tech/articles/material-theming-with-mdc-type-25990.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/material-theming-with-mdc-type-8c2013430247?source=rss-37290b859aca------2>)

Author: Nick Rout

Published: 2020-08-25T16:03:24Z

Content type: tutorial

Language: en

Sources: [Stories by Nick Rout on Medium](<https://devfeed.tech/sources/stories-by-nick-rout-on-medium.md>)

Topics: [material-components](<https://devfeed.tech/topics/material-components.md>), [Material Design](<https://devfeed.tech/topics/material-design.md>), [Android](<https://devfeed.tech/topics/android.md>), [Library](<https://devfeed.tech/topics/library.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [code](<https://devfeed.tech/tags/code.md>), [components](<https://devfeed.tech/tags/components.md>), [design](<https://devfeed.tech/tags/design.md>), [material-components](<https://devfeed.tech/tags/material-components.md>), [material-design](<https://devfeed.tech/tags/material-design.md>), [material-theming](<https://devfeed.tech/tags/material-theming.md>), [migration-guide](<https://devfeed.tech/tags/migration-guide.md>), [typography](<https://devfeed.tech/tags/typography.md>), [usability](<https://devfeed.tech/tags/usability.md>)

## AI overview

This tutorial explains type theming for Android apps using the Material Components (MDC) library. It describes Material Design's 13 type styles, their baseline properties, how MDC type attributes style widget text, and how to select type styles for different interface elements.

## Source excerpt

Type theming on Android using the MDC library This article is also posted on the Material Design blog. Material Theming is a way to customize Material Components to align with your brand. A Material theme includes color, typography and shape parameters which you can adjust to get near-infinite variations of the components -- all while maintaining their core anatomy and usability. On Android, Material Theming can be implemented using the Material Components (MDC) library, from version 1.1.0 onwards. If you're looking to migrate from the Design Support Library or MDC 1.0.0, take a look at our migration guide. Migrating to Material Components for Android This article will be focusing on type theming. Type attributes Material Design provides 13 type "styles" that are applied to all the text in your app. Each of these have a design term (eg. "Body 1") along with a corresponding type attribute that can be overridden in your app theme (eg. textAppearanceBody1). There are default "baseline" values (text size, letter spacing, capitalization, etc.) for each style. MDC type attributes with baseline styling Material Components use these type attributes to style textual elements of the widgets (those parts that subclass or comprise one or more TextViews). Type attributes used by a button They are applied with eg. android:textAppearance="?attr/textAppearanceBody1" in layouts and widget styles. Take a look at Nick Butcher's "What's your text's appearance?" article for more information on using this and the order of precedence with other styling techniques. What's your text's appearance? In the MDC themes these attributes map to styles, eg. <style name="Theme.MaterialComponents.*" parent="..."> ... <item name="textAppearanceBody1"> @style/TextAppearance.MaterialComponents.Body1 </item> <style /> You might recognize TextAppearance styles from AppCompat or the platform and these are discussed in more detail in the Type resources section below. The corresponding attributes are new to M