Feature: Add font sizes values from core into theme json #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
This PR adds the font size values defined in core to the theme scaffold.
The core font sizes were retrieved from here: https://github.com/WordPress/gutenberg/blob/26556937b70bbf4aaef8c112321703b61a740284/lib/theme.json#L196-L222
Alternate Designs
My original goal was to override a single core font size while leaving the other values intact, but this isn't possible.
Benefits
theme.json
, making it easier to customize them.Possible Drawbacks
Verification Process
trunk
and confirmed that no font size options are availalble.Checklist:
Applicable Issues
Relates to a conversation in Slack where I was trying to make changes to a single font size option, without losing the other WP core font size options.
https://10up.slack.com/archives/C8Z3WMN1K/p1638295806165800
Changelog Entry
Adds the default font-size options defined in core to the scaffold's theme.json file.