Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Alt: Just the new text-styles #432

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions styles/blocks/01-display.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"title": "Display",
"slug": "text-display",
"blockTypes": ["core/heading", "core/paragraph"],
"styles": {
"typography": {
"fontSize": "var:preset|font-size|xx-large",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noting these sizes may have to be one-off sizes once we pull this into #422 and evaluate properly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for both display and subtitle

"lineHeight": "1.2"
}
}
}
13 changes: 13 additions & 0 deletions styles/blocks/02-subtitle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"title": "Subtitle",
"slug": "text-subtitle",
"blockTypes": ["core/heading", "core/paragraph"],
"styles": {
"typography": {
"fontSize": "var:preset|font-size|x-large",
"lineHeight": "1.2"
}
}
}
17 changes: 9 additions & 8 deletions styles/blocks/pill.json → styles/blocks/03-annotation.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"title": "Pill",
"slug": "pill",
"title": "Annotation",
"slug": "text-annotation",
"blockTypes": ["core/heading", "core/paragraph"],
"styles": {
"css": "display: inline-flex",
"typography": {
"fontSize": "var:preset|font-size|small",
"lineHeight": "1",
"lineHeight": "1.5",
"letterSpacing": "normal"
},
"border": {
"color": "currentColor",
"style": "solid",
"width": "1px",
"radius": "999px"
"radius": "16px"
},
"spacing": {
"padding": {
"top": "0.31rem",
"right": "var:preset|spacing|20",
"bottom": "0.31rem",
"left": "var:preset|spacing|20"
"top": "0.2rem",
"right": "0.6rem",
"bottom": "0.25rem",
"left": "0.6rem"
}
},
"elements": {
Expand Down
Loading