Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/helpers/mailer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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_<field>` (e.g. `DEVKIT_NODE_mailer_brand_primaryColor`),
same as any other config key. `links` is an object, not a scalar — one env
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/mailer/tests/mailer.brand.unit.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading