wp-content/themes/twentynineteen/functions.php:329Display custom color CSS in customizer and on frontend.
function twentynineteen_colors_css_wrap() { // Only include custom colors in customizer or frontend. if ( ( ! is_customize_preview() && 'default' === get_theme_mod( 'primary_color', 'default' ) ) || is_admin() ) { return; } require_once get_parent_theme_file_path( '/inc/color-patterns.php' ); $primary_color = 199; if ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) { $primary_color = get_theme_mod( 'primary_color_hue', 199 ); } ?> <style type="text/css" id="custom-theme-colors" <?php echo is_customize_preview() ? 'data-hue="' . absint( $primary_color ) . '"' : ''; ?>> <?php echo twentynineteen_custom_colors_css(); ?> </style> <?php}Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentynineteen/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.