-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Only enqueue default colors & gradients once #34138
Copy link
Copy link
Closed
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Package] Block editor/packages/block-editor/packages/block-editor[Package] Block library/packages/block-library/packages/block-library[Status] In ProgressTracking issues with work in progressTracking issues with work in progress
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Package] Block editor/packages/block-editor/packages/block-editor[Package] Block library/packages/block-library/packages/block-library[Status] In ProgressTracking issues with work in progressTracking issues with work in progress
Type
Fields
Give feedbackNo fields configured for issues without a type.
Related #34006
We're now currently shipping CSS bundled via the JavaScript packages that are enqueued by the global stylesheet as well. We need to consolidate this for all the use cases we have: themes with and without
theme.jsonwhether or not they declare a custom palette and gradients.This was tried at #33924 and had to be reverted at #34108 The PR was reverted because themes that don't have a
theme.jsonand don't provide a color palette either still need the CSS that is currently provided by theblock-library. There was an attempt to fix that at #34067 but it turned out to be more complex than anticipated, so we bailed from that approach to look for a simpler alternative.