Files
faunosteo/packages/pdf/src/render/constants.ts
T

19 lines
610 B
TypeScript

import { rgb } from 'pdf-lib'
/**
* Layout and colour constants shared across page renderers (header, footer,
* observation page, conclusion page). Only values identical across callers
* live here; a same-named constant with another value stays local.
*/
export const MARGIN_X = 36
export const EYEBROW_Y_OFFSET = 95
export const TITLE_Y_OFFSET = 122
export const TITLE_RULE_OFFSET = 12
export const TITLE_RULE_WIDTH = 48
export const SECTION_LABEL_GAP = 4
export const COLOR_INK = rgb(0.12, 0.11, 0.09)
export const COLOR_MUTED = rgb(0.42, 0.39, 0.35)
export const COLOR_ACCENT = rgb(0.72, 0.35, 0.25)