File: /var/www/html/wp-content/themes/bch-consulting/config/appearance.php
<?php
/**
* BCH Consulting appearance settings.
*
* @package Genesis Sample
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://www.studiopress.com/
*/
$bch_consulting_default_colors = [
'primary' => '#407ab4',
'secondary' => '#d3e6f9',
'accent' => '#9fe04b',
'light' => '#fff',
'medium' => '#666',
'dark' => '#090909',
];
$bch_consulting_link_color = get_theme_mod(
'bch_consulting_link_color',
$bch_consulting_default_colors['primary']
);
$bch_consulting_secondary_color = get_theme_mod(
'bch_consulting_secondary_color',
$bch_consulting_default_colors['secondary']
);
$bch_consulting_accent_color = get_theme_mod(
'bch_consulting_accent_color',
$bch_consulting_default_colors['accent']
);
$bch_consulting_light_color = get_theme_mod(
'bch_consulting_light_color',
$bch_consulting_default_colors['light']
);
$bch_consulting_medium_color = get_theme_mod(
'bch_consulting_medium_color',
$bch_consulting_default_colors['medium']
);
$bch_consulting_dark_color = get_theme_mod(
'bch_consulting_dark_color',
$bch_consulting_default_colors['dark']
);
$bch_consulting_link_color_contrast = bch_consulting_color_contrast( $bch_consulting_link_color );
$bch_consulting_link_color_brightness = bch_consulting_color_brightness( $bch_consulting_link_color, 35 );
return [
'fonts-url' => 'https://fonts.googleapis.com/css?family=Lato:400,400i,600,700&display=swap',
'content-width' => 1062,
'button-bg' => $bch_consulting_link_color,
'button-color' => $bch_consulting_link_color_contrast,
'button-outline-hover' => $bch_consulting_link_color_brightness,
'link-color' => $bch_consulting_link_color,
'default-colors' => $bch_consulting_default_colors,
'editor-color-palette' => [
[
'name' => __( 'Primary color', 'bch-consulting' ), // Called “Link Color” in the Customizer options. Renamed because “Link Color” implies it can only be used for links.
'slug' => 'theme-primary',
'color' => $bch_consulting_link_color,
],
[
'name' => __( 'Secondary color', 'bch-consulting' ),
'slug' => 'theme-secondary',
'color' => $bch_consulting_secondary_color,
],
[
'name' => __( 'Accent color', 'bch-consulting' ),
'slug' => 'theme-accent',
'color' => $bch_consulting_accent_color,
],
[
'name' => __( 'Light color', 'bch-consulting' ),
'slug' => 'theme-light',
'color' => $bch_consulting_light_color,
],
[
'name' => __( 'Medium color', 'bch-consulting' ),
'slug' => 'theme-medium',
'color' => $bch_consulting_medium_color,
],
[
'name' => __( 'Dark color', 'bch-consulting' ),
'slug' => 'theme-dark',
'color' => $bch_consulting_dark_color,
],
],
'editor-font-sizes' => [
[
'name' => __( 'Small', 'bch-consulting' ),
'size' => 12,
'slug' => 'small',
],
[
'name' => __( 'Normal', 'bch-consulting' ),
'size' => 16,
'slug' => 'normal',
],
[
'name' => __( 'Large', 'bch-consulting' ),
'size' => 20,
'slug' => 'large',
],
[
'name' => __( 'Larger', 'bch-consulting' ),
'size' => 24,
'slug' => 'larger',
],
],
];