π¨ Create Beautiful Flutter Themes in Minutes, Not Hours
Transform your Flutter app's appearance with our professional theme generator
Material 3 compliant β’ Multiple contrast modes β’ Logo color extraction β’ Enhanced accessibility β’ Real-time previews
π± Try Live Demo β’ π€ Contribute β’ π¬ Support β’ π 150+ Themes Generated!
Creating consistent, beautiful themes in Flutter is time-consuming and complex:
Flutter Theme Generator streamlines the entire process:
|
// What you get - ready to use!
ThemeData lightTheme = ThemeData(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(
seedColor: Color(0xFF6750A4),
brightness: Brightness.light,
),
// + 50+ other properties configured
); |
π¨ Advanced Color Engineering
- π§ AI-Powered Logo Analysis: K-Means clustering extracts dominant brand colors with 95% accuracy
- οΏ½ 6 Contrast Modes: Light, dark, and 4 accessibility variants (medium/high contrast)
- π¬ Oklab Color Space: Industry-leading perceptual color accuracy for natural gradients
- βοΈ APCA Accessibility: Next-generation contrast algorithms exceeding WCAG AAA standards
- οΏ½ Color Harmony: Scientifically-generated complementary and analogous palettes
ποΈ Real-Time Preview System
- π± 20+ Widget Previews: See your theme on buttons, cards, forms, navigation, and more
- π Instant Updates: Changes appear immediately across all preview components
- π Contrast Validation: Live accessibility scoring with detailed WCAG compliance reports
- οΏ½ Responsive Design: ScreenUtil integration for consistent sizing across devices
- π Multi-Mode Testing: Switch between all 6 contrast modes in real-time
π¦ Production-Ready Export
- β¬οΈ Complete Theme Package: Structured ZIP with all theme files and documentation
- οΏ½ ScreenUtil Support: Responsive design tokens that scale perfectly across devices
- ποΈ Clean Architecture: Organized file structure following Flutter best practices
- π Implementation Guide: Step-by-step integration instructions with code examples
- π§ Hot Reload Ready: Drop-in themes that work immediately with your existing project
- π§ Easy Integration: Step-by-step integration guide included
Why this stack?
- β‘ Lightning fast development with Vite hot reload
- π Type safety with TypeScript for better code quality
- π¨ Rapid styling with Tailwind's utility-first approach
- π Global deployment via Cloudflare's edge network
- βοΈ Component architecture with React for maintainability
Clean, intuitive interface that gets you started in seconds

Powerful customization tools with real-time preview

See your theme applied to real Flutter components

Seamless dark mode experience

Drag & drop your logo or choose colors manually |
Fine-tune colors, typography, and components |
See your theme on real Flutter widgets |
Get production-ready theme files |
π§ Setup Instructions
- Node.js 18+ and npm
- Git
# Clone the repository
git clone https://github.com/mukhbit0/Flutter-Theme-Generator.git
cd Flutter-Theme-Generator
# Install dependencies
npm install
# Start development server
npm run dev
Command | Description |
---|---|
npm run dev |
Start development server with hot reload |
npm run build |
Build for production |
npm run preview |
Preview production build locally |
npm run lint |
Run ESLint for code quality |
npm run type-check |
Run TypeScript type checking |
K-Means Clustering Algorithm
- Intelligently analyzes uploaded logos to extract dominant brand colors
- Groups similar pixels to identify the most representative color palette
- 95% accuracy in brand color identification across diverse logo types
Oklab Perceptual Color Space
- State-of-the-art perceptual uniformity for natural color transitions
- Superior gradient generation compared to traditional RGB/HSL methods
- Ensures color adjustments appear visually consistent to human perception
APCA (Advanced Perceptual Contrast Algorithm)
- Next-generation accessibility standard exceeding WCAG AAA requirements
- More accurate representation of real-world contrast perception
- Optimized for modern displays and diverse visual capabilities
Complete Theme Coverage
- 6 Theme Variants: Light, Dark, Medium Contrast (Light/Dark), High Contrast (Light/Dark)
- Full Color Palette: Primary, Secondary, Tertiary colors with all tonal variants
- Surface Colors: Background, surface, outline colors optimized for each mode
- Error Handling: Consistent error states across all theme variants
ScreenUtil Integration
- Responsive Typography: All text sizes scale with screen density (.sp suffix)
- Adaptive Dimensions: Width and height values respond to device size (.w/.h suffix)
- Consistent Spacing: Padding and margins maintain proportions across devices
- Production Ready: Zero configuration required for multi-device support
Efficient Processing
- Real-time color calculations using optimized algorithms
- Lazy loading for preview components to maintain smooth interactions
- Intelligent caching of generated theme data
- Minimal bundle size with tree-shaking optimization
Quality Assurance
- Automated contrast validation for all generated color combinations
- Cross-platform compatibility testing for Flutter integration
- Comprehensive accessibility compliance checking
- Production-grade code generation with proper formatting
βοΈ Cloudflare Workers Deployment
- Cloudflare account
- Wrangler CLI installed (
npm install -g wrangler
)
# Build the application
npm run build
# Deploy to Cloudflare Workers
npx wrangler deploy --env production
Create a wrangler.toml
file:
name = "flutter-theme-generator"
main = "dist/index.js"
compatibility_date = "2023-05-18"
[env.production]
name = "flutter-theme-generator-prod"
We welcome contributions of all kinds! Whether you're fixing bugs, adding features, improving documentation, or sharing ideas.
Quick Contribution Options:
- π Report a bug
- β¨ Request a feature
- π Improve documentation
- π¨ Enhance UI/UX
- π§ͺ Add tests
π Read our detailed Contributing Guide for step-by-step instructions.
π¨ Enhanced Color Algorithms
- Oklab Color Space: Added perceptually uniform color processing for more natural transitions
- APCA Accessibility: Implemented next-generation contrast algorithms exceeding WCAG AAA
- K-Means Clustering: Improved logo color extraction with 95% accuracy rate
- Fixed Contrast Logic: Resolved theme polarity issues - light themes stay light, dark themes stay dark
π± Complete ScreenUtil Integration
- Typography Support: All text sizes now scale with
.sp
suffix for perfect responsive design - Dimension Support: Width and height values adapt with
.w
and.h
suffixes - Spacing System: Padding and margins maintain proportions across all devices
- Zero Configuration: Drop-in support requiring no additional setup
π― Material 3 Enhancements
- 6 Theme Variants: Complete light/dark/medium contrast/high contrast implementation
- Enhanced Accessibility: All color combinations meet or exceed accessibility standards
- Improved Preview: Real-time visualization of all theme variants
- Professional Export: Production-ready Dart code with comprehensive documentation
β‘ User Experience Improvements
- Theme Counter: Live tracking of globally generated themes (150+ and counting!)
- Refined UI: Consistent badge styling and improved visual hierarchy
- Enhanced Documentation: Comprehensive algorithm explanations and implementation guides
- Performance Optimizations: Faster color processing and real-time previews
If this tool saves you time and helps your projects, consider supporting its development:
Other ways to support:
- β Star this repository
- π¦ Share on social media
- π Write a blog post about your experience
- π₯ Create a tutorial video
This project is licensed under the MIT License - see the LICENSE file for details.
What this means:
- β Commercial use allowed
- β Modification allowed
- β Distribution allowed
- β Private use allowed
- β License and copyright notice required

Created with β€οΈ by mukhbit0
Passionate Flutter developer dedicated to making app development more accessible