figma_color_cli 1.0.2
figma_color_cli: ^1.0.2 copied to clipboard
Convert Figma HEX colors into Flutter AppColor constants automatically.
🎨 Figma Color CLI #
Convert Figma HEX colors into Flutter AppColor constants instantly from terminal 🚀
Perfect for Flutter developers who frequently copy colors from Figma and want to generate clean app_color.dart files automatically.
✨ Features #
- 🎯 Convert HEX → Flutter
Color()format - 📁 Auto-generate
app_color.dart - ♻️ Replace or append to existing color file
- 🚫 Prevent duplicate color entries
- 🌈 Supports opacity HEX (
#254C8280) - 🖥 Beautiful CLI interface
- ⚡ Lightweight and dependency-free
📦 Installation #
Activate globally:
dart pub global activate figma_color_cli
🚀 Usage #
Run command:
figma-color "#254C82 #FFFFFF #254C8280"
💡 Demo #
Input: #
figma-color "#254C82 #FFFFFF"
CLI Output: #
╔══════════════════════════════════════╗
║ 🎨 FIGMA COLOR CLI v1.0 ║
╠══════════════════════════════════════╣
║ Convert Figma HEX → Flutter Color ║
╚══════════════════════════════════════╝
📂 Generated Output #
Creates:
import 'package:flutter/material.dart';
class AppColor {
static const Color k254C82 = Color(0xFF254C82);
static const Color kFFFFFF = Color(0xFFFFFFFF);
}
🛠 Example Workflow #
1. Copy colors from Figma: #
#254C82
#FFFFFF
#000000
2. Run CLI: #
figma-color "#254C82 #FFFFFF #000000"
3. Done 🎉 #
📈 Versioning #
Current Version:
1.0.1
🤝 Contributing #
Contributions, issues, and feature requests are welcome!
Feel free to fork and submit PRs.
📄 License #
MIT License © 2026 Parth Mandalia