Description
pdfTheme defines a single light colour scheme for PDF exports. Contributors should add a darkTheme export that uses a dark background with light text, and update the PDF generation caller to select the theme based on a preferDark parameter, so users who work in dark mode can get matching PDF receipts.
Acceptance Criteria
Context
- Target file:
src/lib/pdfTheme.ts
- Contrast checker:
src/lib/contrast.ts
Description
pdfThemedefines a single light colour scheme for PDF exports. Contributors should add adarkThemeexport that uses a dark background with light text, and update the PDF generation caller to select the theme based on apreferDarkparameter, so users who work in dark mode can get matching PDF receipts.Acceptance Criteria
darkThemeobject is exported fromsrc/lib/pdfTheme.tswith background, text, and accent colour definitionssrc/lib/contrast.ts)preferDark: booleanparameter and applies the correct themeContext
src/lib/pdfTheme.tssrc/lib/contrast.ts