Typography
object Typography
Class holding typography definitions as defined by the Wear Material3 typography specification.
Note that, on API 36 and above, typography styles changes slightly to better accommodate layouts being in the system font defined by each device.
Summary
Constants |
|
|---|---|
const Int |
BODY_EXTRA_SMALL = 2BodyExtraSmall is the smallest body. |
const Int |
BODY_LARGE = 3BodyLarge is the largest body. |
const Int |
BODY_MEDIUM = 4BodyMedium is second largest body. |
const Int |
BODY_SMALL = 5BodySmall is third largest body. |
const Int |
DISPLAY_LARGE = 6DisplayLarge is the largest headline. |
const Int |
DISPLAY_MEDIUM = 7DisplayMedium is the second largest headline. |
const Int |
DISPLAY_SMALL = 8DisplaySmall is the smallest headline. |
const Int |
LABEL_LARGE = 9LabelLarge is the largest label. |
const Int |
LABEL_MEDIUM = 10LabelMedium is the medium label. |
const Int |
LABEL_SMALL = 11LabelSmall is the small label. |
const Int |
NUMERAL_EXTRA_LARGE = 12NumeralsExtraLarge is the largest role for digits. |
const Int |
NUMERAL_EXTRA_SMALL = 13NumeralsExtraSmall is the smallest role for digits. |
const Int |
NUMERAL_LARGE = 14NumeralsLarge is the second largest role for digits. |
const Int |
NUMERAL_MEDIUM = 15NumeralsMedium is the third largest role for digits. |
const Int |
NUMERAL_SMALL = 16NumeralsSmall is the fourth largest role for digits. |
const Int |
TITLE_LARGE = 17TitleLarge is the largest title. |
const Int |
TITLE_MEDIUM = 18TitleMedium is the medium title. |
const Int |
TITLE_SMALL = 19TitleSmall is the smallest title. |
Constants
BODY_EXTRA_SMALL
const val BODY_EXTRA_SMALL = 2: Int
BodyExtraSmall is the smallest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.
BODY_LARGE
const val BODY_LARGE = 3: Int
BodyLarge is the largest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.
BODY_MEDIUM
const val BODY_MEDIUM = 4: Int
BodyMedium is second largest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.
BODY_SMALL
const val BODY_SMALL = 5: Int
BodySmall is third largest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.
DISPLAY_LARGE
const val DISPLAY_LARGE = 6: Int
DisplayLarge is the largest headline. Displays are the largest text on the screen, reserved for short, important text.
DISPLAY_MEDIUM
const val DISPLAY_MEDIUM = 7: Int
DisplayMedium is the second largest headline. Displays are the largest text on the screen, reserved for short, important text.
DISPLAY_SMALL
const val DISPLAY_SMALL = 8: Int
DisplaySmall is the smallest headline. Displays are the largest text on the screen, reserved for short, important text.
LABEL_LARGE
const val LABEL_LARGE = 9: Int
LabelLarge is the largest label. They are used for displaying prominent texts like label on title buttons.
LABEL_MEDIUM
const val LABEL_MEDIUM = 10: Int
LabelMedium is the medium label. They are used for displaying texts like primary label on buttons.
LABEL_SMALL
const val LABEL_SMALL = 11: Int
LabelSmall is the small label. They are used for displaying texts like secondary label on buttons, labels on compact buttons.
NUMERAL_EXTRA_LARGE
const val NUMERAL_EXTRA_LARGE = 12: Int
NumeralsExtraLarge is the largest role for digits. Numerals use tabular spacing by default. They highlight and express glanceable numbers that are limited to a two or three characters only, where no localization is required like the charging screen.
NUMERAL_EXTRA_SMALL
const val NUMERAL_EXTRA_SMALL = 13: Int
NumeralsExtraSmall is the smallest role for digits. Numerals use tabular spacing by default. They are for numbers that need to accommodate longer strings of digits, where no localization is required like in-workout metrics.
NUMERAL_LARGE
const val NUMERAL_LARGE = 14: Int
NumeralsLarge is the second largest role for digits. Numerals use tabular spacing by default. They are large sized number strings that are limited to big displays of time, where no localization is required like a timer countdown.
NUMERAL_MEDIUM
const val NUMERAL_MEDIUM = 15: Int
NumeralsMedium is the third largest role for digits. Numerals use tabular spacing by default. They are medium sized numbers that are limited to short strings of digits, where no localization is required like a steps count.
NUMERAL_SMALL
const val NUMERAL_SMALL = 16: Int
NumeralsSmall is the fourth largest role for digits. Numerals use tabular spacing by default. They are for numbers that need emphasis at a smaller scale, where no localization is required like date and time pickers.
TITLE_LARGE
const val TITLE_LARGE = 17: Int
TitleLarge is the largest title. Titles are smaller than Displays. They are typically reserved for medium-emphasis text that is shorter in length.
TITLE_MEDIUM
const val TITLE_MEDIUM = 18: Int
TitleMedium is the medium title. Titles are smaller than Displays. They are typically reserved for medium-emphasis text that is shorter in length.
TITLE_SMALL
const val TITLE_SMALL = 19: Int
TitleSmall is the smallest title. Titles are smaller than Displays. They are typically reserved for medium-emphasis text that is shorter in length.