Explorar el Código

Bibimbap: minor tweaks for the release (#6839)

Madhu Dollu hace 2 años
padre
commit
c44daa8f21
Se han modificado 3 ficheros con 60 adiciones y 72 borrados
  1. 2 2
      bibimbap/readme.txt
  2. 5 12
      bibimbap/style.css
  3. 53 58
      bibimbap/theme.json

+ 2 - 2
bibimbap/readme.txt

@@ -4,7 +4,7 @@ Requires at least: 6.1
 Tested up to: 6.1
 Requires PHP: 5.7
 License: GPLv2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
+License URI: https://www.gnu.org/licenses/gpl-2.0.html
 
 == Description ==
 
@@ -17,7 +17,7 @@ A simple and fun restaurant theme.
 
 == Copyright ==
 
-Bibimbap WordPress Theme, (C) 2022 Automattic
+Bibimbap WordPress Theme, (C) 2023 Automattic
 Bibimbap is distributed under the terms of the GNU GPL.
 
 This program is free software: you can redistribute it and/or modify

+ 5 - 12
bibimbap/style.css

@@ -1,26 +1,19 @@
 /*
 Theme Name: Bibimbap
-Theme URI: 
+Theme URI: https://github.com/automattic/themes/tree/trunk/bibimbap
 Author: Automattic
 Author URI: https://automattic.com
 Description: A simple and fun restaurant theme.
 Requires at least: 6.1
 Tested up to: 6.1
 Requires PHP: 5.7
-Version: 0.0.1
+Version: 1.0.0
 License: GNU General Public License v2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
+License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Template: 
 Text Domain: bibimbap
-Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
-*//*
- * Font smoothing
- * https://github.com/WordPress/gutenberg/issues/35934
- */
-body {
-	-moz-osx-font-smoothing: grayscale;
-	-webkit-font-smoothing: antialiased;
-}
+Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, food-and-drink
+*/
 
 /*
  * Control the hover stylings of outline block style.

+ 53 - 58
bibimbap/theme.json

@@ -139,7 +139,7 @@
 		"blocks": {
 			"core/button": {
 				"border": {
-					"radius": "0px"
+					"radius": "0"
 				},
 				"spacing": {
 					"padding": {
@@ -161,17 +161,17 @@
 			},
 			"core/code": {
 				"border": {
-					"color": "var(--wp--preset--color--primary)",
+					"color": "var:preset|color|primary",
 					"radius": "0.25rem",
 					"style": "solid",
 					"width": "2px"
 				},
 				"spacing": {
 					"padding": {
-						"bottom": "var(--wp--preset--spacing--50)",
-						"left": "var(--wp--preset--spacing--50)",
-						"right": "var(--wp--preset--spacing--50)",
-						"top": "var(--wp--preset--spacing--50)"
+						"bottom": "var:preset|spacing|50",
+						"left": "var:preset|spacing|50",
+						"right": "var:preset|spacing|50",
+						"top": "var:preset|spacing|50"
 					}
 				},
 				"typography": {
@@ -180,35 +180,35 @@
 			},
 			"core/comment-author-name": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
+					"fontSize": "var:preset|font-size|small"
 				}
 			},
 			"core/comment-date": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
+					"fontSize": "var:preset|font-size|small"
 				}
 			},
 			"core/comment-edit-link": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
+					"fontSize": "var:preset|font-size|small"
 				}
 			},
 			"core/comment-reply-link": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
+					"fontSize": "var:preset|font-size|small"
 				}
 			},
 			"core/gallery": {
 				"spacing": {
 					"margin": {
-						"bottom": "var(--wp--preset--spacing--50)"
+						"bottom": "var:preset|spacing|50"
 					}
 				}
 			},
 			"core/list": {
 				"spacing": {
 					"padding": {
-						"left": "var(--wp--preset--spacing--70)"
+						"left": "var:preset|spacing|70"
 					}
 				}
 			},
@@ -240,7 +240,7 @@
 					"fontSize": "var:preset|font-size|medium",
 					"fontStyle": "normal",
 					"fontWeight": "600",
-					"letterSpacing": "0px",
+					"letterSpacing": "0",
 					"textTransform": "uppercase"
 				}
 			},
@@ -266,7 +266,7 @@
 			},
 			"core/post-date": {
 				"color": {
-					"text": "var(--wp--preset--color--primary)"
+					"text": "var:preset|color|primary"
 				},
 				"elements": {
 					"link": {
@@ -281,7 +281,7 @@
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
+					"fontSize": "var:preset|font-size|small"
 				}
 			},
 			"core/post-title": {
@@ -306,24 +306,24 @@
 			"core/pullquote": {
 				"border": {
 					"bottom": {
-						"color": "#c74200",
+						"color": "var:preset|color|secondary",
 						"style": "solid",
 						"width": "20px"
 					},
-					"color": "var(--wp--preset--color--primary)",
+					"color": "var:preset|color|primary",
 					"left": {
-						"color": "#c74200",
+						"color": "var:preset|color|secondary",
 						"style": "solid",
 						"width": "20px"
 					},
 					"right": {
-						"color": "#c74200",
+						"color": "var:preset|color|secondary",
 						"style": "solid",
 						"width": "20px"
 					},
 					"style": "solid",
 					"top": {
-						"color": "#c74200",
+						"color": "var:preset|color|secondary",
 						"style": "solid",
 						"width": "20px"
 					},
@@ -336,7 +336,7 @@
 				"elements": {
 					"heading": {
 						"color": {
-							"text": "#ffffff"
+							"text": "var:preset|color|background"
 						}
 					},
 					"link": {
@@ -347,10 +347,10 @@
 				},
 				"spacing": {
 					"padding": {
-						"bottom": "var(--wp--preset--spacing--50)",
-						"left": "var(--wp--preset--spacing--50)",
-						"right": "var(--wp--preset--spacing--50)",
-						"top": "var(--wp--preset--spacing--50)"
+						"bottom": "var:preset|spacing|50",
+						"left": "var:preset|spacing|50",
+						"right": "var:preset|spacing|50",
+						"top": "var:preset|spacing|50"
 					}
 				},
 				"typography": {
@@ -371,13 +371,13 @@
 			},
 			"core/quote": {
 				"border": {
-					"color": "var(--wp--preset--color--primary)",
+					"color": "var:preset|color|primary",
 					"style": "solid",
 					"width": "0 0 0 1px"
 				},
 				"spacing": {
 					"padding": {
-						"left": "var(--wp--preset--spacing--50)"
+						"left": "var:preset|spacing|50"
 					}
 				},
 				"typography": {
@@ -388,24 +388,24 @@
 				"border": {
 					"bottom": {
 						"style": "none",
-						"width": "0px"
+						"width": "0"
 					},
 					"left": {
 						"style": "none",
-						"width": "0px"
+						"width": "0"
 					},
-					"radius": "0px",
+					"radius": "0",
 					"right": {
 						"style": "none",
-						"width": "0px"
+						"width": "0"
 					},
 					"top": {
 						"style": "none",
-						"width": "0px"
+						"width": "0"
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--medium)",
+					"fontSize": "var:preset|font-size|medium",
 					"lineHeight": "1.6"
 				}
 			},
@@ -416,7 +416,7 @@
 					"width": "0 0 1px 0"
 				},
 				"color": {
-					"text": "var(--wp--preset--color--primary)"
+					"text": "var:preset|color|primary"
 				}
 			},
 			"core/site-tagline": {
@@ -440,77 +440,71 @@
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--medium)",
+					"fontSize": "var:preset|font-size|medium",
 					"fontWeight": "700"
 				}
 			}
 		},
 		"color": {
-			"background": "var(--wp--preset--color--background)",
-			"text": "var(--wp--preset--color--primary)"
+			"background": "var:preset|color|background",
+			"text": "var:preset|color|primary"
 		},
 		"elements": {
 			"button": {
 				":active": {
 					"color": {
-						"background": "var(--wp--preset--color--primary)",
-						"text": "var(--wp--preset--color--background)"
+						"background": "var:preset|color|primary",
+						"text": "var:preset|color|background"
 					}
 				},
 				":focus": {
 					"color": {
-						"background": "var(--wp--preset--color--primary)",
-						"text": "var(--wp--preset--color--background)"
+						"background": "var:preset|color|primary",
+						"text": "var:preset|color|background"
 					}
 				},
 				":hover": {
 					"color": {
-						"background": "var(--wp--preset--color--secondary)",
-						"text": "var(--wp--preset--color--background)"
+						"background": "var:preset|color|secondary",
+						"text": "var:preset|color|background"
 					}
 				},
 				"border": {
 					"radius": "0.25rem"
 				},
 				"color": {
-					"background": "#c74200",
+					"background": "var:preset|color|secondary",
 					"text": "var:preset|color|background"
 				}
 			},
 			"h1": {
 				"typography": {
-					"fontSize": "72px",
-					"textTransform": "uppercase"
+					"fontSize": "4.5rem"
 				}
 			},
 			"h2": {
 				"typography": {
-					"fontSize": "32px",
-					"textTransform": "uppercase"
+					"fontSize": "2rem"
 				}
 			},
 			"h3": {
 				"typography": {
-					"fontSize": "24px",
-					"textTransform": "uppercase"
+					"fontSize": "1.5rem"
 				}
 			},
 			"h4": {
 				"typography": {
-					"fontSize": "20px",
-					"textTransform": "uppercase"
+					"fontSize": "1.25rem"
 				}
 			},
 			"h5": {
 				"typography": {
-					"fontSize": "16px",
-					"textTransform": "uppercase"
+					"fontSize": "1rem"
 				}
 			},
 			"h6": {
 				"typography": {
-					"fontSize": "14px",
-					"textTransform": "uppercase"
+					"fontSize": "0.875rem"
 				}
 			},
 			"heading": {
@@ -519,7 +513,8 @@
 					"fontStyle": "normal",
 					"fontWeight": "600",
 					"letterSpacing": "0.04em",
-					"lineHeight": 1.2
+					"lineHeight": "1.2",
+					"textTransform": "uppercase"
 				}
 			},
 			"link": {
@@ -547,7 +542,7 @@
 		},
 		"typography": {
 			"fontFamily": "var:preset|font-family|cooper-hewitt",
-			"fontSize": "var(--wp--preset--font-size--medium)",
+			"fontSize": "var:preset|font-size|medium",
 			"fontStyle": "normal",
 			"fontWeight": "300",
 			"lineHeight": "1.6"