🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

Typography

Material Design type scale The Material Design type scale includes a range of contrasting styles that support the needs of your product and its content.

Source set: Common
public class Typography internal constructor(
    public val h1: TextStyle,
    public val h2: TextStyle,
    public val h3: TextStyle,
    public val h4: TextStyle,
    public val h5: TextStyle,
    public val h6: TextStyle,
    public val subtitle1: TextStyle,
    public val subtitle2: TextStyle,
    public val body1: TextStyle,
    public val body2: TextStyle,
    public val button: TextStyle,
    public val caption: TextStyle,
    public val overline: TextStyle,
)

Material Design type scale

The Material Design type scale includes a range of contrasting styles that support the needs of your product and its content.

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.

Typography image

Functions

copy

Source set: Common
public fun copy(
        h1: TextStyle = this.h1,
        h2: TextStyle = this.h2,
        h3: TextStyle = this.h3,
        h4: TextStyle = this.h4,
        h5: TextStyle = this.h5,
        h6: TextStyle = this.h6,
        subtitle1: TextStyle = this.subtitle1,
        subtitle2: TextStyle = this.subtitle2,
        body1: TextStyle = this.body1,
        body2: TextStyle = this.body2,
        button: TextStyle = this.button,
        caption: TextStyle = this.caption,
        overline: TextStyle = this.overline,
    ): Typography

Returns a copy of this Typography, optionally overriding some of the values.

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String

Content updated: