import 'package:flutter/painting.dart';


Color accentColorForSeed(String seed, {required bool isDark}) {
  final hash = seed.runes.fold<int>(0, (value, rune) => value * 37 + rune);
  final hue = (hash % 360).toDouble();
  final saturation = isDark ? 0.48 : 0.40;
  final lightness = isDark ? 0.42 : 0.70;
  return HSLColor.fromAHSL(1, hue, saturation, lightness).toColor();
}
