TextThemeStyle
Predefined Material text style roles from the active theme.
Use these values with properties such as flet.Text.theme_style to reference semantic typography slots (display, headline, title, body, label) instead of hard-coding font metrics in each control.
Inherits: enum.Enum
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_LARGEclass-attributeinstance-attribute
Largest body style.
Body styles are intended for longer passages and primary reading content.
BODY_MEDIUMclass-attributeinstance-attribute
Medium body style.
Common default style for standard paragraph text in Material-themed UIs.
BODY_SMALLclass-attributeinstance-attribute
Smallest body style.
Suitable for secondary body text, footnotes, and compact long-form content.
DISPLAY_LARGEclass-attributeinstance-attribute
Largest display style.
Intended for very prominent, short text on large surfaces, such as hero headlines.
DISPLAY_MEDIUMclass-attributeinstance-attribute
Medium display style.
Intended for high-impact short text when DISPLAY_LARGE is too dominant.
DISPLAY_SMALLclass-attributeinstance-attribute
Smallest display style.
Intended for concise, emphasized text that still needs display-level prominence.
HEADLINE_LARGEclass-attributeinstance-attribute
Largest headline style.
Headline styles are below display styles and suit short, high-emphasis headings.
HEADLINE_MEDIUMclass-attributeinstance-attribute
Medium headline style.
Suitable for section headers and prominent in-content headings.
HEADLINE_SMALLclass-attributeinstance-attribute
Smallest headline style.
Suitable for compact headline usage on dense layouts.
LABEL_LARGEclass-attributeinstance-attribute
Largest label style.
Commonly used for component text, such as button labels and prominent captions.
LABEL_MEDIUMclass-attributeinstance-attribute
Medium label style.
Suitable for compact UI labels in controls and supporting interface text.
LABEL_SMALLclass-attributeinstance-attribute
Smallest label style.
Suitable for dense, low-footprint labels and small supporting annotations.
TITLE_LARGEclass-attributeinstance-attribute
Largest title style.
Titles are typically used for medium-emphasis, short text such as card titles.
TITLE_MEDIUMclass-attributeinstance-attribute
Medium title style.
Suitable for secondary titles and emphasized labels in structured content.
TITLE_SMALLclass-attributeinstance-attribute
Smallest title style.
Suitable for compact title text where space is limited.