wp-content/themes/twentyseventeen/inc/color-patterns.php:13Generate the CSS for the current custom color scheme.
2 hooks fire while twentyseventeen_custom_colors_css() runs, in this order:
Filters Twenty Seventeen default saturation level.
Filters Twenty Seventeen custom colors CSS.
<?phpfunction twentyseventeen_custom_colors_css() { $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) ); /** * Filters Twenty Seventeen default saturation level. * * @since Twenty Seventeen 1.0 * * @param int $saturation Color saturation level. */ $saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) ); $reduced_saturation = ( .8 * $saturation ) . '%'; $saturation = $saturation . '%'; $css = '/** * Twenty Seventeen: Color Patterns * * Colors are ordered from dark to light. */ .colors-custom a:hover,.colors-custom a:active,.colors-custom .entry-content a:focus,.colors-custom .entry-content a:hover,.colors-custom .entry-summary a:focus,.colors-custom .entry-summary a:hover,.colors-custom .comment-content a:focus,.colors-custom .comment-content a:hover,.colors-custom .widget a:focus,.colors-custom .widget a:hover,.colors-custom .site-footer .widget-area a:focus,.colors-custom .site-footer .widget-area a:hover,.colors-custom .posts-navigation a:focus,.colors-custom .posts-navigation a:hover,.colors-custom .comment-metadata a:focus,.colors-custom .comment-metadata a:hover,.colors-custom .comment-metadata a.comment-edit-link:focus,.colors-custom .comment-metadata a.comment-edit-link:hover,.colors-custom .comment-reply-link:focus,.colors-custom .comment-reply-link:hover,.colors-custom .widget_authors a:focus strong,.colors-custom .widget_authors a:hover strong,.colors-custom .entry-title a:focus,.colors-custom .entry-title a:hover,.colors-custom .entry-meta a:focus,.colors-custom .entry-meta a:hover,.colors-custom.blog .entry-meta a.post-edit-link:focus,.colors-custom.blog .entry-meta a.post-edit-link:hover,.colors-custom.archive .entry-meta a.post-edit-link:focus,.colors-custom.archive .entry-meta a.post-edit-link:hover,.colors-custom.search .entry-meta a.post-edit-link:focus,.colors-custom.search .entry-meta a.post-edit-link:hover,.colors-custom .page-links a:focus .page-number,.colors-custom .page-links a:hover .page-number,.colors-custom .entry-footer a:focus,.colors-custom .entry-footer a:hover,.colors-custom .entry-footer .cat-links a:focus,.colors-custom .entry-footer .cat-links a:hover,.colors-custom .entry-footer .tags-links a:focus,.colors-custom .entry-footer .tags-links a:hover,.colors-custom .post-navigation a:focus,.colors-custom .post-navigation a:hover,.colors-custom .pagination a:not(.prev):not(.next):focus,.colors-custom .pagination a:not(.prev):not(.next):hover,.colors-custom .comments-pagination a:not(.prev):not(.next):focus,.colors-custom .comments-pagination a:not(.prev):not(.next):hover,.colors-custom .logged-in-as a:focus,.colors-custom .logged-in-as a:hover,.colors-custom a:focus .nav-title,.colors-custom a:hover .nav-title,.colors-custom .edit-link a:focus,.colors-custom .edit-link a:hover,.colors-custom .site-info a:focus,.colors-custom .site-info a:hover,.colors-custom .widget .widget-title a:focus,.colors-custom .widget .widget-title a:hover,.colors-custom .widget ul li a:focus,.colors-custom .widget ul li a:hover { color: hsl( ' . $hue . ', ' . $saturation . ', 0% ); /* base: #000; */}Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyseventeen/inc/color-patterns.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.