Procházet zdrojové kódy

Revert "Archeo: Sort theme.json alphabetically"

This reverts commit 7f0876de319ec667979c4da3ef27a0e15841b4f5.
Ben Dwyer před 3 roky
rodič
revize
6ad96a44db
1 změnil soubory, kde provedl 62 přidání a 74 odebrání
  1. 62 74
      archeo/theme.json

+ 62 - 74
archeo/theme.json

@@ -1,20 +1,21 @@
 {
 	"$schema": "https://schemas.wp.org/trunk/theme.json",
+	"version": 2,
 	"customTemplates": [
 		{
 			"name": "blank",
+			"title": "Blank",
 			"postTypes": [
 				"page",
 				"post"
-			],
-			"title": "Blank"
+			]
 		},
 		{
 			"name": "page-no-title",
+			"title": "Page (No Title)",
 			"postTypes": [
 				"page"
-			],
-			"title": "Page (No Title)"
+			]
 		}
 	],
 	"settings": {
@@ -22,33 +23,33 @@
 		"color": {
 			"palette": [
 				{
+					"slug": "foreground",
 					"color": "#242321",
-					"name": "Foreground",
-					"slug": "foreground"
+					"name": "Foreground"
 				},
 				{
+					"slug": "background",
 					"color": "#FCFBF8",
-					"name": "Background",
-					"slug": "background"
+					"name": "Background"
 				},
 				{
+					"slug": "primary",
 					"color": "#71706E",
-					"name": "Primary",
-					"slug": "primary"
+					"name": "Primary"
 				},
 				{
+					"slug": "tertiary",
 					"color": "#CFCFCF",
-					"name": "Tertiary",
-					"slug": "tertiary"
+					"name": "Tertiary"
 				}
 			]
 		},
 		"custom": {
 			"spacing": {
-				"large": "clamp(100px, 12vw, 460px)",
+				"small": "clamp(20px, 4vw, 40px)",
 				"medium": "clamp(48px, 8vw, 100px)",
-				"outer": "min(4vw, 90px)",
-				"small": "clamp(20px, 4vw, 40px)"
+				"large": "clamp(100px, 12vw, 460px)",
+				"outer": "min(4vw, 90px)"
 			}
 		},
 		"layout": {
@@ -68,71 +69,59 @@
 		"typography": {
 			"fontFamilies": [
 				{
+					"fontFamily": "\"Chivo\", sans-serif",
+					"name": "Chivo",
+					"slug": "chivo",
 					"fontFace": [
 						{
-							"fontDisplay": "block",
 							"fontFamily": "Chivo",
-							"fontStretch": "normal",
-							"fontStyle": "normal",
+							"fontDisplay": "block",
 							"fontWeight": "100",
-							"src": [
-								"file:./assets/fonts/Chivo-Thin.woff2"
-							]
+							"fontStyle": "normal",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/Chivo-Thin.woff2" ]
 						},
 						{
-							"fontDisplay": "block",
 							"fontFamily": "Chivo",
-							"fontStretch": "normal",
-							"fontStyle": "normal",
+							"fontDisplay": "block",
 							"fontWeight": "400",
-							"src": [
-								"file:./assets/fonts/Chivo-Regular.woff2"
-							]
+							"fontStyle": "normal",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/Chivo-Regular.woff2" ]
 						},
 						{
-							"fontDisplay": "block",
 							"fontFamily": "Chivo",
-							"fontStretch": "normal",
-							"fontStyle": "normal",
+							"fontDisplay": "block",
 							"fontWeight": "700",
-							"src": [
-								"file:./assets/fonts/Chivo-Bold.woff2"
-							]
+							"fontStyle": "normal",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/Chivo-Bold.woff2" ]
 						},
 						{
-							"fontDisplay": "block",
 							"fontFamily": "Chivo",
-							"fontStretch": "normal",
-							"fontStyle": "italic",
+							"fontDisplay": "block",
 							"fontWeight": "100",
-							"src": [
-								"file:./assets/fonts/Chivo-ThinItalic.woff2"
-							]
+							"fontStyle": "italic",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/Chivo-ThinItalic.woff2" ]
 						},
 						{
-							"fontDisplay": "block",
 							"fontFamily": "Chivo",
-							"fontStretch": "normal",
-							"fontStyle": "italic",
+							"fontDisplay": "block",
 							"fontWeight": "400",
-							"src": [
-								"file:./assets/fonts/Chivo-Italic.woff2"
-							]
+							"fontStyle": "italic",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/Chivo-Italic.woff2" ]
 						},
 						{
-							"fontDisplay": "block",
 							"fontFamily": "Chivo",
-							"fontStretch": "normal",
-							"fontStyle": "italic",
+							"fontDisplay": "block",
 							"fontWeight": "700",
-							"src": [
-								"file:./assets/fonts/Chivo-BoldItalic.woff2"
-							]
+							"fontStyle": "italic",
+							"fontStretch": "normal",
+							"src": [ "file:./assets/fonts/Chivo-BoldItalic.woff2" ]
 						}
-					],
-					"fontFamily": "\"Chivo\", sans-serif",
-					"name": "Chivo",
-					"slug": "chivo"
+					]
 				}
 			],
 			"fontSizes": [
@@ -199,13 +188,13 @@
 						}
 					}
 				},
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--small)"
+				},
 				"spacing": {
 					"padding": {
 						"top": "var(--wp--custom--spacing--small)"
 					}
-				},
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 			},
 			"core/post-navigation-link": {
@@ -215,14 +204,19 @@
 					"textTransform": "uppercase"
 				}
 			},
+			"core/query-pagination": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--small)"
+				}
+			},
 			"core/pullquote": {
 				"border": {
 					"width": "0"
 				},
 				"spacing": {
 					"padding": {
-						"bottom": "var(--wp--custom--spacing--medium)",
-						"top": "var(--wp--custom--spacing--medium)"
+						"top": "var(--wp--custom--spacing--medium)",
+						"bottom": "var(--wp--custom--spacing--medium)"
 					}
 				},
 				"typography": {
@@ -230,11 +224,6 @@
 					"lineHeight": "1.2"
 				}
 			},
-			"core/query-pagination": {
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
-				}
-			},
 			"core/quote": {
 				"border": {
 					"width": "1px"
@@ -254,7 +243,7 @@
 			}
 		},
 		"color": {
-			"background": "var:preset|color|vivid-red",
+			"background": "var(--wp--preset--color--background)",
 			"text": "var(--wp--preset--color--foreground)"
 		},
 		"elements": {
@@ -296,20 +285,19 @@
 			"fontFamily": "var(--wp--preset--font-family--chivo)",
 			"fontSize": "var(--wp--preset--font-size--normal)",
 			"fontWeight": "400",
-			"lineHeight": "1.6"
+ 			"lineHeight": "1.6"
 		}
 	},
 	"templateParts": [
 		{
-			"area": "header",
 			"name": "header",
-			"title": "Header"
+			"title": "Header",
+			"area": "header"
 		},
 		{
-			"area": "footer",
 			"name": "footer",
-			"title": "Footer"
+			"title": "Footer",
+			"area": "footer"
 		}
-	],
-	"version": 2
-}
+	]
+}