@tfk-samf/figma-to-dtcg
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -81,3 +81,3 @@ const figmaDesignTokenTypeMap = { | ||
const isAlias = (v) => !!v.type && !!v.id; | ||
const isForeground = ({ name: _name }) => !!_name.match(/^Foreground\/(Dark|Light)\/(Primary|Secondary|Disabled)$/); | ||
const isForeground = ({ name: _name }) => !!_name.match(/^Foreground\/([\w\s]+)\/(Primary|Secondary|Disabled)$/); | ||
const isColorPalette = ({ name: _name }) => !!_name.match(/^[A-Za-z]+\/\d+\/Background$/); | ||
@@ -84,0 +84,0 @@ let _value; |
{ | ||
"name": "@tfk-samf/figma-to-dtcg", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Parse Figma Variables Plugin API and REST API into design tokens.", | ||
@@ -35,3 +35,3 @@ "files": [ | ||
}, | ||
"gitHead": "498e10f575799c6ea205d80ad72fc1cb1f27be9a" | ||
"gitHead": "4290c60bd6007d3e4a696ee7712e0065d3ccb461" | ||
} |
14235