Skip to main content
The Stac TextStyle classes allow you to style text with fonts, colors, sizes, and decorations. There are two variants: custom text styles and theme-based text styles.

Custom Text Style Properties

Basic Example

Font Weights

Available font weights:

Text Decorations

Theme-Based Text Style

Use theme text styles to follow Material Design typography:

Overriding Theme Text Styles

You can override specific properties of a theme-based text style using the copyWith method (in Dart) or by adding properties alongside textTheme (in JSON).

Complete Example