From 00020f51910cecdfb210ce8ec8b3e870df82a681 Mon Sep 17 00:00:00 2001 From: Herb Miller Date: Sun, 11 Apr 2021 11:41:45 +0100 Subject: [PATCH] Issue #44 - add layout contentSize and wideSize. Remove overrides to core styles. This version didn't produce a syntax error! --- experimental-theme.json | 145 +++------------------------------------- 1 file changed, 9 insertions(+), 136 deletions(-) diff --git a/experimental-theme.json b/experimental-theme.json index 12c56e8..dd00537 100644 --- a/experimental-theme.json +++ b/experimental-theme.json @@ -169,146 +169,19 @@ "spacing": { "customPadding": true }, - "layout": { - "contentSize": "1140px", - "wideSize": "1340px" - } - }, - "styles": { - "root": { - "color": { - "background": "var( --wp--preset--color--background )", - "text": "var( --wp--preset--color--foreground )", - "link": "var( --wp--preset--color--greeny)" - } - }, - "core/paragraph": { - "color": { - "link": "var( --wp--preset--color--greeny )", - "text": "var( --wp--preset--color--foreground )" - }, - "typography": { - "customFontWeight": true, - "customFontStyle": true, - "fontSize": "var( --wp--preset--font-size--normal )" - } - }, - "core/heading/h1": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - }, - "typography": { - "fontSize": "var( --wp--preset--font-size--largest )" - } - } - }, - "core/heading/h2": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - }, - "typography": { - "fontSize": "var( --wp--preset--font-size--larger )" - } - } - }, - "core/heading/h3": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - }, - "typography": { - "fontSize": "var( --wp--preset--font-size--large )", - "lineHeight": 1.2 - } - } - }, - "core/heading/h4": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - }, - "typography": { - "fontSize": "var( --wp--preset--font-size--medium )", - "lineHeight": 1.2 - } - } - }, - "core/heading/h5": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - }, - "typography": { - "fontSize": "var( --wp--preset--font-size--normal )", - "lineHeight": 1.2 - } + "layout": { + "contentSize": "1140px", + "wideSize": "1340px" } }, - "core/heading/h6": { - "styles": { + "styles": { + "root": { "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" + "background": "var( --wp--preset--color--background )", + "text": "var( --wp--preset--color--foreground )", + "link": "var( --wp--preset--color--link)" }, - "typography": { - "fontSize": "var( --wp--preset--font-size--small )", - "lineHeight": 1.2 - } - } - }, - "core/columns": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - } - } - }, - "core/group": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - } - } - }, - "core/media-text": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - } - } - }, - "core/excerpt": { - "styles": { - "color": { - "link": "var( --wp--preset--color--primary )", - "text": "var( --wp--preset--color--foreground )" - } - } - }, - "core/post-title": { - "styles": { - "typography": { - "fontSize": "var( --wp--preset--font-size--normal )", - "lineHeight": 1.2 - } - } - }, - "core/post-date": { - "styles": { - "typography": { - "fontSize": "var( --wp--preset--font-size--small )", - "lineHeight": 1.2 - } + "typography": {} } } }