CgsTypography

class CgsTypography(val title: CgsTypography.Title = Title(), val text: CgsTypography.Text = Text())

The full type scale of the design system, grouped by typeface.

title holds the serif (Newsreader) title styles; text holds the sans (Source Sans 3) styles used for running text. Within text, the *Emphasized variants are the medium-weight counterparts of the regular styles.

Constructors

Link copied to clipboard
constructor(title: CgsTypography.Title = Title(), text: CgsTypography.Text = Text())

Types

Link copied to clipboard
class Text(val titleMEmphasized: TextStyle = DefaultTypographyTokens.Text.titleMEmphasized, val titleM: TextStyle = DefaultTypographyTokens.Text.titleM, val titleSEmphasized: TextStyle = DefaultTypographyTokens.Text.titleSEmphasized, val titleS: TextStyle = DefaultTypographyTokens.Text.titleS, val bodyLEmphasized: TextStyle = DefaultTypographyTokens.Text.bodyLEmphasized, val bodyL: TextStyle = DefaultTypographyTokens.Text.bodyL, val bodyMEmphasized: TextStyle = DefaultTypographyTokens.Text.bodyMEmphasized, val bodyM: TextStyle = DefaultTypographyTokens.Text.bodyM, val bodySEmphasized: TextStyle = DefaultTypographyTokens.Text.bodySEmphasized, val bodyS: TextStyle = DefaultTypographyTokens.Text.bodyS, val labelLEmphasized: TextStyle = DefaultTypographyTokens.Text.labelLEmphasized, val labelL: TextStyle = DefaultTypographyTokens.Text.labelL, val labelMEmphasized: TextStyle = DefaultTypographyTokens.Text.labelMEmphasized, val labelM: TextStyle = DefaultTypographyTokens.Text.labelM, val labelSEmphasized: TextStyle = DefaultTypographyTokens.Text.labelSEmphasized, val labelS: TextStyle = DefaultTypographyTokens.Text.labelS, val caption: TextStyle = DefaultTypographyTokens.Text.caption)

Sans (Source Sans 3) text styles.

Link copied to clipboard
class Title(val display: TextStyle = DefaultTypographyTokens.Title.display, val headline: TextStyle = DefaultTypographyTokens.Title.headline, val titleXL: TextStyle = DefaultTypographyTokens.Title.titleXL, val titleL: TextStyle = DefaultTypographyTokens.Title.titleL, val titleM: TextStyle = DefaultTypographyTokens.Title.titleM, val titleS: TextStyle = DefaultTypographyTokens.Title.titleS)

Serif (Newsreader) title styles.

Properties

Link copied to clipboard

Sans (Source Sans 3) text styles.

Link copied to clipboard

Serif (Newsreader) title styles.