
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
final theme = ThemeGenerator.generateTheme(
baseColor,
config: ThemeConfig(
colorSchemeConfig: ColorSchemeConfig(
harmonyType: HarmonyType.analogous,
analogousAngle: 30,
harmonySteps: 5,
),
),
);
final themePair = ThemeGenerator.generateThemePair(baseColor);
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
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