Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Use light theme for PDF export#1682

Open
Agentriel wants to merge 1 commit into
BoostIO:masterfrom
Agentriel:fix/issue-912-pdf-light-theme
Open

Use light theme for PDF export#1682
Agentriel wants to merge 1 commit into
BoostIO:masterfrom
Agentriel:fix/issue-912-pdf-light-theme

Conversation

@Agentriel
Copy link
Copy Markdown

Closes #912

IssueHunt bounty: https://issuehunt.io/r/BoostIO/BoostNote-App/issues/912

Summary

  • force PDF export rendering to use the light app theme instead of the active UI theme
  • resolve default editor/code-block theme CSS against light mode for generated PDF HTML
  • send appTheme: light to the cloud PDF export endpoint so dark UI themes do not produce dark PDFs

Validation

  • npm exec --package prettier@2.5.1 -- prettier --check src/cloud/lib/export.ts src/cloud/components/DocPage/DocContextMenuActions.tsx
  • git diff --check

I could not run the full project test suite locally because installing the existing dependency tree exhausted the /tmp tmpfs in this environment.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allowing to use different themes for PDF export

2 participants