getMaxContrastColor(); // If a dark background then load up the white background tones if ( $contrastColor == "#000000" ){ $toneColor = $color->darken(10); $bodyColor = $color->getGrayscaleContrastingColor()->lighten(10); $headerColor = $color->getGrayscaleContrastingColor(); tonal_tone('dark'); } // As a default load up the light background defaults else { $toneColor = $color->lighten(10); $bodyColor = $color->getGrayscaleContrastingColor()->darken(10); $headerColor = $color->getGrayscaleContrastingColor()->darken(); tonal_tone('light'); } // Lets now output the CSS for creating the tonal effects ?>