Skip to content

Global Styles - expose way to add more 'Elements' to the UI #64362

@Zealth57

Description

@Zealth57

Right now there is seemingly no way to introduce more elements to the Global Styles 'Elements' section. There seems to be a pre-defined list of items such as text, background, button, link, etc. As a developer, we may want to introduce other elements that live across the site and can be styled based on a color palette. For example, right now there is only 'Button' in the elements. Consider a site which has a primary button and secondary button. If we expose the Elements section to plugins / themes, those can add a 'Secondary button' element. This secondary button element can get a color based on the palette and then it can be styled properly throughout a website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] ExtensibilityThe ability to extend blocks or the editing experience[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions