Skip to content

Global style variations: Reference existing color and typography presets #65594

@carolinan

Description

@carolinan

What problem does this address?

When creating a global style variation (theme style variation? The combined style under "Browse styles") using an alternative theme.json file, there is no way to reference an existing color palette or typography preset.
This means that the palette and typography settings need to be duplicated: Once in the file for the preset, and once in the combined style variation, which is twice the amount to maintain.

What is your proposed solution?

Introduce a way to reference presets in the other JSON files.
If I have a palette with the slug "01-pink" I would like to be able to reference it similar to this:

	"settings": {
		"color": {
			"palette": "ref: 01-pink"
			....
			

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[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