WordPress / WordPress/create-block-theme

Consider removing default colors, duotones, and gradients on save/export

Open
#466 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.