Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MaggieCabrera opened this issue Jul 23, 2021 · 0 comments
Open

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

MaggieCabrera opened this issue Jul 23, 2021 · 0 comments

Comments

@MaggieCabrera
Copy link
Contributor

@MaggieCabrera MaggieCabrera commented Jul 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants