You appear to be a bot. Output may be restricted
Description
Registers color schemes for Twenty Sixteen.
Can be filtered with twentysixteen_color_schemes . The order of colors in a colors array:
- Main Background Color.
- Page Background Color.
- Link Color.
- Main Text Color.
- Secondary Text Color.
Usage
$array = twentysixteen_get_color_schemes();
Parameters
Returns
array An associative array of color scheme options.
Source
File name: twentysixteen/inc/customizer.php
Lines:
1 to 79 of 79
function twentysixteen_get_color_schemes() { /** * Filters the color schemes registered for use with Twenty Sixteen. * * The default schemes include 'default', 'dark', 'gray', 'red', and 'yellow'. * * @since Twenty Sixteen 1.0 * * @param array $schemes { * Associative array of color schemes data. * * @type array $slug { * Associative array of information for setting up the color scheme. * * @type string $label Color scheme label. * @type array $colors HEX codes for default colors prepended with a hash symbol ('#'). * Colors are defined in the following order: Main background, page * background, link, main text, secondary text. * } * } */ return apply_filters( 'twentysixteen_color_schemes', array( 'default' => array( 'label' => __( 'Default', 'twentysixteen' ), 'colors' => array( '#1a1a1a', '#ffffff', '#007acc', '#1a1a1a', '#686868', ), ), 'dark' => array( 'label' => __( 'Dark', 'twentysixteen' ), 'colors' => array( '#262626', '#1a1a1a', '#9adffd', '#e5e5e5', '#c1c1c1', ), ), 'gray' => array( 'label' => __( 'Gray', 'twentysixteen' ), 'colors' => array( '#616a73', '#4d545c', '#c7c7c7', '#f2f2f2', '#f2f2f2', ), ), 'red' => array( 'label' => __( 'Red', 'twentysixteen' ), 'colors' => array( '#ffffff', '#ff675f', '#640c1f', '#402b30', '#402b30', ), ), 'yellow' => array( 'label' => __( 'Yellow', 'twentysixteen' ), 'colors' => array( '#3b3721', '#ffef8e', '#774e24', '#3b3721', '#5b4d3e', ), ), ) ); }