Tokens Studio formats
The EightShapes Specs plugin Pro upgrade formats attributes as tokens managed by the Tokens Studio for Figma plugin available in the Figma Community.
What it includes
Hardcoded values are replaced with detected Tokens Studio tokens in all three sections: Anatomy, Properties, and Layout and Spacing.
Tokens Studio tokens, when detected, are favored over both hardcoded attribute values as well as applied Figma styles for color, text and effects. When both a Figma style and Token Studio token are encountered, the Tokens Studio token is displayed.
How it works
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
Supported attributes
Relative to Tokens Studio's available properties, the EightShapes Specs plugin currently supports the following attributes:
Background blur
Border colorBorder radiusBorder radius bottom leftBorder radius bottom rightBorder radius top leftBorder radius top rightBorder widthBorder width bottomBorder width leftBorder width rightBorder width topBox shadowDimension, as applied to:Spacing>Gap,All,Left,Right,Bottom,TopSizing>Height,WidthBorder Radius>All,Top,Bottom,Right,LeftBorder Weight>All,Top,Bottom,Right,LeftBackground blur
FillFont familyFont sizeHeightHorizontal resizingItem spacing(in Token Studio,Gap)Line heightLayer blurLayout alignmentLayout directionLetter spacingOpacityPadding topPadding bottomPadding leftPadding rightParagraph indentParagraph spacingSizing, as applied to:Sizing>Height,Width
SpacingText align horizontalText caseText decorationTypographyVertical resizingWidth
Attributes not supported
The following attributes to which Token Studio tokens can be applied are not detected by the EightShapes Plugin.
Alpha(theaofrgbavalues)
AssetBorderas a composite ofborderColor,borderWidthandborderStyleCompositionis not supported, due to:Compositioncan be applied to a layer simultaneously with other Tokens Studio values (likeFillcolor), 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 radiusandPadding 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
Compositionwhen 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 aCompositionwith other attributes, it could result in misleading displays.Custom
Compositionis neither supported by existing native Figma capabilities nor indicated on Figma's near-term roadmap.
DescriptionDimension, as applied to:Sizing>All, which sets both height and width simultaneously such that neither is detected.Border width, when all sides (Top,Bottom,LeftandRight) are individually set and resolve to the same value, such as 8px. In this case, Figma does not return aMixedvalue even though there are separate tokens applied by Tokens Studio.Border radius, when all corners (Top left,Bottom left,Top rightandBottom right) are individually set and resolve to the same value, such as 8px. In this case, Figma does not return aMixedvalue even though there are separate tokens applied by Tokens Studio.
Font weightSizing, as applied as:Sizing>All, which sets both height and width simultaneously such that neither is detected.
Visibility
Examples
Comparing Anatomy and Layout attributes of basic outputs (on the left) versus Token Studio tokens (on the right)


