Skip to content

TextThemeStyle

Inherits: Enum

Predefined Material text style roles from the active theme.

Use these values with properties such as Text.theme_style to reference semantic typography slots (display, headline, title, body, label) instead of hard-coding font metrics in each control.

Properties

Properties#

BODY_LARGE class-attribute instance-attribute #

BODY_LARGE = 'bodyLarge'

Largest body style.

Body styles are intended for longer passages and primary reading content.

BODY_MEDIUM class-attribute instance-attribute #

BODY_MEDIUM = 'bodyMedium'

Medium body style.

Common default style for standard paragraph text in Material-themed UIs.

BODY_SMALL class-attribute instance-attribute #

BODY_SMALL = 'bodySmall'

Smallest body style.

Suitable for secondary body text, footnotes, and compact long-form content.

DISPLAY_LARGE class-attribute instance-attribute #

DISPLAY_LARGE = 'displayLarge'

Largest display style.

Intended for very prominent, short text on large surfaces, such as hero headlines.

DISPLAY_MEDIUM class-attribute instance-attribute #

DISPLAY_MEDIUM = 'displayMedium'

Medium display style.

Intended for high-impact short text when DISPLAY_LARGE is too dominant.

DISPLAY_SMALL class-attribute instance-attribute #

DISPLAY_SMALL = 'displaySmall'

Smallest display style.

Intended for concise, emphasized text that still needs display-level prominence.

HEADLINE_LARGE class-attribute instance-attribute #

HEADLINE_LARGE = 'headlineLarge'

Largest headline style.

Headline styles are below display styles and suit short, high-emphasis headings.

HEADLINE_MEDIUM class-attribute instance-attribute #

HEADLINE_MEDIUM = 'headlineMedium'

Medium headline style.

Suitable for section headers and prominent in-content headings.

HEADLINE_SMALL class-attribute instance-attribute #

HEADLINE_SMALL = 'headlineSmall'

Smallest headline style.

Suitable for compact headline usage on dense layouts.

LABEL_LARGE class-attribute instance-attribute #

LABEL_LARGE = 'labelLarge'

Largest label style.

Commonly used for component text, such as button labels and prominent captions.

LABEL_MEDIUM class-attribute instance-attribute #

LABEL_MEDIUM = 'labelMedium'

Medium label style.

Suitable for compact UI labels in controls and supporting interface text.

LABEL_SMALL class-attribute instance-attribute #

LABEL_SMALL = 'labelSmall'

Smallest label style.

Suitable for dense, low-footprint labels and small supporting annotations.

TITLE_LARGE class-attribute instance-attribute #

TITLE_LARGE = 'titleLarge'

Largest title style.

Titles are typically used for medium-emphasis, short text such as card titles.

TITLE_MEDIUM class-attribute instance-attribute #

TITLE_MEDIUM = 'titleMedium'

Medium title style.

Suitable for secondary titles and emphasized labels in structured content.

TITLE_SMALL class-attribute instance-attribute #

TITLE_SMALL = 'titleSmall'

Smallest title style.

Suitable for compact title text where space is limited.