(key: keyof ThemeConfig)
| 466 | |
| 467 | const input = themeInput as Partial<Record<keyof ThemeConfig, unknown>>; |
| 468 | const takeString = (key: keyof ThemeConfig): string | undefined => { |
| 469 | const v = input[key]; |
| 470 | if (typeof v !== 'string') return undefined; |
| 471 | const trimmed = v.trim(); |
| 472 | return trimmed.length > 0 ? trimmed : undefined; |
| 473 | }; |
| 474 | |
| 475 | const fontSizeRaw = input.fontSize; |
| 476 | const fontSize = |