import sample-wp-block-theme
This commit is contained in:
122
theme.json
Normal file
122
theme.json
Normal file
@ -0,0 +1,122 @@
|
||||
{
|
||||
"version": 2,
|
||||
"$schema": "https://schemas.wp.org/trunk/theme.json",
|
||||
"settings": {
|
||||
"useRootPaddingAwareAlignments": true,
|
||||
"appearanceTools": true,
|
||||
"layout": {
|
||||
"contentSize": "590px"
|
||||
},
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "background",
|
||||
"color": "#F3F7F6",
|
||||
"name": "Background"
|
||||
},
|
||||
{
|
||||
"slug": "background-code",
|
||||
"color": "#DEE1E0",
|
||||
"name": "Background Code"
|
||||
},
|
||||
{
|
||||
"slug": "text",
|
||||
"color": "#25211D",
|
||||
"name": "Text"
|
||||
},
|
||||
{
|
||||
"slug": "secondary",
|
||||
"color": "#999",
|
||||
"name": "Secondary"
|
||||
},
|
||||
{
|
||||
"slug": "lines",
|
||||
"color": "#bbb",
|
||||
"name": "Lines"
|
||||
}
|
||||
]
|
||||
},
|
||||
"typography": {
|
||||
"fontFamilies": [
|
||||
{
|
||||
"fontFamily": "Inter, sans-serif",
|
||||
"name": "Inter",
|
||||
"slug": "inter",
|
||||
"fontFace": [
|
||||
{
|
||||
"fontFamily": "Inter",
|
||||
"fontWeight": "400",
|
||||
"fontStyle": "normal",
|
||||
"fontStretch": "normal",
|
||||
"src": ["file:./assets/fonts/inter_normal_400.ttf"]
|
||||
},
|
||||
{
|
||||
"fontFamily": "Inter",
|
||||
"fontWeight": "700",
|
||||
"fontStyle": "normal",
|
||||
"fontStretch": "normal",
|
||||
"src": ["file:./assets/fonts/inter_normal_700.ttf"]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"color": {
|
||||
"background": "var(--wp--preset--color--background)"
|
||||
},
|
||||
"typography": {
|
||||
"fontFamily": "Inter"
|
||||
},
|
||||
"blocks": {
|
||||
"core/post-date": {
|
||||
"color": {
|
||||
"text": "var(--wp--preset--color--secondary)"
|
||||
}
|
||||
},
|
||||
"core/post-title": {
|
||||
"typography": {
|
||||
"fontSize": "30px",
|
||||
"fontWeight": "700"
|
||||
}
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"h1": {
|
||||
"typography": {
|
||||
"fontSize": "30px",
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "22.5px",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
},
|
||||
"h3": {
|
||||
"typography": {
|
||||
"fontSize": "15px",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
},
|
||||
"link": {
|
||||
"color": {
|
||||
"text": "var(--wp--preset--color--text)"
|
||||
},
|
||||
":visited": {
|
||||
"color": {
|
||||
"text": "var(--wp--preset--color--text)"
|
||||
}
|
||||
},
|
||||
":hover": {
|
||||
"color": {
|
||||
"text": "var(--wp--preset--color--secondary)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user