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 | 5 installs, 1 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.