androidx.compose.material3
Typography
Class
No hand-written docs yet.
The Material Design type scale includes a range of contrasting styles that support the needs of your product and its content.
class Typography(
displayLarge: TextStyle = typographyTokens.DisplayLarge,
displayMedium: TextStyle = typographyTokens.DisplayMedium,
displaySmall: TextStyle = typographyTokens.DisplaySmall,
headlineLarge: TextStyle = typographyTokens.HeadlineLarge,
headlineMedium: TextStyle = typographyTokens.HeadlineMedium,
headlineSmall: TextStyle = typographyTokens.HeadlineSmall,
titleLarge: TextStyle = typographyTokens.TitleLarge,
titleMedium: TextStyle = typographyTokens.TitleMedium,
titleSmall: TextStyle = typographyTokens.TitleSmall,
bodyLarge: TextStyle = typographyTokens.BodyLarge,
bodyMedium: TextStyle = typographyTokens.BodyMedium,
bodySmall: TextStyle = typographyTokens.BodySmall,
labelLarge: TextStyle = typographyTokens.LabelLarge,
labelMedium: TextStyle = typographyTokens.LabelMedium,
labelSmall: TextStyle = typographyTokens.LabelSmall,
displayLargeEmphasized: TextStyle = typographyTokens.DisplayLargeEmphasized,
displayMediumEmphasized: TextStyle = typographyTokens.DisplayMediumEmphasized,
displaySmallEmphasized: TextStyle = typographyTokens.DisplaySmallEmphasized,
headlineLargeEmphasized: TextStyle = typographyTokens.HeadlineLargeEmphasized,
headlineMediumEmphasized: TextStyle = typographyTokens.HeadlineMediumEmphasized,
headlineSmallEmphasized: TextStyle = typographyTokens.HeadlineSmallEmphasized,
titleLargeEmphasized: TextStyle = typographyTokens.TitleLargeEmphasized,
titleMediumEmphasized: TextStyle = typographyTokens.TitleMediumEmphasized,
titleSmallEmphasized: TextStyle = typographyTokens.TitleSmallEmphasized,
bodyLargeEmphasized: TextStyle = typographyTokens.BodyLargeEmphasized,
bodyMediumEmphasized: TextStyle = typographyTokens.BodyMediumEmphasized,
bodySmallEmphasized: TextStyle = typographyTokens.BodySmallEmphasized,
labelLargeEmphasized: TextStyle = typographyTokens.LabelLargeEmphasized,
labelMediumEmphasized: TextStyle = typographyTokens.LabelMediumEmphasized,
labelSmallEmphasized: TextStyle = typographyTokens.LabelSmallEmphasized,
)
How to get one
Create it
Typography(displayLarge, displayMedium, displaySmall, headlineLarge, headlineMedium, headlineSmall, titleLarge, titleMedium, titleSmall, bodyLarge, bodyMedium, bodySmall, labelLarge, labelMedium, labelSmall, displayLargeEmphasized, displayMediumEmphasized, displaySmallEmphasized, headlineLargeEmphasized, headlineMediumEmphasized, headlineSmallEmphasized, titleLargeEmphasized, titleMediumEmphasized, titleSmallEmphasized, bodyLargeEmphasized, bodyMediumEmphasized, bodySmallEmphasized, labelLargeEmphasized, labelMediumEmphasized, labelSmallEmphasized)constructor
Ready-made values and functions that return it
Used by
Parameters that take a Typography.
Properties
displayLargeEmphasizedSince 1.10
val displayLargeEmphasized: TextStyle
an emphasized version of displayLarge.
displayMediumEmphasizedSince 1.10
val displayMediumEmphasized: TextStyle
an emphasized version of displayMedium.
displaySmallEmphasizedSince 1.10
val displaySmallEmphasized: TextStyle
an emphasized version of displaySmall.
headlineLargeEmphasizedSince 1.10
val headlineLargeEmphasized: TextStyle
an emphasized version of headlineLarge.
headlineMediumEmphasizedSince 1.10
val headlineMediumEmphasized: TextStyle
an emphasized version of headlineMedium.
headlineSmallEmphasizedSince 1.10
val headlineSmallEmphasized: TextStyle
an emphasized version of headlineSmall.
titleLargeEmphasizedSince 1.10
val titleLargeEmphasized: TextStyle
an emphasized version of titleLarge.
titleMediumEmphasizedSince 1.10
val titleMediumEmphasized: TextStyle
an emphasized version of titleMedium.
titleSmallEmphasizedSince 1.10
val titleSmallEmphasized: TextStyle
an emphasized version of titleSmall.
bodyLargeEmphasizedSince 1.10
val bodyLargeEmphasized: TextStyle
an emphasized version of bodyLarge.
bodyMediumEmphasizedSince 1.10
val bodyMediumEmphasized: TextStyle
an emphasized version of bodyMedium.
bodySmallEmphasizedSince 1.10
val bodySmallEmphasized: TextStyle
an emphasized version of bodySmall.
labelLargeEmphasizedSince 1.10
val labelLargeEmphasized: TextStyle
an emphasized version of labelLarge.
labelMediumEmphasizedSince 1.10
val labelMediumEmphasized: TextStyle
an emphasized version of labelMedium.
labelSmallEmphasizedSince 1.10
val labelSmallEmphasized: TextStyle
an emphasized version of labelSmall.
displayLarge
val displayLarge: TextStyle
displayMedium
val displayMedium: TextStyle
displaySmall
val displaySmall: TextStyle
headlineLarge
val headlineLarge: TextStyle
headlineMedium
val headlineMedium: TextStyle
headlineSmall
val headlineSmall: TextStyle
titleLarge
val titleLarge: TextStyle
titleMedium
val titleMedium: TextStyle
titleSmall
val titleSmall: TextStyle
bodyLarge
val bodyLarge: TextStyle
bodyMedium
val bodyMedium: TextStyle
bodySmall
val bodySmall: TextStyle
labelLarge
val labelLarge: TextStyle
labelMedium
val labelMedium: TextStyle
labelSmall
val labelSmall: TextStyle
Functions
copy
fun copy(
displayLarge: TextStyle = this.displayLarge,
displayMedium: TextStyle = this.displayMedium,
displaySmall: TextStyle = this.displaySmall,
headlineLarge: TextStyle = this.headlineLarge,
headlineMedium: TextStyle = this.headlineMedium,
headlineSmall: TextStyle = this.headlineSmall,
titleLarge: TextStyle = this.titleLarge,
titleMedium: TextStyle = this.titleMedium,
titleSmall: TextStyle = this.titleSmall,
bodyLarge: TextStyle = this.bodyLarge,
bodyMedium: TextStyle = this.bodyMedium,
bodySmall: TextStyle = this.bodySmall,
labelLarge: TextStyle = this.labelLarge,
labelMedium: TextStyle = this.labelMedium,
labelSmall: TextStyle = this.labelSmall,
displayLargeEmphasized: TextStyle = this.displayLargeEmphasized,
displayMediumEmphasized: TextStyle = this.displayMediumEmphasized,
displaySmallEmphasized: TextStyle = this.displaySmallEmphasized,
headlineLargeEmphasized: TextStyle = this.headlineLargeEmphasized,
headlineMediumEmphasized: TextStyle = this.headlineMediumEmphasized,
headlineSmallEmphasized: TextStyle = this.headlineSmallEmphasized,
titleLargeEmphasized: TextStyle = this.titleLargeEmphasized,
titleMediumEmphasized: TextStyle = this.titleMediumEmphasized,
titleSmallEmphasized: TextStyle = this.titleSmallEmphasized,
bodyLargeEmphasized: TextStyle = this.bodyLargeEmphasized,
bodyMediumEmphasized: TextStyle = this.bodyMediumEmphasized,
bodySmallEmphasized: TextStyle = this.bodySmallEmphasized,
labelLargeEmphasized: TextStyle = this.labelLargeEmphasized,
labelMediumEmphasized: TextStyle = this.labelMediumEmphasized,
labelSmallEmphasized: TextStyle = this.labelSmallEmphasized,
): Typography
Returns a copy of this Typography, optionally overriding some of the values.
fun copy(
displayLarge: TextStyle = this.displayLarge,
displayMedium: TextStyle = this.displayMedium,
displaySmall: TextStyle = this.displaySmall,
headlineLarge: TextStyle = this.headlineLarge,
headlineMedium: TextStyle = this.headlineMedium,
headlineSmall: TextStyle = this.headlineSmall,
titleLarge: TextStyle = this.titleLarge,
titleMedium: TextStyle = this.titleMedium,
titleSmall: TextStyle = this.titleSmall,
bodyLarge: TextStyle = this.bodyLarge,
bodyMedium: TextStyle = this.bodyMedium,
bodySmall: TextStyle = this.bodySmall,
labelLarge: TextStyle = this.labelLarge,
labelMedium: TextStyle = this.labelMedium,
labelSmall: TextStyle = this.labelSmall,
): Typography
Returns a copy of this Typography, optionally overriding some of the values.
Library docs
The Material Design type scale includes a range of contrasting styles that support the needs of your product and its content.
Use typography to make writing legible and beautiful. Material's default type scale includes contrasting and flexible styles to support a wide range of use cases.
The type scale is a combination of thirteen styles that are supported by the type system. It contains reusable categories of text, each with an intended application and meaning.
The emphasized versions of the baseline styles add dynamism and personality to the baseline styles. It can be used to further stylize select pieces of text. The emphasized states have pragmatic uses, such as creating clearer division of content and drawing users' eyes to relevant material.
To learn more about typography, see Material Design typography.
For a standard typography use case: