Twenty Twenty-Two: Add three style variations.

This commit adds three style variations to Twenty Twenty-Two, allowing users to quickly swap between different visual styles — "Blue", "Pink", and "Swiss" — for the default theme. The variations are previewed and selected from the Site Editor's global styles panel. 

For the implementation, each variation is defined by its own theme.json file within the "/styles" directory of the theme. All variations leverage the internal-only theme.json handler of the Webfonts API [53282] to load locally hosted fonts.

Props kjellr, hellofromtonya.
See #55433.

Built from https://develop.svn.wordpress.org/trunk@53286


git-svn-id: http://core.svn.wordpress.org/trunk@52875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
jffng 2022-04-26 15:26:11 +00:00
parent 39b11dd1f7
commit dac4e3be11
30 changed files with 855 additions and 91 deletions

View File

@ -0,0 +1,94 @@
Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com). Copyright 2019 Google LLC.
Copyright 2014-2018 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. Copyright 2019 Google LLC.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -0,0 +1,93 @@
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -0,0 +1,94 @@
Copyright (c) 2016-2020 The Inter Project Authors.
"Inter" is trademark of Rasmus Andersson.
https://github.com/rsms/inter
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION AND CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -54,9 +54,6 @@ if ( ! function_exists( 'twentytwentytwo_styles' ) ) :
$version_string
);
// Add styles inline.
wp_add_inline_style( 'twentytwentytwo-style', twentytwentytwo_get_font_face_styles() );
// Enqueue theme stylesheet.
wp_enqueue_style( 'twentytwentytwo-style' );
@ -66,86 +63,5 @@ endif;
add_action( 'wp_enqueue_scripts', 'twentytwentytwo_styles' );
if ( ! function_exists( 'twentytwentytwo_editor_styles' ) ) :
/**
* Enqueue editor styles.
*
* @since Twenty Twenty-Two 1.0
*
* @return void
*/
function twentytwentytwo_editor_styles() {
// Add styles inline.
wp_add_inline_style( 'wp-block-library', twentytwentytwo_get_font_face_styles() );
}
endif;
add_action( 'admin_init', 'twentytwentytwo_editor_styles' );
if ( ! function_exists( 'twentytwentytwo_get_font_face_styles' ) ) :
/**
* Get font face styles.
* Called by functions twentytwentytwo_styles() and twentytwentytwo_editor_styles() above.
*
* @since Twenty Twenty-Two 1.0
*
* @return string
*/
function twentytwentytwo_get_font_face_styles() {
return "
@font-face{
font-family: 'Source Serif Pro';
font-weight: 200 900;
font-style: normal;
font-stretch: normal;
font-display: swap;
src: url('" . get_theme_file_uri( 'assets/fonts/SourceSerif4Variable-Roman.ttf.woff2' ) . "') format('woff2');
}
@font-face{
font-family: 'Source Serif Pro';
font-weight: 200 900;
font-style: italic;
font-stretch: normal;
font-display: swap;
src: url('" . get_theme_file_uri( 'assets/fonts/SourceSerif4Variable-Italic.ttf.woff2' ) . "') format('woff2');
}
";
}
endif;
if ( ! function_exists( 'twentytwentytwo_preload_webfonts' ) ) :
/**
* Preloads the main web font to improve performance.
*
* Only the main web font (font-style: normal) is preloaded here since that font is always relevant (it is used
* on every heading, for example). The other font is only needed if there is any applicable content in italic style,
* and therefore preloading it would in most cases regress performance when that font would otherwise not be loaded
* at all.
*
* @since Twenty Twenty-Two 1.0
*
* @return void
*/
function twentytwentytwo_preload_webfonts() {
?>
<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/SourceSerif4Variable-Roman.ttf.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
<?php
}
endif;
add_action( 'wp_head', 'twentytwentytwo_preload_webfonts' );
// Add block patterns
require get_template_directory() . '/inc/block-patterns.php';

View File

@ -3,7 +3,7 @@
<div class="wp-block-group alignwide" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"width":64} /-->
<!-- wp:site-title {"style":{"typography":{"fontStyle":"italic","fontWeight":"400"}}} /--></div>
<!-- wp:site-title /--></div>
<!-- /wp:group -->
<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->

View File

@ -1,9 +1,9 @@
=== Twenty Twenty-Two ===
Contributors: wordpressdotorg
Requires at least: 5.9
Tested up to: 5.9
Tested up to: 6.0
Requires PHP: 5.6
Stable tag: 1.1
Stable tag: 1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -17,6 +17,11 @@ Whether youre building a single-page website, a blog, a business website, or
== Changelog ==
= 1.2 =
* Released: May 24, 2022
https://wordpress.org/support/article/twenty-twenty-two-changelog#Version_1.2
= 1.1 =
* Released: February 22, 2022
@ -44,6 +49,23 @@ GNU General Public License for more details.
This theme bundles the following third-party resources:
DM Sans Font
Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com)
Copyright 2019 Google LLC
Copyright 2014-2018 Adobe (http://www.adobe.com/)
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: https://github.com/googlefonts/dm-fonts
IBM Plex Font
Copyright 2017 IBM Corp.
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: https://github.com/IBM/plex
Inter Font
Copyright (c) 2016-2020 The Inter Project Authors.
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: https://github.com/rsms/inter
Source Serif Font
Copyright 2014-2021 Adobe (http://www.adobe.com/)
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1

View File

@ -5,9 +5,9 @@ Author: the WordPress team
Author URI: https://wordpress.org/
Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The themes subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Full Site Editing features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether youre building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours.
Requires at least: 5.9
Tested up to: 5.9
Tested up to: 6.0
Requires PHP: 5.6
Version: 1.1
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentytwo

View File

@ -0,0 +1,146 @@
{
"version": 2,
"title": "Blue",
"settings": {
"color": {
"palette": [
{
"slug": "foreground",
"color": "#FCF5ED",
"name": "Foreground"
},
{
"slug": "background",
"color": "#3F67C6",
"name": "Background"
},
{
"slug": "primary",
"color": "#FFFFFF",
"name": "Primary"
},
{
"slug": "secondary",
"color": "#3556A5",
"name": "Secondary"
},
{
"slug": "tertiary",
"color": "#374C80",
"name": "Tertiary"
}
]
},
"custom": {
"spacing": {
"small": "max(1rem, 4vw)",
"medium": "clamp(1rem, 8vw, calc(2 * var(--wp--style--block-gap)))",
"large": "clamp(2rem, 10vw, 6rem)",
"outer": "var(--wp--custom--spacing--small, 1rem)"
},
"typography": {
"font-size": {
"huge": "clamp(2rem, 4vw, 2.25rem)",
"gigantic": "clamp(2.25rem, 6vw, 2.75rem)",
"colossal": "clamp(2.75rem, 10vw, 5rem)"
}
}
},
"layout": {
"contentSize": "660px",
"wideSize": "1220px"
},
"typography": {
"fontFamilies": [
{
"fontFamily": "\"DM Sans\", sans-serif",
"name": "DM Sans",
"slug": "dm-sans",
"fontFace": [
{
"fontFamily": "DM Sans",
"fontWeight": "400",
"fontStyle": "normal",
"src": [ "file:./assets/fonts/dm-sans/DMSans-Regular.ttf" ]
},
{
"fontFamily": "DM Sans",
"fontWeight": "400",
"fontStyle": "italic",
"src": [ "file:./assets/fonts/dm-sans/DMSans-Italic.ttf" ]
},
{
"fontFamily": "DM Sans",
"fontWeight": "700",
"fontStyle": "normal",
"src": [ "file:./assets/fonts/dm-sans/DMSans-Bold.ttf" ]
},
{
"fontFamily": "DM Sans",
"fontWeight": "700",
"fontStyle": "italic",
"src": [ "file:./assets/fonts/dm-sans/DMSans-BoldItalic.ttf" ]
}
]
}
]
}
},
"styles": {
"blocks": {
"core/post-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontSize": "var(--wp--custom--typography--font-size--colossal)",
"fontWeight": "700"
}
},
"core/site-title": {
"typography": {
"fontStyle":"normal"
}
}
},
"elements": {
"h1": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontWeight": "700"
}
},
"h2": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontWeight": "700"
}
},
"h3": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontWeight": "700"
}
},
"h4": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontWeight": "700"
}
},
"h5": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontWeight": "700"
}
},
"h6": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontWeight": "700"
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)"
}
}
}

View File

@ -0,0 +1,215 @@
{
"version": 2,
"title": "Pink",
"settings": {
"color": {
"palette": [
{
"slug": "foreground",
"color": "#CA2315",
"name": "Foreground"
},
{
"slug": "background",
"color": "#FFF6F6",
"name": "Background"
},
{
"slug": "primary",
"color": "#000000",
"name": "Primary"
},
{
"slug": "secondary",
"color": "#FFFFFF",
"name": "Secondary"
},
{
"slug": "tertiary",
"color": "#F5F5F5",
"name": "Tertiary"
}
]
},
"custom": {
"spacing": {
"small": "max(0.75rem, 4vw)",
"medium": "clamp(1.75rem, 6vw, calc(1.5 * var(--wp--style--block-gap)))",
"large": "clamp(3rem, 8vw, 5rem)",
"outer": "var(--wp--custom--spacing--small, 0.75rem)"
},
"typography": {
"font-size": {
"huge": "clamp(2rem, 4vw, 2.25rem)",
"gigantic": "clamp(2.25rem, 6vw, 2.75rem)",
"colossal": "clamp(2.75rem, 8vw, 3.25rem)"
}
},
"line-height": {
"normal": 1.7
}
},
"typography": {
"fontFamilies": [
{
"fontFamily": "\"IBM Plex Sans\", sans-serif",
"name": "IBM Plex Sans",
"slug": "ibm-plex-sans",
"fontFace": [
{
"fontFamily": "IBM Plex Sans",
"fontWeight": "400",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-Light.woff2" ]
},
{
"fontFamily": "IBM Plex Sans",
"fontWeight": "400",
"fontStyle": "italic",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-LightItalic.woff2" ]
},
{
"fontFamily": "IBM Plex Sans",
"fontWeight": "200",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-ExtraLight.woff2" ]
},
{
"fontFamily": "IBM Plex Sans",
"fontWeight": "200",
"fontStyle": "italic",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-ExtraLightItalic.woff2" ]
}
]
},
{
"fontFamily": "\"IBM Plex Mono\", monospace",
"name": "IBM Plex Mono",
"slug": "ibm-plex-mono",
"fontFace": [
{
"fontFamily": "IBM Plex Mono",
"fontWeight": "400",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexMono-Text.woff2" ]
},
{
"fontFamily": "IBM Plex Mono",
"fontWeight": "400",
"fontStyle": "italic",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexMono-TextItalic.woff2" ]
},
{
"fontFamily": "IBM Plex Mono",
"fontWeight": "700",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexMono-Bold.woff2" ]
},
{
"fontFamily": "IBM Plex Mono",
"fontWeight": "700",
"fontStyle": "italic",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-BoldItalic.woff2" ]
}
]
}
],
"fontSizes": [
{
"size": "0.875rem",
"slug": "small"
},
{
"size": "1rem",
"slug": "medium"
},
{
"size": "1.25rem",
"slug": "large"
},
{
"size": "clamp(1.5rem, 3vw, 2rem)",
"slug": "x-large"
}
]
},
"layout": {
"contentSize": "600px",
"wideSize": "780px"
}
},
"styles": {
"blocks": {
"core/post-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontWeight": "400"
}
},
"core/site-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontStyle": "normal",
"textTransform": "uppercase"
}
},
"core/query-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)"
}
}
},
"elements": {
"h1": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontWeight": "200"
}
},
"h2": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontWeight": "400"
}
},
"h3": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontWeight": "400"
}
},
"h4": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontWeight": "400"
}
},
"h5": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontWeight": "400"
}
},
"h6": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)",
"fontWeight": "400"
}
}
},
"spacing": {
"blockGap": "2rem"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)"
}
}
}

View File

@ -0,0 +1,167 @@
{
"version": 2,
"title": "Swiss",
"settings": {
"color": {
"duotone": [
{
"colors": [
"#000000",
"#FFFFFF"
],
"slug": "default-filter",
"name": "Default filter"
}
],
"palette": [
{
"slug": "foreground",
"color": "#FFFFFF",
"name": "Foreground"
},
{
"slug": "background",
"color": "#1A1A1A",
"name": "Background"
},
{
"slug": "primary",
"color": "#FF7179",
"name": "Primary"
},
{
"slug": "secondary",
"color": "#F4F4F2",
"name": "Secondary"
},
{
"slug": "tertiary",
"color": "#0000000",
"name": "Tertiary"
}
]
},
"custom": {
"spacing": {
"small": "max(1.25rem, 5vw)",
"medium": "clamp(1.75rem, 6vw, calc(3 * var(--wp--style--block-gap)))",
"large": "clamp(3.5rem, 8vw, 6rem)",
"outer": "var(--wp--custom--spacing--small, 1.25rem)"
},
"typography": {
"font-size": {
"colossal": "clamp(3.5rem, 8vw, 5rem)"
}
}
},
"typography": {
"fontFamilies": [
{
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "inter",
"fontFace": [
{
"fontFamily": "Inter",
"fontWeight": "200 900",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/inter/Inter.ttf" ]
}
]
}
]
}
},
"styles": {
"blocks": {
"core/cover": {
"filter": {
"duotone": "var(--wp--preset--duotone--default-filter)"
}
},
"core/image": {
"filter": {
"duotone": "var(--wp--preset--duotone--default-filter)"
}
},
"core/post-author": {
"filter": {
"duotone": "var(--wp--preset--duotone--default-filter)"
}
},
"core/post-featured-image": {
"filter": {
"duotone": "var(--wp--preset--duotone--default-filter)"
}
},
"core/post-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontWeight": "700"
}
},
"core/query-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)"
}
},
"core/site-logo": {
"filter": {
"duotone": "var(--wp--preset--duotone--default-filter)"
}
},
"core/site-title": {
"typography": {
"fontWeight": "700",
"fontStyle":"normal"
}
}
},
"elements": {
"h1": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontWeight": "700"
}
},
"h2": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontWeight": "700"
}
},
"h3": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontWeight": "700"
}
},
"h4": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontWeight": "700"
}
},
"h5": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontWeight": "700"
}
},
"h6": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontWeight": "700"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--primary)"
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)"
}
}
}

View File

@ -178,7 +178,23 @@
{
"fontFamily": "\"Source Serif Pro\", serif",
"name": "Source Serif Pro",
"slug": "source-serif-pro"
"slug": "source-serif-pro",
"fontFace": [
{
"fontFamily": "Source Serif Pro",
"fontWeight": "200 900",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2" ]
},
{
"fontFamily": "Source Serif Pro",
"fontWeight": "200 900",
"fontStyle": "italic",
"fontStretch": "normal",
"src": [ "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2" ]
}
]
}
],
"fontSizes": [
@ -257,6 +273,7 @@
"fontFamily": "var(--wp--preset--font-family--system-font)",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--medium)",
"fontStyle": "italic",
"fontWeight": "normal"
}
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-beta2-53285';
$wp_version = '6.0-beta2-53286';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.