<?php

$solar_panels_first_color = get_theme_mod('solar_panels_first_color');
$solar_panels_second_color = get_theme_mod('solar_panels_second_color');
$solar_panels_color_scheme_css = '';

/*------------------ Global First Color -----------*/

if ($solar_panels_first_color) {
  $solar_panels_color_scheme_css .= ':root {';
  $solar_panels_color_scheme_css .= '--first-theme-color: ' . esc_attr($solar_panels_first_color) . ' !important;';
  $solar_panels_color_scheme_css .= '} ';
}

/*------------------ Global Second Color -----------*/

if ($solar_panels_second_color) {
  $solar_panels_color_scheme_css .= ':root {';
  $solar_panels_color_scheme_css .= '--second-theme-color: ' . esc_attr($solar_panels_second_color) . ' !important;';
  $solar_panels_color_scheme_css .= '} ';
}
