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

Commit

Permalink
Alt: Just the new text-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Sep 26, 2024
1 parent 931f12f commit 796e22e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
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",
"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

0 comments on commit 796e22e

Please sign in to comment.