Typography
class Typography
The Glimmer type scale includes a range of contrasting styles that support the needs of your product and its content.
Summary
Public constructors |
|---|
Typography(Creates a Glimmer type scale. |
Public functions |
|
|---|---|
Typography |
copy(Returns a copy of this Typography, optionally overriding some of the values. |
open operator Boolean |
|
open Int |
hashCode() |
open String |
toString() |
Public properties |
|
|---|---|
TextStyle |
bodyLarge is the largest body, and is typically used for long-form writing as it works well for small text sizes. |
TextStyle |
bodyMedium is the second largest body, and is typically used for long-form writing as it works well for small text sizes. |
TextStyle |
bodySmall is the smallest body, and is typically used for long-form writing as it works well for small text sizes. |
TextStyle |
titleLarge is the largest title, and is typically reserved for emphasized text that is shorter in length. |
TextStyle |
titleMedium is the second largest title, and is typically reserved for emphasized text that is shorter in length. |
TextStyle |
titleSmall is the smallest title, and is typically reserved for emphasized text that is shorter in length. |
Public constructors
Typography
Typography(
defaultFontFamily: FontFamily? = null,
titleLarge: TextStyle = TitleLarge,
titleMedium: TextStyle = TitleMedium,
titleSmall: TextStyle = TitleSmall,
bodyLarge: TextStyle = BodyLarge,
bodyMedium: TextStyle = BodyMedium,
bodySmall: TextStyle = BodySmall
)
Creates a Glimmer type scale.
| Parameters | |
|---|---|
defaultFontFamily: FontFamily? = null |
the default |
titleLarge: TextStyle = TitleLarge |
titleLarge is the largest title, and is typically reserved for emphasized text that is shorter in length. |
titleMedium: TextStyle = TitleMedium |
titleMedium is the second largest title, and is typically reserved for emphasized text that is shorter in length. |
titleSmall: TextStyle = TitleSmall |
titleSmall is the smallest title, and is typically reserved for emphasized text that is shorter in length. |
bodyLarge: TextStyle = BodyLarge |
bodyLarge is the largest body, and is typically used for long-form writing as it works well for small text sizes. |
bodyMedium: TextStyle = BodyMedium |
bodyMedium is the second largest body, and is typically used for long-form writing as it works well for small text sizes. |
bodySmall: TextStyle = BodySmall |
bodySmall is the smallest body, and is typically used for long-form writing as it works well for small text sizes. |
Public functions
copy
fun copy(
titleLarge: TextStyle = this.titleLarge,
titleMedium: TextStyle = this.titleMedium,
titleSmall: TextStyle = this.titleSmall,
bodyLarge: TextStyle = this.bodyLarge,
bodyMedium: TextStyle = this.bodyMedium,
bodySmall: TextStyle = this.bodySmall
): Typography
Returns a copy of this Typography, optionally overriding some of the values.
Public properties
bodyLarge
val bodyLarge: TextStyle
bodyLarge is the largest body, and is typically used for long-form writing as it works well for small text sizes.
bodyMedium
val bodyMedium: TextStyle
bodyMedium is the second largest body, and is typically used for long-form writing as it works well for small text sizes.
bodySmall
val bodySmall: TextStyle
bodySmall is the smallest body, and is typically used for long-form writing as it works well for small text sizes.
titleLarge
val titleLarge: TextStyle
titleLarge is the largest title, and is typically reserved for emphasized text that is shorter in length.
titleMedium
val titleMedium: TextStyle
titleMedium is the second largest title, and is typically reserved for emphasized text that is shorter in length.
titleSmall
val titleSmall: TextStyle
titleSmall is the smallest title, and is typically reserved for emphasized text that is shorter in length.