$color_scheme[0], 'primary_1' => $color_scheme[1], 'primary_2' => $color_scheme[2], 'primary_3' => $color_scheme[3], 'primary_4' => $color_scheme[4], 'accent_1' => $color_scheme[5], 'accent_2' => $color_scheme[6], 'accent_3' => $color_scheme[7], 'header_text_color' => $color_scheme[8], 'meta_links_color' => vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.54)', $color_meta_links ), 'meta_links_hover_color' => vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.7)', $color_meta_links ), ); $color_scheme_css = the_mx_frontend_color_scheme_styles( $colors ); $user_color_scheme_css = the_mx_frontend_user_color_styles(); $misc_color_css = the_mx_misc_styles(); if ( get_theme_mod( 'the_mx_color_scheme' ) != 'custom' ) { wp_add_inline_style( 'the-mx-style', $color_scheme_css ); } else { wp_add_inline_style( 'the-mx-style', $user_color_scheme_css ); } wp_add_inline_style( 'the-mx-style', $misc_color_css ); // Adjustment for the Blue Gray color scheme $css = ' .woocommerce #respond input#submit, .woocommerce #respond input#submit.alt, .woocommerce a.button, .woocommerce a.button.alt, .woocommerce button.button, .woocommerce button.button.alt, .woocommerce input.button, .woocommerce input.button.alt { color: var(--primary-text-color-white) !important; } '; if ( get_theme_mod( 'the_mx_color_scheme' ) == 'blue_gray' ) { wp_add_inline_style( 'the-mx-style', $css ); } // Material ink effect fixes for the white color scheme $material_ink_css = ' span.ripple { background-color: rgba(0, 0, 0, 0.25); } '; if ( get_theme_mod( 'the_mx_color_scheme' ) == 'white' ) { wp_add_inline_style( 'the-mx-style', $material_ink_css ); } } add_action( 'wp_enqueue_scripts', 'the_mx_color_scheme_css' ); require get_template_directory() . '/inc/color-schemes-frontend.php'; function the_mx_reverse_primary_4_css() { $reverse_text_color = get_theme_mod( 'the_mx_reverse_primary_4_textcolor', 0 ); if ( $reverse_text_color == 1 ) { $reverse_text_color_css = <<