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

Add Support for Named Sections of Color Palettes #34741

Open
mrwweb opened this issue Sep 10, 2021 · 4 comments
Open

Add Support for Named Sections of Color Palettes #34741

mrwweb opened this issue Sep 10, 2021 · 4 comments
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement.

Comments

@mrwweb
Copy link

mrwweb commented Sep 10, 2021

What problem does this address?

I'm currently working on a site with a very large official color palette that is broken down into Primary, Secondary, and Tertiary colors. It would be great if the UI provided a way to make these sections explicit to editors to help guide their color selections. I could imagine lots of uses for this when sites run sub-branded campaigns or a plugin adds some additional colors in a new section.

What is your proposed solution?

WordPress background color palette control with 17 colors divided into three sections: Primary, Secondary, and Tertiary

I would imagine introducing an optional additional level of nesting for the palette syntax in both add_theme_support and theme.json

{
    "version": 1,
    "settings": {
        "color": {
            "palette": {
                "dark": [
                    {
                        "name": "Black",
                        "slug": "black",
                        "color": "#000000"
                    }
                ],
                "light": [
                    {
                        "name": "White",
                        "slug": "white",
                        "color": "#ffffff"
                    }
                ]
            }
        }
    }
}
@carolinan carolinan added Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement. labels Sep 16, 2021
@colorful-tones
Copy link
Member

I'm wrapping up work on a large site that has almost 24 colors, because it has multiple products and each has its own palette.

This would be super useful. Right now the editors are being overwhelmed with a palette of colors.

These conditions may not fall within the threshold of common, but who knows 🤷‍♂️

@markhowellsmead
Copy link

Yes please :)

@phil-sola
Copy link

Yes please - this would be a great addition!

@fclaussen
Copy link

+1

@ndiego ndiego added the [Feature] Extensibility The ability to extend blocks or the editing experience label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

7 participants