Pārlūkot izejas kodu

Lynx: Update default color palette. (#6645)

* Lynx: Remove the unused secondary color.

* Lynx: Remove the pink variation - needs more work.

* Lynx: Remove the secondary color from style variations.

* Lynx: Minor tweaks to button style in style variations blue & green.
alaczek 2 gadi atpakaļ
vecāks
revīzija
30d56bd3e4
5 mainītis faili ar 26 papildinājumiem un 50 dzēšanām
  1. 9 5
      lynx/styles/blue.json
  2. 16 0
      lynx/styles/green.json
  3. 1 10
      lynx/styles/orange.json
  4. 0 30
      lynx/styles/pink.json
  5. 0 5
      lynx/theme.json

+ 9 - 5
lynx/styles/blue.json

@@ -19,11 +19,6 @@
 					"color": "#385BAD",
 					"name": "Primary"
 				},
-				{
-					"slug": "secondary",
-					"color": "#F7EBDD",
-					"name": "Secondary"
-				},
 				{
 					"slug": "tertiary",
 					"color": "#ffffff",
@@ -31,5 +26,14 @@
 				}
 			]
 		}
+	},
+	"styles": {
+		"blocks": {
+			"core/button": {
+				"border": {
+					"radius": "10px"
+				}
+			}
+		}
 	}
 }

+ 16 - 0
lynx/styles/green.json

@@ -26,5 +26,21 @@
 				}
 			]
 		}
+	},
+	"styles": {
+		"blocks": {
+			"core/button": {
+				"border": {
+					"radius": "4px",
+					"width": "2px",
+					"style": "solid",
+					"color": "var(--wp--preset--color--foreground)"
+				},
+				"color": {
+					"background": "transparent",
+					"text": "var(--wp--preset--color--foreground)"
+				}
+			}
+		}
 	}
 }

+ 1 - 10
lynx/styles/orange.json

@@ -9,14 +9,9 @@
 					"color": "#EC602E",
 					"name": "Primary"
 				},
-				{
-					"slug": "secondary",
-					"color": "#ffffff",
-					"name": "Secondary"
-				},
 				{
 					"slug": "tertiary",
-					"color": "#FAE14C",
+					"color": "#ffffff",
 					"name": "Tertiary"
 				},
 				{
@@ -37,10 +32,6 @@
 			"core/button": {
 				"border": {
 					"radius": "100px"
-				},
-				"color": {
-					"background": "var(--wp--preset--color--primary)",
-					"text": "var(--wp--preset--color--secondary)"
 				}
 			}
 		}

+ 0 - 30
lynx/styles/pink.json

@@ -1,30 +0,0 @@
-{
-	"version": 2,
-	"title": "Pink",
-	"settings": {
-		"color": {
-			"palette": [
-				{
-					"slug": "primary",
-					"color": "#000000",
-					"name": "Primary"
-				},
-				{
-					"slug": "foreground",
-					"color": "#000000",
-					"name": "Foreground"
-				},
-				{
-					"slug": "background",
-					"color": "#F5DAFF",
-					"name": "Background"
-				},
-				{
-					"slug": "tertiary",
-					"color": "#F9EAFF",
-					"name": "Tertiary"
-				}
-			]
-		}
-	}
-}

+ 0 - 5
lynx/theme.json

@@ -19,11 +19,6 @@
 					"color": "#113AF5",
 					"name": "Primary"
 				},
-				{
-					"slug": "secondary",
-					"color": "#FFFFFF",
-					"name": "Secondary"
-				},
 				{
 					"slug": "tertiary",
 					"color": "#D9D9D9",