Skip to content
Snippets Groups Projects

Devel

Merged Piotr Potrebka requested to merge devel into main
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
+ 4
4
@@ -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;
Loading