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
-
BODY_LARGE–Largest body style.
-
BODY_MEDIUM–Medium body style.
-
BODY_SMALL–Smallest body style.
-
DISPLAY_LARGE–Largest display style.
-
DISPLAY_MEDIUM–Medium display style.
-
DISPLAY_SMALL–Smallest display style.
-
HEADLINE_LARGE–Largest headline style.
-
HEADLINE_MEDIUM–Medium headline style.
-
HEADLINE_SMALL–Smallest headline style.
-
LABEL_LARGE–Largest label style.
-
LABEL_MEDIUM–Medium label style.
-
LABEL_SMALL–Smallest label style.
-
TITLE_LARGE–Largest title style.
-
TITLE_MEDIUM–Medium title style.
-
TITLE_SMALL–Smallest title style.
Properties#
BODY_LARGE
class-attribute
instance-attribute
#
Largest body style.
Body styles are intended for longer passages and primary reading content.
BODY_MEDIUM
class-attribute
instance-attribute
#
Medium body style.
Common default style for standard paragraph text in Material-themed UIs.
BODY_SMALL
class-attribute
instance-attribute
#
Smallest body style.
Suitable for secondary body text, footnotes, and compact long-form content.
DISPLAY_LARGE
class-attribute
instance-attribute
#
Largest display style.
Intended for very prominent, short text on large surfaces, such as hero headlines.
DISPLAY_MEDIUM
class-attribute
instance-attribute
#
Medium display style.
Intended for high-impact short text when DISPLAY_LARGE is too dominant.
DISPLAY_SMALL
class-attribute
instance-attribute
#
Smallest display style.
Intended for concise, emphasized text that still needs display-level prominence.
HEADLINE_LARGE
class-attribute
instance-attribute
#
Largest headline style.
Headline styles are below display styles and suit short, high-emphasis headings.
HEADLINE_MEDIUM
class-attribute
instance-attribute
#
Medium headline style.
Suitable for section headers and prominent in-content headings.
HEADLINE_SMALL
class-attribute
instance-attribute
#
Smallest headline style.
Suitable for compact headline usage on dense layouts.
LABEL_LARGE
class-attribute
instance-attribute
#
Largest label style.
Commonly used for component text, such as button labels and prominent captions.
LABEL_MEDIUM
class-attribute
instance-attribute
#
Medium label style.
Suitable for compact UI labels in controls and supporting interface text.
LABEL_SMALL
class-attribute
instance-attribute
#
Smallest label style.
Suitable for dense, low-footprint labels and small supporting annotations.
TITLE_LARGE
class-attribute
instance-attribute
#
Largest title style.
Titles are typically used for medium-emphasis, short text such as card titles.
TITLE_MEDIUM
class-attribute
instance-attribute
#
Medium title style.
Suitable for secondary titles and emphasized labels in structured content.
TITLE_SMALL
class-attribute
instance-attribute
#
Smallest title style.
Suitable for compact title text where space is limited.