MacroMath UI
Foundations

Typography

The MacroMath type scale — Poppins, from display to labels.

App · Flutter · macromath_mobile

All of MacroMath — app, docs and website — uses Poppins. In the app the styles live in AppTypography (via google_fonts); on the web and in the docs the same font is loaded from Google Fonts. One typographic voice across the whole product.

Preview

displayLarge2,000 kcal
headlineMediumDay's summary
bodyLargeBody text — the readable base for content.
labelSmallNAV LABEL

Scale

StyleSizeWeightUse
displayLarge48700Big numbers (day's calories).
displayMedium36600Screen highlights.
displaySmall28600Screen titles.
headlineLarge24600Section titles.
headlineMedium20600Subtitles.
headlineSmall18500Card headers.
bodyLarge16400Main body text.
bodyMedium14400Secondary body.
labelSmall10–12500Nav labels, chips.

Available weights

The app loads Poppins from 400 to 900. Rule of thumb:

  • 400 — body text.
  • 500 / 600 — labels, buttons, active states.
  • 700 / 800 — titles and wordmark.
  • 900 — reserved for brand highlights.

Use in the app

import 'package:macromath_mobile/core/constants/app_typography.dart';

Text('2,000 kcal', style: AppTypography.displayLarge);
Text("Day's summary", style: AppTypography.headlineMedium);

Use on web / docs

<link
  rel="stylesheet"
  href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap"
/>
:root {
  --font-brand: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
}

See the styles live in the WidgetbookFoundations › Typography.

On this page