import 'dart:ui'; enum ThemeCode{ background_primary, background_secondary, background_tertiary, text_primary, text_secondary, text_tertiary, button_primary, button_secondary } abstract class ThemePort { late Map theme; late List> cardColors; Color getColorFor(ThemeCode code){ Color? c = theme[code]; if (c == null) { throw Exception("Theme key not found"); } return c; } List getCardColorFor(int index){ return cardColors[index % cardColors.length]; } }