Skip to content

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

Closed

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

Activity

  1. added
    [Block] CoverAffects the Cover Block - used to display content laid over a background image
    on Jul 23, 2021
  2. added
    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json
    on Jul 23, 2021
  3. self-assigned this
    on Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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