Skip to content

Add a way to identify which .JSON style variation that is in use #43405

@carolinan

Description

@carolinan

There should be a way to identify which theme.json style variation that is in use:

  • A unique identifier as a CSS class on the body, so that custom CSS can be applied to a variation. is-variation-name, has-variation-name or similar.
  • A PHP function that returns true or false for variations, (similar to for example is_page_template ) so that patterns, custom styles and filters can be used conditionally.

Metadata

Metadata

Assignees

Labels

Needs DevReady for, and needs developer efforts[Feature] ExtensibilityThe ability to extend blocks or the editing experience[Feature] Theme Style VariationsRelated to style variations provided by block themes[Focus] Blocks AdoptionFor issues that directly impact the ability to adopt features of Gutenberg.[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions