material_color_utilities
Algorithms and utilities that power the Material Design 3 color system, including choosing theme colors from images and creating tones of colors; all in a new color space.
This is a low-level package. For developers looking to adopt Material 3 features such as dynamic color and color harmonization in their apps, please see the dynamic_color package.
Getting started
Add the following to your deps
:
"//third_party/dart/material_color_utilities",
Usage
import 'package:material_color_utilities/material_color_utilities.dart';
For more information, see the main README.
Contributing
This repo is not accepting external contributions, but feature requests and bug reports are welcome on GitHub.
Publishing
- Must be a member of https://pub.dev/publishers/material.io
- Version numbering follows Semantic Versioning
- Ensure
material_color_utilities.dart
exports all required libraries
- Update version and changes in
CHANGELOG.md
. - Update version in
pubspec.yaml
. - Publish with
dart pub publish
orflutter pub publish
.
Libraries
- blend/blend
- contrast/contrast
- dislike/dislike_analyzer
- dynamiccolor/dynamic_color
- dynamiccolor/dynamic_scheme
- dynamiccolor/material_dynamic_colors
- dynamiccolor/src/contrast_curve
- dynamiccolor/src/tone_delta_pair
- dynamiccolor/variant
- hct/cam16
- hct/hct
- hct/src/hct_solver
- hct/viewing_conditions
- material_color_utilities
- palettes/core_palette
- palettes/tonal_palette
- quantize/quantizer
- quantize/quantizer_celebi
- quantize/quantizer_map
- quantize/quantizer_wsmeans
- quantize/quantizer_wu
- quantize/src/point_provider
- quantize/src/point_provider_lab
- scheme/scheme
- scheme/scheme_content
- scheme/scheme_expressive
- scheme/scheme_fidelity
- scheme/scheme_fruit_salad
- scheme/scheme_monochrome
- scheme/scheme_neutral
- scheme/scheme_rainbow
- scheme/scheme_tonal_spot
- scheme/scheme_vibrant
- score/score
- temperature/temperature_cache
- utils/color_utils
- utils/math_utils
- utils/string_utils