[Release] color_palette_plus v2.0.0 - Supercharged Material 3 Theme Generation ๐จ

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
ThemeGeneratorclass for automatic theme generation following Material 3 guidelinesSupport for both light and dark themes with
ThemePairAdvanced theme customization through
ThemeConfigComprehensive 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
// 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 to see the library in action!
Installation
Add to your pubspec.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
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


