WordPress / WordPress/create-block-theme
Consider removing default colors, duotones, and gradients on save/export
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Currently, all exported themes from the editor include all default colors, duotones, and gradients. These tend to dilute the design system of the theme:
We should consider removing these on save or export of the theme, or at least providing an option to clear them in the UI before export. (With the view to porting this option to Gutenberg in the future.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the editor's save and export flows, focusing on where default colors, duotones, and gradients are included. Review how the UI could expose an option to clear them before export. Done means exported themes no longer include these defaults, or provide a working UI option to remove them, with behavior suitable for later Gutenberg adoption.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100