Provide Custom CSS per Style Variation #45675
Labels
[Feature] Block Variations
Block variations, including introducing new variations and variations as a feature
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Certain style variations may be better enhanced by having CSS that isn't appropriate for other (or some other) variations (or the base theme) to contain.
An example of this might be a "System controlled Dark Mode color scheme" variation where additional CSS is needed or variations that need CSS to achieve design targets.
What is your proposed solution?
When a style variation is activated for a theme a specific class (for instance
theme-variation-VARIATION_NAME
or something) is appended.This would allow selectors to be crafted in style.css that would target only certain variations.
The text was updated successfully, but these errors were encountered: