Browse Source

Merge pull request #3327 from Automattic/add/varia-experimental-link-color

Add/varia experimental link color
Ben Dwyer 4 years ago
parent
commit
8355d29238

+ 9 - 0
hever/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 3 - 0
hever/functions.php

@@ -69,6 +69,9 @@ if ( ! function_exists( 'hever_setup' ) ) :
 		if ( function_exists( 'varia_mobile_nav_on_side_setup' ) ) {
 			varia_mobile_nav_on_side_setup();
 		}
+
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'hever_setup', 12 );

+ 1 - 1
hever/package.json

@@ -1,6 +1,6 @@
 {
   "name": "hever",
-  "version": "1.4.6",
+  "version": "1.5.6",
   "description": "Hever",
   "bugs": {
     "url": "https://github.com/Automattic/themes/issues"

+ 9 - 0
morden/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 3 - 0
morden/functions.php

@@ -68,6 +68,9 @@ if ( ! function_exists( 'morden_setup' ) ) :
 		if ( function_exists( 'varia_mobile_nav_on_side_setup' ) ) {
 			varia_mobile_nav_on_side_setup();
 		}
+
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'morden_setup', 12 );

+ 9 - 0
rockfield/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 2 - 0
rockfield/functions.php

@@ -64,6 +64,8 @@ if ( ! function_exists( 'rockfield_setup' ) ) :
 			)
 		);
 
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'rockfield_setup', 12 );

+ 9 - 0
shawburn/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 3 - 0
shawburn/functions.php

@@ -66,6 +66,9 @@ if ( ! function_exists( 'shawburn_setup' ) ) :
 
 		// Enable Full Site Editing
 		add_theme_support( 'full-site-editing' );
+
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'shawburn_setup', 12 );

+ 9 - 0
stow/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 2 - 0
stow/functions.php

@@ -64,6 +64,8 @@ if ( ! function_exists( 'stow_setup' ) ) :
 			)
 		);
 
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'stow_setup', 12 );

+ 9 - 0
stratford/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 3 - 0
stratford/functions.php

@@ -66,6 +66,9 @@ if ( ! function_exists( 'stratford_setup' ) ) :
 
 		// Remove footer menu
 		unregister_nav_menu( 'menu-2' );
+
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'stratford_setup', 12 );