From 61afe880dc2ce8560ab2afb4e0a5883ede99d024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Fri, 29 May 2020 19:17:08 +0200 Subject: [PATCH] Improve docs --- .../developers/themes/theme-json.md | 182 ++++++++++-------- 1 file changed, 103 insertions(+), 79 deletions(-) diff --git a/docs/designers-developers/developers/themes/theme-json.md b/docs/designers-developers/developers/themes/theme-json.md index c7832103c24ebd..e03ae4ee0fa9f8 100644 --- a/docs/designers-developers/developers/themes/theme-json.md +++ b/docs/designers-developers/developers/themes/theme-json.md @@ -167,121 +167,145 @@ This is being implemented, so it's not currently available. ``` { - global: { - presets: { - color: [ + "global": { + "presets": { + "color": [ { - slug: , - value: , + "slug": , + "value": }, - { ... }, + { } ], - font-size: [ + "font-size": [ { - slug: , - value: , + "slug": , + "value": }, - { ... }, + { } ], - gradient: [ + "gradient": [ { - slug: , - value: , + "slug": , + "value": }, - { ... }, + { } ] } }, - core/paragraph: { - styles: { - typography: { - lineHeight: , - fontSize: + "core/paragraph": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": }, - color: { - text: + "color": { + "text": } } }, - core/heading: { - styles: { - line-height: , - font-size: , - color: , - } - }, - core/heading/h1: { - styles: { - line-height: , - font-size: , - color: , + "core/heading": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": + }, + "color":{ + "text": + } } }, - core/heading/h2: { - styles: { - line-height: , - font-size: , - color: , + "core/heading/h1": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": + }, + "color":{ + "text": + } } }, - core/heading/h3: { - styles: { - line-height: , - font-size: , - color: , + "core/heading/h2": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": + }, + "color":{ + "text": + } } }, - core/heading/h4: { - styles: { - line-height: , - font-size: , - color: , + "core/heading/h3": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": + }, + "color":{ + "text": + } } }, - core/heading/h5: { - styles: { - line-height: , - font-size: , - color: , + "core/heading/h4": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": + }, + "color":{ + "text": + } } }, - core/heading/h6: { - styles: { - typography: { - lineHeight: , - fontSize: + "core/heading/h5": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": }, - color: { - text: + "color":{ + "text": } } }, - core/columns: { - styles: { - color: { - text: , - background: , - background-color: , + "core/heading/h6": { + "styles": { + "typography": { + "fontSize": , + "lineHeight": + }, + "color":{ + "text": } } }, - core/group: { - styles: { - color: { - text: , - background: , - background-color: , + "core/columns": { + "styles": { + "color": { + "background": , + "background-color": , + "text": } } }, - core/media-text: { - styles: { - color: { - text: , - background: , - background-color: , + "core/group": { + "styles": { + "color": { + "background": , + "background-color": , + "text": + } } - } }, + "core/media-text": { + "styles": { + "color": { + "background": , + "background-color": , + "text": + } + } + } } ```