Variable: typographyTokens¶
consttypographyTokens:object
Defined in: src/theme.ts:127
Typography tokens — single source of truth for all font sizes.
Mobile values are consumed by Mantine's createTheme(). Desktop values are exposed as CSS custom properties (--typo-desktop-*) and applied at the sm breakpoint (48em / 768px) in typography.css.
Type Declaration¶
fontSizes¶
readonlyfontSizes:object
fontSizes.lg¶
readonlylg:object
fontSizes.lg.desktop¶
readonlydesktop:"1.5rem"="1.5rem"
fontSizes.lg.mobile¶
readonlymobile:"1.25rem"="1.25rem"
fontSizes.md¶
readonlymd:object
fontSizes.md.desktop¶
readonlydesktop:"1.1875rem"="1.1875rem"
fontSizes.md.mobile¶
readonlymobile:"1rem"="1rem"
fontSizes.sm¶
readonlysm:object
fontSizes.sm.desktop¶
readonlydesktop:"1rem"="1rem"
fontSizes.sm.mobile¶
readonlymobile:"0.875rem"="0.875rem"
fontSizes.xl¶
readonlyxl:object
fontSizes.xl.desktop¶
readonlydesktop:"2rem"="2rem"
fontSizes.xl.mobile¶
readonlymobile:"1.625rem"="1.625rem"
fontSizes.xs¶
readonlyxs:object
fontSizes.xs.desktop¶
readonlydesktop:"1rem"="1rem"
fontSizes.xs.mobile¶
readonlymobile:"0.875rem"="0.875rem"
fontWeights¶
readonlyfontWeights:object
fontWeights.body¶
readonlybody:500=500
fontWeights.bold¶
readonlybold:700=700
headings¶
readonlyheadings:object
headings.h1¶
readonlyh1:object
headings.h1.desktop¶
readonlydesktop:"2rem"="2rem"
headings.h1.lineHeight¶
readonlylineHeight:"1.3"="1.3"
headings.h1.mobile¶
readonlymobile:"1.625rem"="1.625rem"
headings.h2¶
readonlyh2:object
headings.h2.desktop¶
readonlydesktop:"1.75rem"="1.75rem"
headings.h2.lineHeight¶
readonlylineHeight:"1.35"="1.35"
headings.h2.mobile¶
readonlymobile:"1.5rem"="1.5rem"
headings.h3¶
readonlyh3:object
headings.h3.desktop¶
readonlydesktop:"1.5rem"="1.5rem"
headings.h3.lineHeight¶
readonlylineHeight:"1.4"="1.4"
headings.h3.mobile¶
readonlymobile:"1.25rem"="1.25rem"
headings.h4¶
readonlyh4:object
headings.h4.desktop¶
readonlydesktop:"1.1875rem"="1.1875rem"
headings.h4.lineHeight¶
readonlylineHeight:"1.5"="1.5"
headings.h4.mobile¶
readonlymobile:"1rem"="1rem"
headings.h5¶
readonlyh5:object
headings.h5.desktop¶
readonlydesktop:"1rem"="1rem"
headings.h5.lineHeight¶
readonlylineHeight:"1.55"="1.55"
headings.h5.mobile¶
readonlymobile:"0.875rem"="0.875rem"
headings.h6¶
readonlyh6:object
headings.h6.desktop¶
readonlydesktop:"1rem"="1rem"
headings.h6.lineHeight¶
readonlylineHeight:"1.55"="1.55"
headings.h6.mobile¶
readonlymobile:"0.875rem"="0.875rem"
sizes¶
readonlysizes:object
Semantic size aliases — map meaningful names to Mantine size tokens. Use these in components instead of raw "md" / "xs" strings.
Each resolves to a responsive CSS variable: - desktop: 19px — NHS/GOV.UK standard body text on large screens - mobile: 16px — NHS/GOV.UK standard body text on small screens
sizes.desktop¶
readonlydesktop:"md"="md"
sizes.mobile¶
readonlymobile:"xs"="xs"