Material Design's text sizes and styles were developed to balance content density and reading comfort under typical usage conditions.
For typography to work best, it is necessary to set the font to Roboto. This is
archieved by the mdc-typography class, and we recommend to set it globally to
the root of your page.
import Material.Typography as Typography
Html.h1 [ Typography.headline1 ] [ text "Headline" ]Typography elements come in the following thirteen variants.
Sets font properties as Headline 2
Sets font properties as Headline 3
Sets font properties as Headline 4
Sets font properties as Headline 5
Sets font properties as Headline 6
Sets font properties as Body 1
Sets font properties as Body 2
Sets font properties as Subtitle 1
Sets font properties as Subtitle 2
Sets font properties as Caption
Sets font properties as Button
Sets font properties as Overline
Sets the font to Roboto
Sets font properties as Headline 1