diff --git a/tt1-blocks/assets/css/blocks.css b/tt1-blocks/assets/css/blocks.css index acd1a50..5bc21bf 100644 --- a/tt1-blocks/assets/css/blocks.css +++ b/tt1-blocks/assets/css/blocks.css @@ -1,8 +1,11 @@ + /*-------------------------------------------------------------- -# Cover +# Border, for backwards compatibility --------------------------------------------------------------*/ -.wp-block-cover.is-style-twentytwentyone-border { +.is-style-twentytwentyone-border, +.wp-block-image.is-style-twentytwentyone-border img, +.wp-block-image.is-style-twentytwentyone-image-frame img { border: 3px solid var(--wp--preset--color--dark-gray); } @@ -50,15 +53,6 @@ # Image --------------------------------------------------------------*/ -.wp-block-image img { - height: auto; -} - -.wp-block-image.is-style-twentytwentyone-border img, -.wp-block-image.is-style-twentytwentyone-image-frame img { - border: 3px solid var(--wp--preset--color--dark-gray); -} - .wp-block-image.is-style-twentytwentyone-image-frame img { padding: var(--wp--custom--spacing--unit); } @@ -137,14 +131,6 @@ margin-bottom: var(--wp--custom--spacing--horizontal); } -/*-------------------------------------------------------------- -# Media & Text ---------------------------------------------------------------*/ - -.wp-block-media-text.is-style-twentytwentyone-border { - border: 3px solid var(--wp--preset--color--dark-gray); -} - /*-------------------------------------------------------------- # Navigation --------------------------------------------------------------*/ @@ -160,42 +146,15 @@ # Separator --------------------------------------------------------------*/ -hr, -.wp-block-separator { +.wp-block-separator:not(.has-text-color) { border-bottom: 1px solid var(--wp--preset--color--dark-gray); - clear: both; - opacity: 1; -} - -hr[style*="text-align:right"], -hr[style*="text-align: right"], -.wp-block-separator[style*="text-align:right"], -.wp-block-separator[style*="text-align: right"] { - border-right-color: var(--wp--preset--color--dark-gray); } -hr.is-style-twentytwentyone-separator-thick, .wp-block-separator.is-style-twentytwentyone-separator-thick { border-bottom-width: 3px; } -.wp-block-separator.is-style-dots { - border-bottom: none; -} - -.wp-block-separator.is-style-dots > hr { - display: none; -} - /* In Twenty Twenty-One, separators are 100% wide. This replicates that approach */ .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { width: 100%; } - -/*-------------------------------------------------------------- -# Site Title ---------------------------------------------------------------*/ - -h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) { - text-decoration: none; -} diff --git a/tt1-blocks/assets/css/style-shared.css b/tt1-blocks/assets/css/style-shared.css index 1649321..a4277b1 100644 --- a/tt1-blocks/assets/css/style-shared.css +++ b/tt1-blocks/assets/css/style-shared.css @@ -24,13 +24,6 @@ a:hover { text-decoration-skip-ink: none; } -/* - * Gutenberg remotes this underline, but Twenty Twenty-One uses it. - */ -.site-header h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) { - text-decoration: underline; -} - /* * Alignment styles. * These rules are temporary, and should not be relied on or diff --git a/tt1-blocks/block-template-parts/footer.html b/tt1-blocks/block-template-parts/footer.html deleted file mode 100644 index 72a847a..0000000 --- a/tt1-blocks/block-template-parts/footer.html +++ /dev/null @@ -1,46 +0,0 @@ - -
- - - - -
-
-

example@example.com
T. +00 (0)1 22 33 44 55

-
- - -
-

2, Rue Louis-Boilly
Paris, France

-
- - -
- -
-
- - - - - - - -
- - - -
-
- - - -
-

Proudly powered by WordPress.

-
-
-
- diff --git a/tt1-blocks/block-template-parts/header.html b/tt1-blocks/block-template-parts/header.html deleted file mode 100644 index 8bd2b5a..0000000 --- a/tt1-blocks/block-template-parts/header.html +++ /dev/null @@ -1,25 +0,0 @@ - -
- - - - -
-
- -
- - - -
- - - -
-
- - - - -
- \ No newline at end of file diff --git a/tt1-blocks/block-templates/index.html b/tt1-blocks/block-templates/index.html deleted file mode 100644 index df3dc12..0000000 --- a/tt1-blocks/block-templates/index.html +++ /dev/null @@ -1,63 +0,0 @@ - - - -
- -
- - - -
- - -
- - - -
- - - - - -
- - - -
-
- -
- - - -
- -
-
- - - - - -
- - - - -
- - - - - - - -
- -
- -
- - - diff --git a/tt1-blocks/functions.php b/tt1-blocks/functions.php index 53f8f18..0514c9b 100644 --- a/tt1-blocks/functions.php +++ b/tt1-blocks/functions.php @@ -28,16 +28,6 @@ function tt1_blocks_setup() { * to change 'tt1-blocks' to the name of your theme in all the template files. */ load_theme_textdomain( 'tt1-blocks', get_template_directory() . '/languages' ); - - // Add default posts and comments RSS feed links to head. - add_theme_support( 'automatic-feed-links' ); - - /* - * Enable support for Post Thumbnails on posts and pages. - * - * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ - */ - add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 1568, 9999 ); // Add support for Block Styles. diff --git a/tt1-blocks/inc/block-patterns.php b/tt1-blocks/inc/block-patterns.php index 474aef0..3fd3d72 100644 --- a/tt1-blocks/inc/block-patterns.php +++ b/tt1-blocks/inc/block-patterns.php @@ -12,108 +12,7 @@ /** * Register Block Pattern Category. */ -if ( function_exists( 'register_block_pattern_category' ) ) { - - register_block_pattern_category( - 'tt1-blocks', - array( 'label' => esc_html__( 'TT1 Blocks', 'tt1-blocks' ) ) - ); -} - -/** - * Register Block Patterns. - */ -if ( function_exists( 'register_block_pattern' ) ) { - - // Large Text. - register_block_pattern( - 'tt1-blocks/large-text', - array( - 'title' => esc_html__( 'Large Text', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'viewportWidth' => 1440, - 'content' => '

' . esc_html__( 'A new portfolio default theme for WordPress', 'tt1-blocks' ) . '

', - ) - ); - - // Links Area. - register_block_pattern( - 'tt1-blocks/links-area', - array( - 'title' => esc_html__( 'Links Area', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'viewportWidth' => 1440, - 'description' => esc_html_x( 'A huge text followed by social networks and email address links.', 'Block pattern description', 'tt1-blocks' ), - 'content' => '

' . wp_kses_post( __( 'Let’s Connect.', 'tt1-blocks' ) ) . '

', - ) - ); - - // Media & Text Article Title. - register_block_pattern( - 'tt1-blocks/media-text-article-title', - array( - 'title' => esc_html__( 'Media and Text Article Title', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'viewportWidth' => 1440, - 'description' => esc_html_x( 'A Media & Text block with a big image on the left and a heading on the right. The heading is followed by a separator and a description paragraph.', 'Block pattern description', 'tt1-blocks' ), - 'content' => '
' . esc_attr__( '“Playing in the Sand” by Berthe Morisot', 'tt1-blocks' ) . '

' . esc_html__( 'Playing in the Sand', 'tt1-blocks' ) . '


' . wp_kses_post( __( 'Berthe Morisot
(French, 1841-1895)', 'tt1-blocks' ) ) . '

', - ) - ); - - // Overlapping Images. - register_block_pattern( - 'tt1-blocks/overlapping-images', - array( - 'title' => esc_html__( 'Overlapping Images', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'viewportWidth' => 1024, - 'description' => esc_html_x( 'Three images inside an overlapping columns block.', 'Block pattern description', 'tt1-blocks' ), - 'content' => '
' . esc_attr__( '“Roses Trémières” by Berthe Morisot', 'tt1-blocks' ) . '
' . esc_attr__( '“In the Bois de Boulogne” by Berthe Morisot', 'tt1-blocks' ) . '
' . esc_attr__( '“Young Woman in Mauve” by Berthe Morisot', 'tt1-blocks' ) . '
', - ) - ); - - // Two Images Showcase. - register_block_pattern( - 'tt1-blocks/two-images-showcase', - array( - 'title' => esc_html__( 'Two Images Showcase', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'viewportWidth' => 1440, - 'description' => esc_html_x( 'A Media & Text block with a big image on the left and a smaller one with bordered frame on the right.', 'Block pattern description', 'tt1-blocks' ), - 'content' => '
' . esc_attr__( '“Daffodils” by Berthe Morisot', 'tt1-blocks' ) . '
' . esc_attr__( '“Self portrait” by Berthe Morisot', 'tt1-blocks' ) . '
', - ) - ); - - // Overlapping Images and Text. - register_block_pattern( - 'tt1-blocks/overlapping-images-and-text', - array( - 'title' => esc_html__( 'Overlapping Images and Text', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'viewportWidth' => 1440, - 'description' => esc_html_x( 'An overlapping columns block with two images and a text description.', 'Block pattern description', 'tt1-blocks' ), - 'content' => '
' . esc_attr__( '“The Garden at Bougival” by Berthe Morisot', 'tt1-blocks' ) . '

' . esc_html__( 'Beautiful gardens painted by Berthe Morisot in the late 1800s', 'tt1-blocks' ) . '

' . esc_attr__( '“Villa with Orange Trees, Nice” by Berthe Morisot', 'tt1-blocks' ) . '
', - ) - ); - - // Portfolio List. - register_block_pattern( - 'tt1-blocks/portfolio-list', - array( - 'title' => esc_html__( 'Portfolio List', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'description' => esc_html_x( 'A list of projects with thumbnail images.', 'Block pattern description', 'tt1-blocks' ), - 'content' => '

' . esc_html__( 'Roses Trémières', 'tt1-blocks' ) . '

' . esc_attr__( '“Roses Trémières” by Berthe Morisot', 'tt1-blocks' ) . '

' . esc_html__( 'Villa with Orange Trees, Nice', 'tt1-blocks' ) . '

“Villa with Orange Trees, Nice” by Berthe Morisot

' . esc_html__( 'In the Bois de Boulogne', 'tt1-blocks' ) . '

' . esc_attr__( '“In the Bois de Boulogne” by Berthe Morisot', 'tt1-blocks' ) . '

' . esc_html__( 'The Garden at Bougival', 'tt1-blocks' ) . '

' . esc_attr__( '“The Garden at Bougival” by Berthe Morisot', 'tt1-blocks' ) . '

' . esc_html__( 'Young Woman in Mauve', 'tt1-blocks' ) . '

' . esc_attr__( '“Young Woman in Mauve” by Berthe Morisot', 'tt1-blocks' ) . '

' . esc_html__( 'Reading', 'tt1-blocks' ) . '

' . esc_attr__( '“Reading” by Berthe Morisot', 'tt1-blocks' ) . '

', - ) - ); - - register_block_pattern( - 'tt1-blocks/contact-information', - array( - 'title' => esc_html__( 'Contact Information', 'tt1-blocks' ), - 'categories' => array( 'tt1-blocks' ), - 'description' => esc_html_x( 'A block with 3 columns that display contact information and social media links.', 'Block pattern description', 'tt1-blocks' ), - 'content' => '

' . esc_html__( 'example@example.com', 'tt1-blocks' ) . '
' . esc_html__( '123-456-7890', 'tt1-blocks' ) . '

' . esc_html__( '123 Main Street', 'tt1-blocks' ) . '
' . esc_html__( 'Cambridge, MA, 02139', 'tt1-blocks' ) . '

', - ) - ); -} +register_block_pattern_category( + 'tt1-blocks', + array( 'label' => esc_html__( 'TT1 Blocks', 'tt1-blocks' ) ) +); diff --git a/tt1-blocks/index.php b/tt1-blocks/index.php index e3d90ad..41f500e 100644 --- a/tt1-blocks/index.php +++ b/tt1-blocks/index.php @@ -1,11 +1,3 @@ +
+ + + + + +
+ +
+ +

Categories

+ + +
+ + +
+

2, Rue Louis-Boilly
Paris, France

+
+ + +
+
+ +
+ + + +
+ +
+ + + +
+ + + +
+ +
+ +
+ + +
+ +

Proudly powered by WordPress.

+ +
+ +
+ +
+ diff --git a/tt1-blocks/parts/header.html b/tt1-blocks/parts/header.html new file mode 100644 index 0000000..751ba4e --- /dev/null +++ b/tt1-blocks/parts/header.html @@ -0,0 +1,26 @@ + +
+ + + + + +
+ +
+ + +
+ + +
+ +
+
+ + + + + +
+ diff --git a/tt1-blocks/patterns/contact-information.php b/tt1-blocks/patterns/contact-information.php new file mode 100644 index 0000000..ebc5bb4 --- /dev/null +++ b/tt1-blocks/patterns/contact-information.php @@ -0,0 +1,40 @@ + +
+ +
+


+

+
+
+ +


+

+ +
+ +
+ + + +
+
diff --git a/tt1-blocks/patterns/large-text.php b/tt1-blocks/patterns/large-text.php new file mode 100644 index 0000000..1269293 --- /dev/null +++ b/tt1-blocks/patterns/large-text.php @@ -0,0 +1,17 @@ + + +

+ +

diff --git a/tt1-blocks/patterns/links-area.php b/tt1-blocks/patterns/links-area.php new file mode 100644 index 0000000..be58755 --- /dev/null +++ b/tt1-blocks/patterns/links-area.php @@ -0,0 +1,38 @@ + + +
+
+ +

+ + +
+ +
+

/ /

+
+ +
+

+
+ +
+ + +
+
+ diff --git a/tt1-blocks/patterns/media-text-article.php b/tt1-blocks/patterns/media-text-article.php new file mode 100644 index 0000000..0444a29 --- /dev/null +++ b/tt1-blocks/patterns/media-text-article.php @@ -0,0 +1,24 @@ + + + +
+
<?php esc_attr_e( '“Playing in the Sand” by Berthe Morisot', 'tt1-blocks' ); ?>
+

+
+ + +

(French, 1841-1895)', 'tt1-blocks' ) ); ?>

+
+
diff --git a/tt1-blocks/patterns/overlapping-images-and-text.php b/tt1-blocks/patterns/overlapping-images-and-text.php new file mode 100644 index 0000000..f0dbc31 --- /dev/null +++ b/tt1-blocks/patterns/overlapping-images-and-text.php @@ -0,0 +1,37 @@ + + +
+ +
+
<?php esc_attr_e( '“The Garden at Bougival” by Berthe Morisot', 'tt1-blocks' ); ?>
+ +
+ +
+ +
+
+ +

+
+
+
+ +
+
<?php esc_attr_e( '“Villa with Orange Trees, Nice” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+
+ diff --git a/tt1-blocks/patterns/overlapping-images.php b/tt1-blocks/patterns/overlapping-images.php new file mode 100644 index 0000000..9e33662 --- /dev/null +++ b/tt1-blocks/patterns/overlapping-images.php @@ -0,0 +1,31 @@ + +
+ +
+
+ <?php esc_attr_e( '“Roses Trémières” by Berthe Morisot', 'tt1-blocks' ); ?> +
+ +
<?php esc_attr_e( '“In the Bois de Boulogne” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+ +
+ +
+ <?php esc_attr_e( '“Young Woman in Mauve” by Berthe Morisot', 'tt1-blocks' ); ?>
+ +
+
diff --git a/tt1-blocks/patterns/portfolio-list.php b/tt1-blocks/patterns/portfolio-list.php new file mode 100644 index 0000000..ce81009 --- /dev/null +++ b/tt1-blocks/patterns/portfolio-list.php @@ -0,0 +1,101 @@ + + +
+ + +
+ +
+

+
+ +
+ +
<?php esc_attr_e( '“Roses Trémières” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+ +
+ +
+ + +
+ +
+

+
+ +
+
<?php esc_attr_e( '“Villa with Orange Trees, Nice” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+ +
+ +
+ +
+ +
+

+
+ +
+
<?php esc_attr_e( '“In the Bois de Boulogne” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+ +
+ + +
+ +
+ +
+

+
+ +
+
<?php esc_attr_e( '“The Garden at Bougival” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+ +
+ +
+ +
+ +
+

+
+ +
+ +
<?php esc_attr_e( '“Young Woman in Mauve” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+
+
+ +
+ +
+

+
+ + +
+
<?php esc_attr_e( '“Reading” by Berthe Morisot', 'tt1-blocks' ); ?>
+
+
+
diff --git a/tt1-blocks/patterns/two-images.php b/tt1-blocks/patterns/two-images.php new file mode 100644 index 0000000..5d39a02 --- /dev/null +++ b/tt1-blocks/patterns/two-images.php @@ -0,0 +1,17 @@ + +
<?php esc_attr_e( '“Daffodils” by Berthe Morisot', 'tt1-blocks' ); ?>
+
<?php esc_attr_e( '“Self portrait” by Berthe Morisot', 'tt1-blocks' ); ?>
+
diff --git a/tt1-blocks/readme.txt b/tt1-blocks/readme.txt index f030bdf..887956b 100644 --- a/tt1-blocks/readme.txt +++ b/tt1-blocks/readme.txt @@ -1,9 +1,8 @@ === TT1 Blocks === Contributors: wordpressdotorg -Requires at least: 5.6 -Tested up to: 5.8 +Requires at least: 6.0 +Tested up to: 6.0 Requires PHP: 5.6 -Stable tag: 0.4.8 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/tt1-blocks/style.css b/tt1-blocks/style.css index a13dd86..0a80d50 100644 --- a/tt1-blocks/style.css +++ b/tt1-blocks/style.css @@ -4,10 +4,10 @@ Theme URI: https://github.com/WordPress/theme-experiments/tree/master/tt1-blocks Author: the WordPress team Author URI: https://wordpress.org/ Description: TT1 Blocks is an experimental block-based version of the Twenty Twenty-One theme. It is built to leverage the full-site editing functionality that is being built in the Gutenberg plugin. This theme is not meant for use on a production site. -Requires at least: 5.6 -Tested up to: 5.8 +Requires at least: 6.0 +Tested up to: 6.0 Requires PHP: 5.6 -Version: 0.4.8 +Version: 1.0.0 License: GNU General Public License v2 or later License URI: LICENSE Text Domain: tt1-blocks @@ -16,11 +16,3 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature TT1 Blocks WordPress Theme, (C) 2020 WordPress.org TT1 Blocks is distributed under the terms of the GNU GPL. */ - -/*-------------------------------------------------------------- -# Defaults ---------------------------------------------------------------*/ - -body { - margin: 0; -} diff --git a/tt1-blocks/block-templates/404.html b/tt1-blocks/templates/404.html similarity index 100% rename from tt1-blocks/block-templates/404.html rename to tt1-blocks/templates/404.html diff --git a/tt1-blocks/templates/archive.html b/tt1-blocks/templates/archive.html new file mode 100644 index 0000000..4e2bab6 --- /dev/null +++ b/tt1-blocks/templates/archive.html @@ -0,0 +1,54 @@ + + + +
+ +
+ + +
+ + +
+ + +
+ +
+ +

Published

+ + +
+ + + + + + + + + +
+ + + + +
+ + + +
+ + + + + +
+ +
+ +
+ + + diff --git a/tt1-blocks/templates/index.html b/tt1-blocks/templates/index.html new file mode 100644 index 0000000..4e2bab6 --- /dev/null +++ b/tt1-blocks/templates/index.html @@ -0,0 +1,54 @@ + + + +
+ +
+ + +
+ + +
+ + +
+ +
+ +

Published

+ + +
+ + + + + + + + + +
+ + + + +
+ + + +
+ + + + + +
+ +
+ +
+ + + diff --git a/tt1-blocks/block-templates/page-home.html b/tt1-blocks/templates/page-without-title.html similarity index 100% rename from tt1-blocks/block-templates/page-home.html rename to tt1-blocks/templates/page-without-title.html diff --git a/tt1-blocks/theme.json b/tt1-blocks/theme.json index c30630a..5e16533 100644 --- a/tt1-blocks/theme.json +++ b/tt1-blocks/theme.json @@ -1,13 +1,9 @@ { - "version": 1, - "templateParts": [ - { - "name": "header", - "area": "header" - }, + "version": 2, + "customTemplates": [ { - "name": "footer", - "area": "footer" + "name": "page-without-title", + "title": "Page without title" } ], "settings": { @@ -108,6 +104,24 @@ } ] }, + "custom": { + "font-primary": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif", + "line-height": { + "body": 1.7, + "heading": 1.3, + "page-title": 1.1 + }, + "spacing": { + "unit": "20px", + "horizontal": "25px", + "vertical": "30px", + "outer": "calc(0.6 * var(--wp--custom--spacing--horizontal))" + }, + "font-weight":{ + "light": "300", + "normal": "normal" + } + }, "layout": { "contentSize": "610px", "wideSize": "1240px" @@ -173,88 +187,10 @@ "slug": "hoefler-times-new-roman" } ] - }, - "custom": { - "font-primary": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif", - "line-height": { - "body": 1.7, - "heading": 1.3, - "page-title": 1.1 - }, - "spacing": { - "unit": "20px", - "horizontal": "25px", - "vertical": "30px", - "outer": "calc(0.6 * var(--wp--custom--spacing--horizontal))" - }, - "font-weight":{ - "light": "300", - "normal": "normal" - } } }, "styles": { - "color": { - "background": "var(--wp--preset--color--green)", - "text": "var(--wp--preset--color--dark-gray)" - }, - "typography": { - "fontSize": "var(--wp--preset--font-size--normal)", - "lineHeight": "var(--wp--custom--line-height--body)" - }, - "elements": { - "link": { - "color": { - "text": "var(--wp--preset--color--dark-gray)" - } - }, - "h1": { - "typography": { - "fontSize": "var(--wp--preset--font-size--gigantic)", - "lineHeight": "var(--wp--custom--line-height--page-title)", - "fontWeight": "var(--wp--custom--font-weight--normal)" - } - }, - "h2": { - "typography": { - "fontSize": "var(--wp--preset--font-size--extra-large)", - "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--normal)" - } - }, - "h3": { - "typography": { - "fontSize": "calc(1.25 * var(--wp--preset--font-size--large))", - "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--normal)" - } - }, - "h4": { - "typography": { - "fontSize": "var(--wp--preset--font-size--large)", - "lineHeight": "var(--wp--custom--line-height--heading)" - } - }, - "h5": { - "typography": { - "fontSize": "var(--wp--preset--font-size--small)", - "lineHeight": "var(--wp--custom--line-height--heading)" - } - }, - "h6": { - "typography": { - "fontSize": "var(--wp--preset--font-size--extra-small)", - "lineHeight": "var(--wp--custom--line-height--heading)" - } - } - }, "blocks": { - "core/site-tagline": { - "typography": { - "fontSize": "var(--wp--preset--font-size--small)", - "lineHeight": 1.4 - } - }, "core/button": { "border": { "radius": "0px" @@ -268,6 +204,22 @@ "fontWeight": 500 } }, + "core/code": { + "spacing": { + "padding": { + "top": "var(--wp--custom--spacing--unit)", + "bottom": "var(--wp--custom--spacing--unit)", + "left": "var(--wp--custom--spacing--unit)", + "right": "var(--wp--custom--spacing--unit)" + } + }, + "border": { + "radius": "0px", + "color": "var(--wp--preset--color--dark-gray)", + "style": "solid", + "width": "1.5px" + } + }, "core/comment-author-name": { "typography": { "fontSize": "var(--wp--preset--font-size--small)" @@ -326,6 +278,10 @@ } }, "core/site-tagline": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "lineHeight": 1.4 + }, "spacing": { "margin": { "top": "0", @@ -339,29 +295,73 @@ "fontWeight": "var(--wp--custom--font-weight--normal)", "textTransform": "uppercase" } + } + }, + "color": { + "background": "var(--wp--preset--color--green)", + "text": "var(--wp--preset--color--dark-gray)" + }, + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--dark-gray)" + } }, - "core/code": { - "spacing": { - "padding": { - "top": "var(--wp--custom--spacing--unit)", - "bottom": "var(--wp--custom--spacing--unit)", - "left": "var(--wp--custom--spacing--unit)", - "right": "var(--wp--custom--spacing--unit)" - } - }, - "border": { - "radius": "0px", - "color": "var(--wp--preset--color--dark-gray)", - "style": "solid", - "width": "1.5px" + "h1": { + "typography": { + "fontSize": "var(--wp--preset--font-size--gigantic)", + "lineHeight": "var(--wp--custom--line-height--page-title)", + "fontWeight": "var(--wp--custom--font-weight--normal)" + } + }, + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--extra-large)", + "lineHeight": "var(--wp--custom--line-height--heading)", + "fontWeight": "var(--wp--custom--font-weight--normal)" + } + }, + "h3": { + "typography": { + "fontSize": "calc(1.25 * var(--wp--preset--font-size--large))", + "lineHeight": "var(--wp--custom--line-height--heading)", + "fontWeight": "var(--wp--custom--font-weight--normal)" + } + }, + "h4": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "lineHeight": "var(--wp--custom--line-height--heading)" + } + }, + "h5": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "lineHeight": "var(--wp--custom--line-height--heading)" + } + }, + "h6": { + "typography": { + "fontSize": "var(--wp--preset--font-size--extra-small)", + "lineHeight": "var(--wp--custom--line-height--heading)" } } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)", + "lineHeight": "var(--wp--custom--line-height--body)" } }, - "customTemplates": [ + "templateParts": [ { - "name": "page-home", - "title": "Page without title" + "name": "header", + "area": "header", + "title": "Header" + }, + { + "name": "footer", + "area": "footer", + "title": "Footer" } ] -} \ No newline at end of file +}