
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
style-dictionary-figma-flutter
Advanced tools
Custom style-dictionary transforms and formats to generate Flutter resources from a Figma Design Token plugin export.
An extension to style-dictionary to support more custom types with Flutter as target platform. It supports the custom types from Figma's Design Token plugin.
It is an alternative to design-token-transformer package which doesn't offer great output for Flutter.
Generated dart classes :
$ npm install -g style-dictionary-figma-flutter
Define a config.json file for your project :
{
"source": [
"design/**/*.json"
],
"platforms": {
"flutter": {
"transformGroup": "figma-flutter",
"buildPath": "./lib/",
"files": [
{
"destination": "theme/theme.g.dart",
"format": "flutter/theme/theme.dart",
"prefix": "App"
},
{
"destination": "theme/data.g.dart",
"format": "flutter/theme/data.dart",
"prefix": "App"
},
{
"destination": "theme/widgets.g.dart",
"format": "flutter/theme/widgets.dart",
"prefix": "App"
},
{
"destination": "theme/gallery.g.dart",
"format": "flutter/theme/gallery.dart",
"prefix": "App"
}
]
}
}
}
Run the program:
$ style-dictionary-figma-flutter
colordimensioncustom-radiuscustom-spacingcustom-fontStylecustom-iconA full example is available in the example directory.
The input files are :
The output .dart files ares also included :
FAQs
Custom style-dictionary transforms and formats to generate Flutter resources from a Figma Design Token plugin export.
We found that style-dictionary-figma-flutter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.