mirrored_repositories/felexo-app/lib
import 'dart:ui';

import 'package:flutter/material.dart';

Map<int, Color> color = {
  50: Color.fromRGBO(136, 14, 79, .1),
  100: Color.fromRGBO(136, 14, 79, .2),
  200: Color.fromRGBO(136, 14, 79, .3),
  300: Color.fromRGBO(136, 14, 79, .4),
  400: Color.fromRGBO(136, 14, 79, .5),
  500: Color.fromRGBO(136, 14, 79, .6),
  600: Color.fromRGBO(136, 14, 79, .7),
  700: Color.fromRGBO(136, 14, 79, .8),
  800: Color.fromRGBO(136, 14, 79, .9),
  900: Color.fromRGBO(136, 14, 79, 1),
};

MaterialColor backgroundColor = MaterialColor(0xFF0C0C0C, color);
MaterialColor backgroundColorLight = MaterialColor(0xFFF7F7F7, color);
MaterialColor primaryColor = MaterialColor(0xFFFFFFFF, color);
MaterialColor cardColor = MaterialColor(0xFF000000, color);
MaterialColor cardColorLight = MaterialColor(0xFFFFFFFF, color);
MaterialColor textColor = MaterialColor(0xFFFFFFFF, color);
MaterialColor iconColor = MaterialColor(0xff5f6368, color);
MaterialColor iconColorLight = MaterialColor(0xFF9298A0, color);

class Hexcolor extends Color {
  static int _getColorFromHex(String hexColor) {
    hexColor = hexColor.toUpperCase().replaceAll("#", "");
    if (hexColor.length == 6) {
      hexColor = "FF" + hexColor;
    }
    return int.parse(hexColor, radix: 16);
  }

  Hexcolor(final String hexColor) : super(_getColorFromHex(hexColor));
}
