diff --git a/changelog.md b/changelog.md index 9577f75..3894275 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2025-12-11 - 2.0.2 - fix(page) +Use theme variables for page styling, make pagecontainer background theme-aware, and use accent background for footer separator + +- Extract documentSettings.theme to a local variable in dedocument-page and use safe optional checks when emitting CSS custom properties +- Use theme pageBackground / coverPageBackground values consistently for page background-image fallback logic +- Make pagecontainer background follow the --text-bg-color CSS variable instead of a hard #ffffff color +- Switch footer separator color variable to --color-accent-bg so the footer stripe uses the theme accent background + ## 2025-12-10 - 2.0.1 - fix(core) Migrate file I/O to @push.rocks/smartfs, adopt TC39 decorators v3 accessor in web components, and update docs/tests diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index d9ffde4..67f611e 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '2.0.1', + version: '2.0.2', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index d9ffde4..67f611e 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '2.0.1', + version: '2.0.2', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/elements/page.ts b/ts_web/elements/page.ts index f03dca1..e1605b8 100644 --- a/ts_web/elements/page.ts +++ b/ts_web/elements/page.ts @@ -132,17 +132,14 @@ export class DePage extends DeesElement { ]; public render(): TemplateResult { + const theme = this.documentSettings.theme; return html`
diff --git a/ts_web/elements/pagecontainer.ts b/ts_web/elements/pagecontainer.ts index 85a31dc..72f8fc3 100644 --- a/ts_web/elements/pagecontainer.ts +++ b/ts_web/elements/pagecontainer.ts @@ -50,7 +50,7 @@ export class DePageContainer extends DeesElement { position: relative; border-radius: 3px; overflow: hidden; - background: #ffffff; + background: var(--text-bg-color, #ffffff); } `, ]; diff --git a/ts_web/style.ts b/ts_web/style.ts index 82a980a..5a59a34 100644 --- a/ts_web/style.ts +++ b/ts_web/style.ts @@ -21,7 +21,7 @@ export const dedocumentSharedStyle = css` --text-bg-color: var(--color-primary-bg); --label-fg: var(--color-dark); --label-bg: var(--color-grey); - --footer-separator-bg-color: var(--color-accent); + --footer-separator-bg-color: var(--color-accent-bg); --footer-separator-fg-color: var(--color-light); /* Functional variables */