Skip to content

Commit

Permalink
Merge pull request #1 from mikachan/add/default-styles
Browse files Browse the repository at this point in the history
Add default colour palette & styling tweaks
  • Loading branch information
jonathanbossenger authored Aug 26, 2022
2 parents b35666a + a614d2d commit e37c408
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 75 deletions.
2 changes: 1 addition & 1 deletion parts/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--90);padding-bottom:var(--wp--preset--spacing--90)"><!-- wp:site-title {"level":0} /-->
<!-- wp:paragraph {"align":"right"} -->
<p class="has-text-align-right">
Proudly powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a>
Proudly powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
18 changes: 0 additions & 18 deletions templates/page-no-separators.html

This file was deleted.

35 changes: 0 additions & 35 deletions templates/single-no-separators.html

This file was deleted.

49 changes: 28 additions & 21 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@
],
"title": "Blank"
},
{
"name": "single-no-separators",
"postTypes": [
"post"
],
"title": "Single Post (No Separators)"
},
{
"name": "page-no-separators",
"postTypes": [
"page"
],
"title": "Page (No Separators)"
},
{
"name": "404",
"postTypes": [
Expand All @@ -37,22 +23,22 @@
"color": {
"palette": [
{
"color": "#ffffff",
"color": "#FFF5E1",
"name": "Base",
"slug": "base"
},
{
"color": "#000000",
"color": "#781C68",
"name": "Contrast",
"slug": "contrast"
},
{
"color": "#9DFF20",
"color": "#FFD39A",
"name": "Primary",
"slug": "primary"
},
{
"color": "#345C00",
"color": "#319DA0",
"name": "Secondary",
"slug": "secondary"
},
Expand Down Expand Up @@ -121,7 +107,7 @@
},
"styles": {
"blocks": {
"core/navigation-link": {
"core/navigation": {
"elements": {
"link": {
":hover": {
Expand Down Expand Up @@ -222,6 +208,23 @@
}
},
"core/site-title": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "underline"
}
},
":focus": {
"typography": {
"textDecoration": "underline"
}
}
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"fontStyle": "italic",
Expand Down Expand Up @@ -302,15 +305,19 @@
}
},
"heading": {
"color": {
"text": "var(--wp--preset--color--secondary)"
},
"typography": {
"fontWeight": "300",
"letterSpacing": "-0.02rem",
"lineHeight": "1.4"
"lineHeight": "1.4",
"textTransform": "capitalize"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
"text": "var(--wp--preset--color--contrast)"
},
":hover": {
"typography": {
Expand Down

0 comments on commit e37c408

Please sign in to comment.