bonniernews/Figma Variables

Fetch Figma variables, generate W3C token files, run Style Dictionary, commit results

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
figma-tokenFigma personal access tokenyes
figma-file-idThe Figma file ID to fetch variables fromyes
tokens-output-pathPath in the calling repo where raw W3C token JSON files are written. This mirrors the Figma collection hierarchy as directories. Omit to skip writing W3C token files. At least one of tokens-output-path or json-output-path must be provided. no""
json-output-pathPath in the calling repo where Style Dictionary output is written. Omit to skip running Style Dictionary. At least one of tokens-output-path or json-output-path must be provided. no""
excluded-collectionsComma-separated list of Figma collection names to skip entirely. Example: "Deprecated,Internal,OldBrand" no""
style-dictionary-configPath to a Style Dictionary v5 config file in the calling repo (relative to repo root). When provided, this takes full precedence — sd-transforms and sd-output-format are ignored. The caller is responsible for setting source/output paths inside the config. no""
sd-transformsComma-separated Style Dictionary transform names to apply. Used only when style-dictionary-config is not provided. Example: "attribute/cti,name/kebab,size/rem" noattribute/cti,name/kebab,size/rem
sd-output-formatStyle Dictionary output format identifier. Used only when style-dictionary-config is not provided. Example: "css/variables" or "json/nested" nojson/nested

no outputs