Skip to content

Duotone filter: Allow theme.json to set default filters for blocks #33642

@MaggieCabrera

Description

@MaggieCabrera

What problem does this address?

It would be great to have the option to set a default duotone filter for the blocks from within the theme. That would allow theme authors to fit the images/media on the site to fit with the color scheme of the theme.

What is your proposed solution?

Something like this on theme.json would be nice to have:

"styles": {
    "blocks": {
        "core/image": {
            "color": {
                "duotone": "my-duotone-slug"
            }
        }
    }
}

@ajlende

Metadata

Metadata

Assignees

Labels

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Block] CoverAffects the Cover Block - used to display content laid over a background image[Block] ImageAffects the Image Block[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions