-
Notifications
You must be signed in to change notification settings - Fork 1
Token Studio Formatting
Nathan Curtis edited this page Jun 12, 2023
·
24 revisions
The EightShapes Specs plugin Pro upgrade formats attributes as tokens managed by the Tokens Studio for Figma plugin available in the Figma Community.
Comparing Anatomy attributes of basic outputs (on the left) versus Token Studio tokens (on the right)
Comparing Layout and spacing attributes of basic outputs (on the left) versus with Token Studio tokens (on the right)
To display Tokens Studio tokens:
- Open the EightShapes Specs plugin.
- Click on the Upgrade button.
- Checkout to subscribe to EightShapes Specs plugin Pro.
- Select one or more items to which Tokens Studio tokens have been applied.
- Click on the Create Specs button.
- View results
- Tokens are replaced in all three sections: Anatomy, Properties, and Layout and Spacing.
- Tokens, when detected, are favored over both hardcoded attribute values as well as Figma styles for color, text and effects.
Relative to Tokens Studio's available properties, the EightShapes Specs plugin currently supports the following attributes:
Background blur
Border color
Border radius
Border radius bottom left
Border radius bottom right
Border radius top left
Border radius top right
Border width
Border width bottom
Border width left
Border width right
Border width top
Box shadow
-
Dimension
, as applied to:-
Spacing
>Gap
,All
,Left
,Right
,Bottom
,Top
-
Sizing
>Height
,Width
-
Border Radius
>All
,Top
,Bottom
,Right
,Left
-
Border Weight
>All
,Top
,Bottom
,Right
,Left
Background blur
-
Fill
Font family
Font size
Height
Horizontal resizing
-
Item spacing
(in Token Studio,Gap
) Line height
Layer blur
Layout alignment
Layout direction
Letter spacing
Opacity
Padding top
Padding bottom
Padding left
Padding right
Paragraph indent
Paragraph spacing
-
Sizing
, as applied to:-
Sizing
>Height
,Width
-
Spacing
Text align horizontal
Text case
Text decoration
Typography
Vertical resizing
Width
The following attributes to which Token Studio tokens can be applied are not detected by the EightShapes Plugin.
-
Alpha
(thea
ofrgba
values) Asset
-
Border
as a composite ofborderColor
,borderWidth
andborderStyle
-
Composition
is not supported, due to:-
Composition
can be applied to a layer simultaneously with other Tokens Studio values (likeFill
color), and Tokens Studio API returns both tokens as validly applied. To deconflict and determine which token "wins" would be complicated and computationally expensive. -
Composition
(which can combine attributes likeFill
,Border width left
,Corner radius
andPadding top
) would require decomposition into distinct attributes to jointly and individually be compared across all layers, options, props and anatomy elements compared by the specs plugin. Implementation complicatedness and computational cost (1,000s of potential per run) carry significant risk to EightShapes Specs plugin performance and stability compared to benefit and relative priority of other potential plugin features at this time. - Simply showing
Composition
when present is under consideration, but would run counter to expectations of how attributes are shown based on layer differences across variants. Since it's impossible (for now) to deconflict aComposition
with other attributes, it could result in misleading displays. - Custom
Composition
is neither supported by existing native Figma capabilities nor indicated on Figma's near-term roadmap.
-
Description
-
Dimension
, as applied to:-
Sizing
>All
, which sets both height and width simultaneously such that neither is detected. -
Border width
, when all sides (Top
,Bottom
,Left
andRight
) are individually set and resolve to the same value, such as 8px. In this case, Figma does not return aMixed
value even though there are separate tokens applied by Tokens Studio. -
Border radius
, when all corners (Top left
,Bottom left
,Top right
andBottom right
) are individually set and resolve to the same value, such as 8px. In this case, Figma does not return aMixed
value even though there are separate tokens applied by Tokens Studio.
-
Font weight
-
Sizing
, as applied as:-
Sizing
>All
, which sets both height and width simultaneously such that neither is detected.
-
Visibility