diff --git a/templates/html/email-styles.php b/templates/html/email-styles.php index 450345c3bd79b06c6a410f893ab9998496d9c496..2fae35bd616851f16ea1ebf68ec8d228de5ff00c 100644 --- a/templates/html/email-styles.php +++ b/templates/html/email-styles.php @@ -9,11 +9,11 @@ if ( ! defined( 'ABSPATH' ) ) { } // Load colors. -$bg = $params['bg']; -$body = $params['body']; -$base = $params['primary']; +$bg = $params['bg'] ?? '#f8f8f8'; +$body = $params['body'] ?? '#ffffff'; +$base = $params['primary'] ?? '#5c9a2c'; $base_text = Template::light_or_dark( $base, '#171717', '#ffffff' ); -$text = $params['text']; +$text = $params['text'] ?? '#33333'; // Pick a contrasting color for links. $link_color = Template::is_hex_light( $base ) ? $base : $base_text;