Selaa lähdekoodia

Merge pull request #4326 from Automattic/skatepark-color-palette

Skatepark: color palette
Maggie 4 vuotta sitten
vanhempi
commit
08bb63d1b6

+ 6 - 0
skatepark/assets/theme.css

@@ -35,5 +35,11 @@
 /**
 /**
  * Reset the WP Admin page styles for Gutenberg-like pages.
  * Reset the WP Admin page styles for Gutenberg-like pages.
  */
  */
+::-moz-selection {
+	color: var(--wp--preset--color--background);
+}
+::selection {
+	color: var(--wp--preset--color--background);
+}
 
 
 /*# sourceMappingURL=theme.css.map */
 /*# sourceMappingURL=theme.css.map */

+ 26 - 1
skatepark/child-theme.json

@@ -1,3 +1,28 @@
 {
 {
-	
+	"settings": {
+		"color": {
+			"gradients": [],
+			"palette": [
+				{
+					"slug": "primary",
+					"color": "#000000",
+					"name": "Primary"
+				},
+				{
+					"slug": "background",
+					"color": "#BFF5A5",
+					"name": "Background"
+				}
+			]
+		},
+		"custom": {
+			"color": {
+				"foreground": "var(--wp--preset--color--primary)",
+				"background": "var(--wp--preset--color--background)",
+				"primary": "var(--wp--preset--color--primary)",
+				"secondary": "var(--wp--preset--color--primary)",
+				"selection": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
 }
 }

+ 5 - 0
skatepark/sass/base/_text.scss

@@ -0,0 +1,5 @@
+// Text selection text color
+
+::selection {
+	color: var(--wp--preset--color--background);
+}

+ 1 - 0
skatepark/sass/theme.scss

@@ -1,2 +1,3 @@
 @import "../../blockbase/sass/base/breakpoints"; // Get the mobile-only media query and make it available to this theme's styles
 @import "../../blockbase/sass/base/breakpoints"; // Get the mobile-only media query and make it available to this theme's styles
 @import "../../blockbase/sass/base/mixins";
 @import "../../blockbase/sass/base/mixins";
+@import "base/text";

+ 5 - 20
skatepark/theme.json

@@ -40,28 +40,13 @@
 			"palette": [
 			"palette": [
 				{
 				{
 					"slug": "primary",
 					"slug": "primary",
-					"color": "#007cba",
+					"color": "#000000",
 					"name": "Primary"
 					"name": "Primary"
 				},
 				},
-				{
-					"slug": "secondary",
-					"color": "#006ba1",
-					"name": "Secondary"
-				},
-				{
-					"slug": "foreground",
-					"color": "#333333",
-					"name": "Foreground"
-				},
 				{
 				{
 					"slug": "background",
 					"slug": "background",
-					"color": "#ffffff",
+					"color": "#BFF5A5",
 					"name": "Background"
 					"name": "Background"
-				},
-				{
-					"slug": "selection",
-					"color": "#c2c2c2",
-					"name": "Selection"
 				}
 				}
 			]
 			]
 		},
 		},
@@ -110,11 +95,11 @@
 				}
 				}
 			},
 			},
 			"color": {
 			"color": {
-				"foreground": "var(--wp--preset--color--foreground)",
+				"foreground": "var(--wp--preset--color--primary)",
 				"background": "var(--wp--preset--color--background)",
 				"background": "var(--wp--preset--color--background)",
 				"primary": "var(--wp--preset--color--primary)",
 				"primary": "var(--wp--preset--color--primary)",
-				"secondary": "var(--wp--preset--color--secondary)",
-				"selection": "var(--wp--preset--color--selection)"
+				"secondary": "var(--wp--preset--color--primary)",
+				"selection": "var(--wp--preset--color--primary)"
 			},
 			},
 			"colorPalettes": [
 			"colorPalettes": [
 				{
 				{