Skip to content
Snippets Groups Projects
Commit b66b0f14 authored by Piotr Potrebka's avatar Piotr Potrebka
Browse files

feat: email styles

parent 27a954e7
No related branches found
No related tags found
1 merge request!2Devel
Pipeline #168766 passed
...@@ -9,11 +9,11 @@ if ( ! defined( 'ABSPATH' ) ) { ...@@ -9,11 +9,11 @@ if ( ! defined( 'ABSPATH' ) ) {
} }
// Load colors. // Load colors.
$bg = $params['bg']; $bg = $params['bg'] ?? '#f8f8f8';
$body = $params['body']; $body = $params['body'] ?? '#ffffff';
$base = $params['primary']; $base = $params['primary'] ?? '#5c9a2c';
$base_text = Template::light_or_dark( $base, '#171717', '#ffffff' ); $base_text = Template::light_or_dark( $base, '#171717', '#ffffff' );
$text = $params['text']; $text = $params['text'] ?? '#33333';
// Pick a contrasting color for links. // Pick a contrasting color for links.
$link_color = Template::is_hex_light( $base ) ? $base : $base_text; $link_color = Template::is_hex_light( $base ) ? $base : $base_text;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment