Skip to main content

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

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.