Monday Hero
Website
V2
V2
  • Overview
  • Workflow Basics
  • Getting Started
    • Installing the Desktop App
    • Log In & Create a Project
    • Prepare Design to Get the Best Code Results
    • Import Design Files into Monday Hero
      • Import Figma Design Files into Monday Hero
        • Import Your Figma Text Style and Color Library
      • Import Adobe XD Design Files into Monday Hero
      • Import Sketch Design Files Into Monday Hero
    • Share Your Project & Manage Roles
  • DESIGN TO FLUTTER
    • Convert Design to Flutter
    • Create Flutter Components
      • System Components
        • Material & Cupertino Components
        • Flutter Supported Components
      • Custom Components
    • Create Responsive Code
    • Colors
    • Text Styles
    • Assets
    • Sync Code
    • Flutter Project Base
      • Fast Start with Monday Hero Starter Project
      • Integrate Monday Hero to your Existing Project
    • Shadows, Gradients, and Other Design Elements
    • Troubleshooting Guide
      • Checklist for Design Element Review and Code Generation
      • Github Monday Hero Starter Project Troubleshooting
  • DESIGN TO SWIFT
    • Convert Design to Swift
    • Create Swift Components
      • System Components
        • Views
        • Texts
        • Images
        • Button
        • TextField/EditText
        • Text Area
        • Status Bar
        • Search Bar
        • List
        • Grid
        • Swift Supported Components
      • Custom Components
      • Video Player Code Component
    • Colors
    • Text Styles
    • Assets
    • Shadows, Gradients, and Other Design Elements
    • Firebase
      • How to get Video URL from Firebase
    • Export Code
      • Integrating Exported Files into an Existing Xcode Project
  • Hero AI Assistant
    • Hero AI Assistant
  • Design to React
    • Convert Design to React
  • Step-By-Step Tutorials
    • 🏖️Travel App
  • Support
    • Roadmap
    • Suggest a New Feature
    • Report a Bug
    • Product Announcements
    • Mail to Support
    • Frequently Asked Questions
  • Join & Follow Us
    • YouTube
    • Discord Community
    • GitHub
    • Twitter
    • LinkedIn
    • Blog
    • Instagram
    • Facebook
Powered by GitBook
On this page

Was this helpful?

  1. DESIGN TO FLUTTER

Colors

PreviousCreate Responsive CodeNextText Styles

Last updated 1 year ago

Was this helpful?

When you import a design into Monday Hero, it identifies all the colors used in the design and saves them in HEX and RGB formats, along with their opacity values. It also removes duplicates to ensure your app has no redundant colors.

Navigate to the 'Theme/Colors' tab to review and rename the colors in your project. Please note that all colors are automatically downloaded when you sync the code with your project.

Generated Code Example:

import 'package:flutter/material.dart';

abstract class MHAppColors {
  Color get anchor => const Color(0xff3a434f);
  Color get cloud => const Color(0xffb3bfd0);
  Color get daisy => const Color(0xffffffff);
  Color get pewter => const Color(0xff5c6979);
  Color get salt => const Color(0xffe6e6e6);
  Color get silver => const Color(0xffa8b6c8);
  Color get spruce => const Color(0xff323b45);
}

Check out the following directory to access the colors file generated by Monday Hero:

/ProjectName/lib/theme/mh_generated/mh_app_colors.dart

Monday Hero Color Screen