Very Good Flutter Styles
Generate Flutter theme code from the color and text styles in your Figma files!
Plugin Preview
About this plugin
Very Good Flutter Styles can instantly generate Flutter theme code directly from the color and text styles in your Figma document. Simply run the plugin, then copy and paste the code into your project. Save yourself the time and headache of finding, copying, and formatting style properties with Very Good Flutter Styles!
The plugin uses the existing names and order of your Figma styles, giving you more control around the output of your code. It will also strip out common special characters used for organization, and set your styles names to lowerCamelCase. The generated code is intended to be flexible enough to be used as is, or reformatted to fit the needs of your project.
Open up the playground file to see some examples of styles which include various supported properties; gradients, opacity, multiple fills, italics, underlines, and more. Then unleash the power of the plugin on your own design files!
Instructions
- Run the plugin in Design or Dev Mode
- Click the Color or Text Styles button to copy Color or Text styles to your clipboard
- Paste the code into your code editor
Features
- NEW: Hide styles: Control which styles are exported by excluding styles hidden using . and _
- Copy all document color and text styles from Figma, paste as dart code.
- Works in both Design & Dev Modes
- Style names are converted to camelCase, and will remove the following characters: ( ) [ ] { } . , _ - – — / | \
- Opacity is reflected in the 8 digit alpha hex value
- This plugin will convert styles with 2 fills into a single calculated alpha hex value, great for Material surfaces
- Gradient step color values are supported
Not Supported
Variables
- Variables are not supported in this release. We are looking to enable supporting variables either in a future release or a separate plugin.
Color Styles
- Gradient step positions
- Image styles
- Layer modes (Multiply, etc)
- More than 2 colors per style
Text Styles
- Alignment
- Case formatting
- Lists
- Paragraph spacing
Plugin Details
Version | 11 |
---|---|
Created | February 18, 2023 |
Last Updated | July 24, 2024 |
Category | Import & export plugins |
Creator | Murph 💠 |
Stats | 410 installs, 53 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- https://fonts.googleapis.com
- https://fonts.gstatic.com
More Like This
Discover other plugins in the Import & export plugins category.