Bläddra i källkod

Upside-down commit returning sophisticated-business/functions.php to pre-sync status. (A build was pushed to consolidate this change)

Jason Crist 4 år sedan
förälder
incheckning
a5d3f01d00
1 ändrade filer med 32 tillägg och 0 borttagningar
  1. 32 0
      sophisticated-business/functions.php

+ 32 - 0
sophisticated-business/functions.php

@@ -34,6 +34,38 @@ function sophisticated_business_setup() {
 			'header-text' => array( 'site-title' ),
 		)
 	);
+
+	// Editor color palette.
+	add_theme_support(
+		'editor-color-palette',
+		array(
+			array(
+				'name'  => __( 'Primary', 'sophisticated-business' ),
+				'slug'  => 'primary',
+				'color' => '#caab57', // $color__link
+			),
+			array(
+				'name'  => __( 'Secondary', 'sophisticated-business' ),
+				'slug'  => 'secondary',
+				'color' => '#b59439', // $color__border-link-hover
+			),
+			array(
+				'name'  => __( 'Dark Gray', 'sophisticated-business' ),
+				'slug'  => 'dark-gray',
+				'color' => '#1c1c1c', // $color__text-screen
+			),
+			array(
+				'name'  => __( 'Light Gray', 'sophisticated-business' ),
+				'slug'  => 'light-gray',
+				'color' => '#cccccc', // $color__text-light
+			),
+			array(
+				'name'  => __( 'White', 'sophisticated-business' ),
+				'slug'  => 'white',
+				'color' => '#ffffff',
+			),
+		)
+	);
 }
 endif; // sophisticated_business_setup
 add_action( 'after_setup_theme', 'sophisticated_business_setup', 30 );