-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
theme.json v2: track changes #34349
Comments
In origin, we used the We should remove the |
cc @mtias @youknowriad @mcsf @jorgefilipecosta @gziolo @aaronrobertshaw @ramonjd We can implement the migration from v1 to v2 for the properties above, as we did in the plugin when we introduced v1 (see), so in I wonder how this affects the "internal" names: ideally, the names of the properties in the |
We should perhaps leave the renaming for when we stabilize and remove the |
How about having multiple conditional theme.json files, so that one site can have multiple theme global styls for different pages conditionally? For example as we select page template is in page editor, how about having an option to also choose a different theme.json file ? |
Multiple json files is indeed on the roadmap and conceptualized in the initial scope. The idea is it can be composed in a similar way to the theme hierarchy — so it can match a set of templates, or an individual page, etc. The idea is that template parts could also be theme.json providers, meaning you could overwrite or specify settings for ay template part in complex scenarios. Think a case where a sidebar might require a different set of color presets than the rest of the site. Swapping theme.json files altogether will also be a good affordance for themes offering different schemes, etc. A dark theme could also be conceptualized under that model easily. |
Is this coming in Wordpress 5.9 ? Where we can see progress in this topic ? I would like see this particular topic progress and want to participate in suggestion if I find useful. |
All tasks here have landed so I'm closing this. For reference, I'm porting the changes to WordPress core at WordPress/wordpress-develop#1808 |
Part of #20331
This issue is to track the changes we need to introduce in WordPress 5.9, which we should match to a new schema for
theme.json
.spacing.customMargin
tospacing.margin
.spacing.customPadding
tospacing.padding
.typography.customLineHeight
totypography.lineHeight
.VALID_SETTINGS
andVALID_STYLES
.The text was updated successfully, but these errors were encountered: