# [Release] color_palette_plus v2.0.0 - Supercharged Material 3 Theme Generation 🎨

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1738155331013/93cs5Z4xr.jpeg?auto=format align="center")

Hey Flutter devs! I'm excited to announce the release of version 2.0.0 of color\_palette\_plus, a comprehensive Flutter library for color palette generation and theme management. This major update brings powerful Material 3 theme generation capabilities and a more robust color handling system.

## What's New in 2.0.0?

### 🎯 Theme Generation

* New `ThemeGenerator` class for automatic theme generation following Material 3 guidelines
    
* Support for both light and dark themes with `ThemePair`
    
* Advanced theme customization through `ThemeConfig`
    
* Comprehensive color role system aligned with Material 3 specifications
    

### 🌈 Color Harmonies

* Monochromatic palettes for subtle, sophisticated looks
    
* Analogous color schemes for harmonious, unified designs
    
* Complementary colors for strong visual contrast
    
* Customizable harmony configurations (steps, angles, etc.)
    

### ⚡ Improved Color Handling

* Enhanced color transformation algorithms
    
* Better contrast ratios in generated shades
    
* Optimized HSL adjustments for natural color variations
    
* Type-safe and null-safe implementation
    

## Features Overview

```dart
// Generate a complete theme
final theme = ThemeGenerator.generateTheme(
  baseColor,
  config: ThemeConfig(
    colorSchemeConfig: ColorSchemeConfig(
      harmonyType: HarmonyType.analogous,
      analogousAngle: 30,
      harmonySteps: 5,
    ),
  ),
);

// Generate both light and dark themes
final themePair = ThemeGenerator.generateThemePair(baseColor);

// Create color harmonies
final monochromaticColors = ColorPalettes.monochromatic(baseColor, steps: 5);
final analogousColors = ColorPalettes.analogous(baseColor, angle: 30);
final complementaryColors = ColorPalettes.complementary(baseColor);
```

## Try It Out!

Check out our [live demo](https://ishangavidusha.github.io/color_palette_plus/) to see the library in action!

### Installation

Add to your pubspec.yaml:

```yaml
dependencies:
  color_palette_plus: ^2.0.0
```

## Breaking Changes

* Updated theme generation API to use new configuration classes
    
* Revised color role system to match Material 3 specifications
    

## Links

* [Package on](https://pub.dev/packages/color_palette_plus) [pub.dev](http://pub.dev)
    
* [GitHub Repository](https://github.com/ishangavidusha/color_palette_plus)
    
* [Documentation](https://github.com/ishangavidusha/color_palette_plus#readme)
    

We'd love to hear your feedback and suggestions for future improvements! Feel free to open issues or contribute on GitHub. Happy coding! 🚀

#flutter #dart #material3 #flutterdev #design
