uni_color_name 0.4.0 uni_color_name: ^0.4.0 copied to clipboard
Identifies the value of a color by name and vice versa. Knows over 900 color names. The easy-to-use and well-tested library.
// ignore_for_file: avoid_print
import 'package:uni_color_name/uni_color_name.dart';
void main() {
final palette = UniPalette(PalettesMaps.zeplin);
final c = UniColorName(palette);
print(c.value('forrest green'));
print(c.name((0.08, 0.27, 0.02), decimals: 2));
}