Compare commits
1 commit
trunk
...
test/tt2-f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
07f4f079da |
5 changed files with 121 additions and 169 deletions
BIN
twentytwentytwo-blue/assets/fonts/dm-sans/DMSans-Bold.ttf
Normal file
BIN
twentytwentytwo-blue/assets/fonts/dm-sans/DMSans-Bold.ttf
Normal file
Binary file not shown.
BIN
twentytwentytwo-blue/assets/fonts/dm-sans/DMSans-Italic.ttf
Normal file
BIN
twentytwentytwo-blue/assets/fonts/dm-sans/DMSans-Italic.ttf
Normal file
Binary file not shown.
BIN
twentytwentytwo-blue/assets/fonts/dm-sans/DMSans-Regular.ttf
Normal file
BIN
twentytwentytwo-blue/assets/fonts/dm-sans/DMSans-Regular.ttf
Normal file
Binary file not shown.
|
@ -8,83 +8,3 @@
|
|||
* @subpackage Twenty_Twenty_Two_Blue
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get font face styles.
|
||||
* Called by functions twentytwentytwo_styles() and twentytwentytwo_editor_styles().
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function twentytwentytwo_get_font_face_styles() {
|
||||
|
||||
return "
|
||||
/* latin */
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Fp2ywxg089UriCZa4Hz-DJF4e8A.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Cp2ywxg089UriASitCBimC3YU-Ck.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Ap2ywxg089UriCZawpBqWCXwT2iv06A.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
/* latin-ext */
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Fp2ywxg089UriCZa4ET-DJF4e8BH9.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Cp2ywxg089UriASitCBamC3YU-CnE6Q.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Ap2ywxg089UriCZawpBqWB3wT2iv06JOy.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
";
|
||||
|
||||
}
|
|
@ -1,90 +1,122 @@
|
|||
{
|
||||
"version": 2,
|
||||
"settings": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "foreground",
|
||||
"color": "#3F67C6",
|
||||
"name": "Foreground"
|
||||
},
|
||||
{
|
||||
"slug": "background",
|
||||
"color": "#FCF5ED",
|
||||
"name": "Background"
|
||||
},
|
||||
{
|
||||
"slug": "primary",
|
||||
"color": "#385BAD",
|
||||
"name": "Primary"
|
||||
},
|
||||
{
|
||||
"slug": "secondary",
|
||||
"color": "#F7EBDD",
|
||||
"name": "Secondary"
|
||||
},
|
||||
{
|
||||
"slug": "tertiary",
|
||||
"color": "#ffffff",
|
||||
"name": "Tertiary"
|
||||
}
|
||||
]
|
||||
},
|
||||
"layout": {
|
||||
"wideSize": "1060px"
|
||||
},
|
||||
"typography": {
|
||||
"fontFamilies": [
|
||||
{
|
||||
"fontFamily": "\"DM Sans\", serif",
|
||||
"name": "DM Sans",
|
||||
"slug": "dm-sans"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"blocks": {
|
||||
"core/post-title": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"h1": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h3": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h4": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h6": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontFamily": "var(--wp--preset--font-family--dm-sans)"
|
||||
}
|
||||
}
|
||||
}
|
||||
"version": 2,
|
||||
"name": "Blue",
|
||||
"settings": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "foreground",
|
||||
"color": "#3F67C6",
|
||||
"name": "Foreground"
|
||||
},
|
||||
{
|
||||
"slug": "background",
|
||||
"color": "#FCF5ED",
|
||||
"name": "Background"
|
||||
},
|
||||
{
|
||||
"slug": "primary",
|
||||
"color": "#385BAD",
|
||||
"name": "Primary"
|
||||
},
|
||||
{
|
||||
"slug": "secondary",
|
||||
"color": "#F7EBDD",
|
||||
"name": "Secondary"
|
||||
},
|
||||
{
|
||||
"slug": "tertiary",
|
||||
"color": "#ffffff",
|
||||
"name": "Tertiary"
|
||||
}
|
||||
]
|
||||
},
|
||||
"typography": {
|
||||
"fontFamilies": [
|
||||
{
|
||||
"fontFamily": "\"DM 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": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"h1": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h3": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h4": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h6": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontFamily": "var(--wp--preset--font-family--dm-sans)"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue