From 3237ecf2533786d009c582c1a3881ea4b7d2575d Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Sun, 4 Oct 2026 03:31:14 +0200 Subject: [PATCH] docs(mailer): readable textColor in the brand example --- lib/helpers/mailer/README.md | 6 +++++- lib/helpers/mailer/tests/mailer.brand.unit.tests.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/helpers/mailer/README.md b/lib/helpers/mailer/README.md index 42c7e47dc..7d8e013c1 100644 --- a/lib/helpers/mailer/README.md +++ b/lib/helpers/mailer/README.md @@ -78,7 +78,7 @@ export default { contact: 'support@rocket.example', logoUrl: 'https://rocket.example/logo.png', primaryColor: '#112233', - textColor: '#ffffff', + textColor: '#1a1a1a', mutedColor: '#999999', fontFamily: 'Helvetica, sans-serif', signature: 'The Rocket Team', @@ -89,6 +89,10 @@ export default { }; ``` +`textColor` must contrast the white card the shell renders inside — the +`.email-shell` background (`styles.html`) is a fixed white, not +brand-configurable. + Every scalar field is also settable individually via `DEVKIT_NODE_mailer_brand_` (e.g. `DEVKIT_NODE_mailer_brand_primaryColor`), same as any other config key. `links` is an object, not a scalar — one env diff --git a/lib/helpers/mailer/tests/mailer.brand.unit.tests.js b/lib/helpers/mailer/tests/mailer.brand.unit.tests.js index 8055a70e7..73f00b8c1 100644 --- a/lib/helpers/mailer/tests/mailer.brand.unit.tests.js +++ b/lib/helpers/mailer/tests/mailer.brand.unit.tests.js @@ -78,7 +78,7 @@ describe('mailer brand unit tests:', () => { contact: 'support@rocket.example', logoUrl: 'https://rocket.example/logo.png', primaryColor: '#112233', - textColor: '#ffffff', + textColor: '#1a1a1a', mutedColor: '#999999', fontFamily: 'Helvetica, sans-serif', signature: 'The Rocket Team',