Search packages, repositories and app categories

derived_colors cover
Package detailsv0.4.0

derived_colors

Generate color variants.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
7K
Likes
25
Pub points
140

Install package

flutter pub add derived_colors

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Derived Colors is a Flutter/Dart package that enables developers to generate color variants from a base color using predefined derivation rules. It simplifies the creation of consistent color palettes by automatically producing lighter, darker, brighter, or more saturated versions. Ideal for dynamic UIs requiring theme adaptability, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The package integrates seamlessly with Flutter’s color system and enhances design consistency across applications.

Use cases

  • Creating dynamic themes
  • Generating color palettes
  • Enhancing UI consistency
  • Supporting dark/light mode transitions
  • Customizing component colors
  • Building accessible color schemes

Key features

  • Automatic color variant generation
  • Base color inheritance
  • Cross-platform support
  • Simple API integration
  • Theme-friendly design
  • Extensible derivation logic

Suitable for

  • UI/UX designers
  • Flutter developers
  • Theme creators
  • App developers seeking consistency
  • Accessibility-focused projects

Considerations

  • Requires understanding of color theory
  • Limited to predefined derivation methods
  • May need manual tuning for complex needs
  • Depends on base color quality
  • Not intended for advanced color manipulation

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

derived_colors

logo

Generate color variants.

Usage

import 'package:derived_colors/derived_colors.dart';

final color = Color(0xFFFF0000);
final light = color.variants.light;
final dark = color.variants.dark;
final invert = color.variants.invert;

final hoverColor = color.subtle();

Thanks

  • Bulma : inspired by Bulma's calculations.

Categories

Source repository

Projects using this package