Components

DhText

Typography primitive. 12 style presets mapped to Material 3 roles + Davidhorn AppTextStyles. Prefer DhText over raw Text in new code.

Basic

Default Body style — 14sp.

Light dh-text body (light theme)
Dark dh-text body (dark theme)
DhText("Hello")

Headline

Page titles use HeadlineLarge.

Light dh-text headline, large (light theme)
Dark dh-text headline, large (dark theme)
DhText(text = "Task Details", style = DhText.Style.HeadlineLarge)

Body Bold

Use BodyBold for emphasis within body copy.

Light dh-text body, bold (light theme)
Dark dh-text body, bold (dark theme)
DhText("Required", style = DhText.Style.BodyBold)

Truncate

maxLines + overflow = TextOverflow.Ellipsis.

Light dh-text ellipsis (light theme)
Dark dh-text ellipsis (dark theme)
DhText(
    text = longDescription,
    maxLines = 2,
    overflow = TextOverflow.Ellipsis
)

Display sizes

DisplayLarge (96sp) / DisplayMedium (64sp) for hero moments.

Light dh-text display, medium (light theme)
Dark dh-text display, medium (dark theme)
DhText("Display", style = DhText.Style.DisplayLarge)
DhText("Display", style = DhText.Style.DisplayMedium)