From 12c89c32148bd089e0d37b23b5f4784c67f6eb9b Mon Sep 17 00:00:00 2001 From: Jason Crist Date: Thu, 17 Dec 2020 16:56:22 -0500 Subject: [PATCH] Supply default style values for code block Supplied typeography, padding and border style values for code block style defaults --- tt1-blocks/experimental-theme.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tt1-blocks/experimental-theme.json b/tt1-blocks/experimental-theme.json index c9c3628d..dd546578 100644 --- a/tt1-blocks/experimental-theme.json +++ b/tt1-blocks/experimental-theme.json @@ -326,5 +326,26 @@ "lineHeight": "var(--wp--custom--line-height--body)" } } + }, + "core/code": { + "styles": { + "typography": { + "fontSize": "var(--wp--preset--font-size--extra-small)" + }, + "spacing": { + "padding": { + "top": "var(--wp--custom--spacing--unit)", + "bottom": "var(--wp--custom--spacing--unit)", + "left": "var(--wp--custom--spacing--unit)", + "right": "var(--wp--custom--spacing--unit)" + } + }, + "border": { + "radius": "0px", + "color": "var(--wp--preset--color--dark-gray)", + "style": "solid", + "width": "0.1rem" + } + } } }