Skip to content

Commit

Permalink
Add color and font settings
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Nov 24, 2021
1 parent fb76be1 commit caddf6f
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 3 deletions.
92 changes: 90 additions & 2 deletions archeo/theme.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,91 @@
{
"version": 2
}
"$schema": "https://json.schemastore.org/theme-v1.json",
"version": 1,
"settings": {
"color": {
"palette": [
{
"slug": "foreground",
"color": "#242321",
"name": "Foreground"
},
{
"slug": "background",
"color": "#FCFBF8",
"name": "Background"
},
{
"slug": "primary",
"color": "#71706E",
"name": "Primary"
},
{
"slug": "tertiary",
"color": "#CFCFCF",
"name": "Tertiary"
}
]
},
"custom": {
"heading": {
"typography": {
"fontWeight": 200
}
}
},
"typography": {
"fontFamilies": [
{
"fontFamily": "\"Chivo\", serif",
"fontSlug": "chivo",
"slug": "body-font",
"name": "Body (Chivo)",
"google": "family=Chivo:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900"
},
{
"fontFamily": "\"Chivo\", serif",
"fontSlug": "chivo",
"slug": "heading-font",
"name": "Headings (System Font)",
"google": "family=Chivo:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900"
}
],
"fontSizes": [
{
"name": "Small",
"size": "16px",
"slug": "small"
},
{
"name": "Normal",
"size": "18px",
"slug": "normal"
},
{
"name": "Medium",
"size": "32px",
"slug": "medium"
},
{
"name": "Large",
"size": "48px",
"slug": "large"
},
{
"name": "Huge",
"size": "72px",
"slug": "huge"
}
]
}
},
"styles": {
"elements": {
"h1": {
"typography": {
"fontSize": "100px"
}
}
}
}
}
2 changes: 1 addition & 1 deletion blockbase/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
"fontFamily": "var(--wp--preset--font-family--heading-font)",
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
"lineHeight": "var(--wp--custom--heading--typography--line-height)",
"fontSize": "32px"
"fontSize": "var(--wp--preset--font-size--huge)"
},
"spacing": {
"margin": {
Expand Down

0 comments on commit caddf6f

Please sign in to comment.