From fdf23bba1b9d62187c67ca728dcd4ee9d10ecd94 Mon Sep 17 00:00:00 2001 From: RahiDroid Date: Wed, 13 Apr 2022 13:50:08 +0530 Subject: [PATCH 1/5] Feat: Add a blank custom template --- templates/blank.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 templates/blank.html diff --git a/templates/blank.html b/templates/blank.html new file mode 100644 index 00000000..3fed9dcd --- /dev/null +++ b/templates/blank.html @@ -0,0 +1 @@ + From b84dd5784b2d593289a2d82be295840b741c4292 Mon Sep 17 00:00:00 2001 From: RahiDroid Date: Wed, 13 Apr 2022 13:50:20 +0530 Subject: [PATCH 2/5] Feat: Add fonts options --- theme.json | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/theme.json b/theme.json index cc207ca9..8b12d19d 100644 --- a/theme.json +++ b/theme.json @@ -1,7 +1,16 @@ { "$schema": "https://schemas.wp.org/trunk/theme.json", "version": 2, - "customTemplates": [], + "customTemplates": [ + { + "name": "blank", + "title": "Blank", + "postTypes": [ + "page", + "post" + ] + } + ], "settings": { "appearanceTools": true, "color": { @@ -36,6 +45,39 @@ "outer": "min(4vw, 90px)" } }, + "typography": { + "dropCap": false, + "fontFamilies": [ + { + "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif", + "name": "System Font", + "slug": "system-font" + }, + { + "fontFamily": "\"Source Serif Pro\", serif", + "name": "Source Serif Pro", + "slug": "source-serif-pro" + } + ], + "fontSizes": [ + { + "size": "1rem", + "slug": "small" + }, + { + "size": "1.125rem", + "slug": "medium" + }, + { + "size": "1.75rem", + "slug": "large" + }, + { + "size": "clamp(1.75rem, 3vw, 2.25rem)", + "slug": "x-large" + } + ] + }, "layout": { "contentSize": "620px", "wideSize": "1260px" From fe4c3db26fa0172ca139c6fba0299239637088a7 Mon Sep 17 00:00:00 2001 From: RahiDroid Date: Wed, 13 Apr 2022 13:59:47 +0530 Subject: [PATCH 3/5] Refact: Replace blank custom template with No title template --- templates/blank.html | 1 - templates/no-title.html | 11 +++++++++++ theme.json | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) delete mode 100644 templates/blank.html create mode 100644 templates/no-title.html diff --git a/templates/blank.html b/templates/blank.html deleted file mode 100644 index 3fed9dcd..00000000 --- a/templates/blank.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/templates/no-title.html b/templates/no-title.html new file mode 100644 index 00000000..efe25a0b --- /dev/null +++ b/templates/no-title.html @@ -0,0 +1,11 @@ + + + +
+ + + +
+ + + diff --git a/theme.json b/theme.json index 8b12d19d..5c498dfb 100644 --- a/theme.json +++ b/theme.json @@ -3,8 +3,8 @@ "version": 2, "customTemplates": [ { - "name": "blank", - "title": "Blank", + "name": "no-title", + "title": "No Title Template", "postTypes": [ "page", "post" From e8ff5b9dfb1e030c8b22dad0c0a21df43ef9fc7b Mon Sep 17 00:00:00 2001 From: RahiDroid Date: Wed, 13 Apr 2022 14:45:13 +0530 Subject: [PATCH 4/5] Feat: Add Light global style variation --- styles/light.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 styles/light.json diff --git a/styles/light.json b/styles/light.json new file mode 100644 index 00000000..309d76eb --- /dev/null +++ b/styles/light.json @@ -0,0 +1,37 @@ +{ + "version": 2, + "settings": { + "color": { + "palette": [ + { + "slug": "background", + "color": "#ffffff", + "name": "Background" + }, + { + "slug": "foreground", + "color": "#1d2327", + "name": "Foreground" + }, + { + "slug": "primary", + "color": "#153956", + "name": "Primary" + }, + { + "slug": "secondary", + "color": "#eee", + "name": "Secondary" + }, + { + "slug": "transparent", + "color": "transparent", + "name": "Transparent" + }, + ] + }, + "custom": { + "text-shadow": "0 2px 5px rgba(0, 0, 0, 0.2);" + } + } +} \ No newline at end of file From 51f971eaf7a3524a31fc646342c2b9c7ebabafde Mon Sep 17 00:00:00 2001 From: RahiDroid Date: Wed, 20 Apr 2022 13:38:17 +0530 Subject: [PATCH 5/5] Fix: Unnecessary trailing comma --- styles/light.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styles/light.json b/styles/light.json index 309d76eb..55a7d881 100644 --- a/styles/light.json +++ b/styles/light.json @@ -27,11 +27,11 @@ "slug": "transparent", "color": "transparent", "name": "Transparent" - }, + } ] }, "custom": { "text-shadow": "0 2px 5px rgba(0, 0, 0, 0.2);" } } -} \ No newline at end of file +}