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 with stages
in 48 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment