Two Way Comparisons
The plugin can compare all attributes and props of nested instances across every combination of two properties of an instance or component. For example, if a button has properties for state
(such as default
, hover
, and focus
) and variant
(such as filled
, outline
and text
), the plugin will compare all layers across all combinations of both properties.
The Two way feature is only available via the Pro subscription to the EightShapes Specs plugin.
Why use this feature
By default, the Properties section will start with the configuration of the selected item and compare variants in each direction. For example, if the selected item has a configuration of variant
:default
, state
:default
and size
:medium
, then the plugin creates a subsection per property:
However, this does not cover many possible combinations, such as comparing state
s when variant
is outline
, size
s when state
is hover, and variant
when size
is large.
When an two way comparison is generated, the plugin will display artwork for every combination of two properties hierarchichally.
When the two-way setting is enabled and one component or instance with two or more variant properties is selected, the plugin will enable the user to select properties (property level 1 and property level 2) in separate menus.
Based on the pair of configured properties, the plugin will: