Curator: adjust font styles (#5984)

* Add heading letter spacing

* Move letter spacing to core/heading setting

* Set individual heading line heights

* Adjust responsive font sizes
This commit is contained in:
Sarah Norris 2022-05-10 15:05:32 +01:00 committed by GitHub
parent f2d08369ca
commit b4c9812b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,7 +216,7 @@
},
"core/heading": {
"typography": {
"lineHeight": "1.125"
"letterSpacing": "-0.02em"
}
},
"core/list": {
@ -322,28 +322,32 @@
"typography": {
"fontFamily": "var(--wp--preset--font-family--heading-font)",
"fontWeight": "900",
"fontSize": "clamp(5.875rem, 10vw, 3.375rem)"
"fontSize": "clamp(3.375rem, 10vw, 5.875rem)",
"lineHeight": "1"
}
},
"h2": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--heading-font)",
"fontWeight": "900",
"fontSize": "clamp(2.75rem, 10vw, 2rem)"
"fontSize": "clamp(2rem, 8.5vw, 2.75rem)",
"lineHeight": "1"
}
},
"h3": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--body-font)",
"fontWeight": "300",
"fontSize": "clamp(2rem, 10vw, 1.5rem)"
"fontSize": "clamp(1.5rem, 6vw, 2rem)",
"lineHeight": "1.2"
}
},
"h4": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--body-font)",
"fontWeight": "700",
"fontSize": "clamp(1.75rem, 10vw, 1.375rem)"
"fontSize": "clamp(1.375rem, 5vw, 1.75rem)",
"lineHeight": "1.1"
}
},
"h5": {
@ -351,14 +355,16 @@
"fontFamily": "var(--wp--preset--font-family--heading-font)",
"fontWeight": "900",
"fontSize": "1.375rem",
"textTransform": "uppercase"
"textTransform": "uppercase",
"lineHeight": "1.2"
}
},
"h6": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--body-font)",
"fontWeight": "700",
"fontSize": "var(--wp--preset--font-size--medium)"
"fontSize": "var(--wp--preset--font-size--medium)",
"lineHeight": "1.3"
}
},
"link": {