-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Rename experimental-theme.json #21583
Comments
Perhaps I'm being overly cautious, but I feel that we may end up doing some things differently and that the format is not settled yet. So, to me, keeping it as |
I'm in favor of removing the experimental prefix in a release or two but yes, we need to discuss the format we want to show there and there are a few things we want to add there: 1- How to define styles that apply globally. My current thinking is that it should be something close to this:
|
The format, as in whether it's JSON or some other file format like CSS? Or are you referring to the formatting of the As long as we're settled in on using JSON in general, I think it's fine to drop the prefix. It already doesn't work unless you specifically check a box marked "Experimental" in the plugin, so I think the experimental nature is pretty clear. |
From my point of view, even the format is open. Example of something we need to fix before stating this is the right format: translate strings in JSONs --- which is important if we want to incorporate things like Riad's suggestions above that now themes do in PHP (registering custom font sizes or colors). I'm perhaps being extra careful, but I do want to be very clear in communicating this is still open so there aren't any misunderstandings in the future. Having said that, it's only a file name! I'm fine with any name, as long as people are willing to adapt if we find some roadblocks that force us to. |
I’m digging into this world of global styles and full site editing templates. I discovered those two functions: function gutenberg_experimental_global_styles_get_core() {
return gutenberg_experimental_global_styles_get_from_file(
dirname( dirname( __FILE__ ) ) . '/experimental-default-global-styles.json'
);
} function gutenberg_experimental_global_styles_get_theme() {
return gutenberg_experimental_global_styles_get_from_file(
locate_template( 'experimental-theme.json' )
);
} Now the question is whether we are ready to rename those config files to Should |
Will this config be stored or supplied by any other contexts than a theme and the Gutenberg default?
From a philosophical standpoint, if themes are the primary mechanism to control and unify these four aspects of a site and potentially more, then |
I've been a lurker and following along for a while here. I think now is the time to move on this and remove the |
+1 to what @pattonwebz just mentioned above... We are nearing completion, so removing the |
Having the "theme.json" file is a great opportunity to solve some of the theme related issues on Gutenberg without breaking existing themes. Examples:
For these reasons, I think we should still keep this as experimental and take this opportunity to solve these. |
Hello!
Currently the global styles config file is named
experimental-theme.json
. Can we drop theexperimental-
and move totheme.json
now?A few arguments in favor of doing so now:
block-templates
andblock-template-parts
are not labeledexperimental
theme.json
in issues and PRsThanks! 😄 cc @kjellr @nosolosw @youknowriad
The text was updated successfully, but these errors were encountered: