Back to Plugins

Flutter Color Variables
Generate Flutter/Dart code for your color variables
color variablesfluttervariablesdartcodecolor
Plugin Preview
About this plugin
Simple plugin that generates Flutter/Dart Color constants from your Figma color variables.
Example Export:
import 'dart:ui';
enum ColorsMode {
lightMode,
darkMode
}
class Colors {
// Single-value colors
static Color primaryColor = const Color(0xFF000000);
// Mode-dependent colors
static Color backgroundColor(ColorsMode mode) {
switch (mode) {
case ColorsMode.lightMode:
return const Color(0xFFFFFFFF);
case ColorsMode.darkMode:
return const Color(0xFF000000);
}
}
}
Plugin Details
Version | 1 |
---|---|
Created | January 23, 2025 |
Last Updated | January 24, 2025 |
Category | Software development |
Creator | Tina Roh |
Stats | 16 installs, 3 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:{"export": "export.html"}
- main:code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the Software development category.
Figma to Code (HTML, Tailwind, Flutter, SwiftUI)
Code Conversion Made Easy: Figma to Web & Apps
Builder.io - Figma to Code & AI Apps (React, Vue, Tailwind, etc)
Export designs to clean, responsive code or turn Figma screens into AI apps and prototypes.
SkewDat
Skew any layer or group with all layers preserved to edit.