-
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
Site Editor: Export global style settings #27528
Comments
These should probably be exported alongside the template files that we already export. |
This feels fairly important for getting theme developers onboard with building block themes. It feels like a disconnect that you can build out templates and templates-parts for export but not styles. I suspect that quite a lot of early block themes are going to end up with a lot of standard CSS until this is addressed. |
Is the general thinking here that templates and global styles will be exported as a "new theme" completely detached from the base theme, or will the export be a sort of design to work with the base theme that the user started with? I can see potentially a use for both scenarios, where a user is creating for themselves or a client.
|
Sorry I went slightly off-topic here but to answer my own question, it seems that exports can be done both ways. The choice lies with the designer/developer. When/if global styles, templates, and template parts are able to be exported in one package using the Site Editor export tool, this will be hugely helpful to theme devs. If it is desired to use a design with the current theme, then templates, template parts, and global styles can be exported using the WP exporter, and then imported to another site quite easily. |
Since the 5.8 release I have received a few questions about why the theme.json is missing from the export. |
Hi, this topic is soo important. I just asked @carolinan about this problem and she sent me a link to this ticket. We are thinking of switching our theme shop completely to an FSE theme with different demos but without this option to export Global Style settings it's not possible. I want to avoid using Customizer and child themes for fonts and colours and to be able to export settings from the Global Styles. Is there any chance we could have this in 5.9? |
Totally agree with @DaisyOlsen. We are working on a new FSE theme that will offer different demos and this option would be soo useful. |
This came up in the eleventh call for testing for the FSE Outreach Program, which included a focus on Styles:
|
This is an issue we have been using an experimental Theme Exporter plugin to try out. This is how we got a snapshot of the theme settings considering theme-provided and user-overriding values. We were also considering the three states of the settings when we want the snapshot:
Which of those options are the default in the export .zip is important, as is a way to get that information independently of the export tool itself. The theme.json we need to craft varies on the situation. The "standalone" option seems most reasonable for most situations though, especially as a way to "kick start" a theme. |
Hi folks, I create a new PR #39048 that's ready for testing. |
Is your feature request related to a problem? Please describe.
Global style settings are not included in the. zip file when I use the Export tool.
Describe the solution you'd like
If I create a design in the site editor, I want the changes I made in the global style settings (for example new color palettes) to be exported as a theme.json file when I use the Export tool, so that I can use my styles together with my exported templates.
The text was updated successfully, but these errors were encountered: