-
Notifications
You must be signed in to change notification settings - Fork 174
[Twenty Twenty Blocks] Try adding early Global Styles Support #26
Changes from all commits
05d54fa
ab2163e
257ffbd
9e957e5
9f0b942
c02ee20
e375cc6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "color": { | ||
| "primary": "#cd2653", | ||
| "background": "#f5efe0", | ||
| "text": "#000" | ||
| }, | ||
| "typography": { | ||
|
kjellr marked this conversation as resolved.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As per feedback, the variable generation mechanism is not going to make it into WordPress/gutenberg#20530 so I have to change the typography variables to something like:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note how we declare base and heading alternatives for weight & line-height. I reckon this is in flux and so it takes a bit of following up to keep up with the changes. I'm happy to submit these as they happen in the Gutenberg PR if that's helpful.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note for font-sizes: the current UI proposal by @karmatosed WordPress/gutenberg#21030 only exposes base and scale in the UI. Hopefully, in a subsequent iteration, we're able to use
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pushing at https://github.com/nosolosw/theme-experiments/tree/add/twentytwenty-globalstyles what I have to make this work with the latest version of the Gutenberg PR. |
||
| "font-scale": 1.3, | ||
| "font-size": "18px", | ||
| "font-weight": 400, | ||
| "line-height": 1.5 | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per the current changes at WordPress/gutenberg#20530 primary should be removed.