Work in progress

Android Typography

The Android design system uses Frutiger for all text, to match the NHS web design system and the iOS app.

The type scale follows the Material 3 type scale, using the same style names, sizes, line heights and letter spacing, but rendered in Frutiger. NHSAppTheme passes the scale to MaterialTheme, so Material components use it automatically.

Sizes are set in sp (scale-independent pixels), so all text scales with the user’s font size setting in their device’s accessibility settings.

How to use

Inside a composable, access the type styles through MaterialTheme.typography. Choose a style that matches the purpose of the text:

Text(
    text = "Vaccinations",
    style = MaterialTheme.typography.headlineSmall
)

Use bodyLarge for most reading text including in lists.

Use display styles only for short, prominent text such as onboarding and hero screens.

Use the headline styles for the title of a screen.

Use the title styles for section headings, in cards and in dialogs.

Type styles

Style Size Line height Letter spacing Weight
displayLarge 57sp 64sp -0.25sp Regular
displayMedium 45sp 52sp 0sp Regular
displaySmall 36sp 44sp 0sp Regular
headlineLarge 32sp 40sp 0sp Bold
headlineMedium 28sp 36sp 0sp Bold
headlineSmall 24sp 32sp 0sp Bold
titleLarge 22sp 28sp 0sp Regular
titleMedium 16sp 24sp 0.15sp Regular
titleSmall 14sp 20sp 0.1sp Regular
bodyLarge 16sp 24sp 0.5sp Regular
bodyMedium 14sp 20sp 0.25sp Regular
bodySmall 12sp 16sp 0.4sp Regular
labelLarge 14sp 20sp 0.1sp Bold
labelMedium 12sp 16sp 0.5sp Bold
labelSmall 11sp 16sp 0.5sp Bold

Weights

Frutiger is available in Regular and Bold only. Material 3 uses a Medium weight for some styles, so the design system makes these changes:

  • headline and label styles are Bold
  • title styles are Regular

To make other text bold, set the weight where you use the style:

Text(
    text = "Vaccinations",
    style = MaterialTheme.typography.titleMedium,
    fontWeight = FontWeight.Bold
)

Do not use italics.

Custom sizes

If none of the type styles fit, you can use the Frutiger font family with a custom size. Always use sp units so that text scales with the user’s font size setting:

Text(
    text = "Vaccinations",
    fontFamily = Frutiger,
    fontSize = 20.sp,
    lineHeight = 28.sp,
    letterSpacing = 0.sp
)