Open History to see the last commit
1export const MOBILE_TYPOGRAPHY = {
2 micro: { fontSize: 10, lineHeight: 13 },
3 caption: { fontSize: 11, lineHeight: 15 },
4 label: { fontSize: 12, lineHeight: 16 },
5 footnote: { fontSize: 13, lineHeight: 18 },
6 composer: { fontSize: 14, lineHeight: 20 },
7 body: { fontSize: 15, lineHeight: 22 },
8 headline: { fontSize: 17, lineHeight: 22 },
9 title: { fontSize: 20, lineHeight: 26 },
10 largeTitle: { fontSize: 24, lineHeight: 30 },
11 display: { fontSize: 28, lineHeight: 34 },
12} as const;
13
14/** Shared geometry for dense, horizontally scrolling code surfaces. */
15export const MOBILE_CODE_SURFACE = {
16 rowHeight: 20,
17 gutterWidth: 46,
18 codePadding: 7,
19 textVerticalInset: 2,
20 fontSize: MOBILE_TYPOGRAPHY.caption.fontSize,
21 lineNumberFontSize: MOBILE_TYPOGRAPHY.micro.fontSize,
22} as const;