Files
t3code/apps/mobile/src/lib/typography.ts
T
2026-07-02 22:42:14 -07:00

22 lines
752 B
TypeScript

export const MOBILE_TYPOGRAPHY = {
micro: { fontSize: 11, lineHeight: 14 },
caption: { fontSize: 12, lineHeight: 16 },
label: { fontSize: 13, lineHeight: 17 },
footnote: { fontSize: 14, lineHeight: 19 },
body: { fontSize: 16, lineHeight: 23 },
headline: { fontSize: 18, lineHeight: 23 },
title: { fontSize: 21, lineHeight: 28 },
largeTitle: { fontSize: 26, lineHeight: 32 },
display: { fontSize: 30, lineHeight: 36 },
} as const;
/** Shared geometry for dense, horizontally scrolling code surfaces. */
export const MOBILE_CODE_SURFACE = {
rowHeight: 22,
gutterWidth: 46,
codePadding: 7,
textVerticalInset: 2,
fontSize: MOBILE_TYPOGRAPHY.caption.fontSize,
lineNumberFontSize: MOBILE_TYPOGRAPHY.micro.fontSize,
} as const;