From 71505d3de12c3eacc7316aeb4a02b9f247811d1c Mon Sep 17 00:00:00 2001 From: Jeff Ong Date: Fri, 16 Dec 2022 12:38:46 -0500 Subject: [PATCH] Test child theme that overwrites the Canary variation. --- tt3-child/style.css | 15 +++ tt3-child/styles/canary.json | 250 +++++++++++++++++++++++++++++++++++ 2 files changed, 265 insertions(+) create mode 100644 tt3-child/style.css create mode 100644 tt3-child/styles/canary.json diff --git a/tt3-child/style.css b/tt3-child/style.css new file mode 100644 index 0000000..9c44cb0 --- /dev/null +++ b/tt3-child/style.css @@ -0,0 +1,15 @@ +/* +Theme Name: TT3 Child with Style Variations +Theme URI: +Author: +Author URI: +Description: +Requires at least: 5.8 +Tested up to: 6.1 +Requires PHP: 5.7 +Version: 0.0.1 +License: GNU General Public License v2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Template: twentytwentythree +Text Domain: tt3-child +*/ diff --git a/tt3-child/styles/canary.json b/tt3-child/styles/canary.json new file mode 100644 index 0000000..6996ec1 --- /dev/null +++ b/tt3-child/styles/canary.json @@ -0,0 +1,250 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Canary", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#ff0000", + "#00ff00" + ], + "slug": "default-filter", + "name": "Default filter" + } + ], + "palette": [ + { + "color": "#ff0000", + "name": "Base", + "slug": "base" + }, + { + "color": "#00ff00", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#0000ff", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#353535", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#ffffff", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "layout": { + "wideSize": "650px" + }, + "typography": { + "fontSizes": [ + { + "size": "0.75rem", + "slug": "small" + }, + { + "size": "1.125rem", + "slug": "medium" + }, + { + "size": "1.75rem", + "slug": "large" + }, + { + "size": "2.25rem", + "slug": "x-large" + }, + { + "size": "10rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/comments": { + "elements": { + "link": { + "typography": { + "textDecoration": "underline" + }, + ":hover": { + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/comment-reply-link": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comments-title":{ + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/image": { + "border": { + "radius": "100px 0 0 0" + }, + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/navigation": { + "typography": { + "textTransform": "lowercase" + } + }, + "core/post-content": { + "elements": { + "link": { + "typography": { + "textDecoration": "underline" + }, + ":hover": { + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/post-excerpt": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-featured-image": { + "border": { + "radius": "100px 0 0 0" + }, + "spacing": { + "margin": { + "bottom": "0px", + "left": "0px", + "right": "0px", + "top": "0px" + }, + "padding": { + "bottom": "0px", + "left": "0px", + "right": "0px", + "top": "0px" + } + } + }, + "core/post-title": { + "typography": { + "fontWeight": "700" + } + }, + "core/separator": { + "border": { + "width": "2px" + } + }, + "core/site-title": { + "typography": { + "fontWeight": "700", + "textTransform": "lowercase", + "fontSize": "var(--wp--preset--font-size--small)" + } + } + }, + "elements": { + "button": { + ":hover": { + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + }, + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "solid", + "width": "2px" + } + }, + ":focus": { + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + }, + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "solid", + "width": "2px" + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--base)" + } + }, + "border": { + "radius": "5px", + "color": "var(--wp--preset--color--contrast)", + "style": "solid", + "width": "2px" + }, + "color": { + "text": "var(--wp--preset--color--base)" + }, + "spacing": { + "padding": { + "bottom": "0.667em", + "left": "1.333em", + "right": "1.333em", + "top": "0.667em" + } + } + }, + "h1": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "h4": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "heading": { + "typography": { + "fontWeight": "700" + } + }, + "link": { + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontFamily": "sans" + } + } +}