<filename>tmp/a.py
import collections
import inspect


def get_variable_name(variable):
    callers_local_vars = inspect.currentframe().f_back.f_locals.items()
    return [var_name for var_name, var_val in callers_local_vars if var_val is variable]


red = {
    "red_50": "#fde0dc",
    "red_100": "#f9bdbb",
    "red_200": "#f69988",
    "red_300": "#f36c60",
    "red_400": "#e84e40",
    "red_500": "#e51c23",
    "red_600": "#dd191d",
    "red_700": "#d01716",
    "red_800": "#c41411",
    "red_900": "#b0120a",
    "red_A100": "#ff7997",
    "red_A200": "#ff5177",
    "red_A400": "#ff2d6f",
    "red_A700": "#e00032",
}


# <!--Pink --:"
pink = {
    "pink_50": "#fce4ec",
    "pink_100": "#f8bbd0",
    "pink_200": "#f48fb1",
    "pink_300": "#f06292",
    "pink_400": "#ec407a",
    "pink_500": "#e91e63",
    "pink_600": "#d81b60",
    "pink_700": "#c2185d",
    "pink_800": "#ad1457",
    "pink_900": "#880e4f",
    "pink_A100": "#ff80ab",
    "pink_A200": "#ff4081",
    "pink_A400": "#f50057",
    "pink_A700": "#c51162",
}

# <!--Purple --:"
purple = {
    "purple_50": "#f3e5f5",
    "purple_100": "#e1bee7",
    "purple_200": "#ce93d8",
    "purple_300": "#ba68c8",
    "purple_400": "#ab47bc",
    "purple_500": "#9c27b0",
    "purple_600": "#8e24aa",
    "purple_700": "#7b1fa2",
    "purple_800": "#6a1b9a",
    "purple_900": "#4a148c",
    "purple_A100": "#ea80fc",
    "purple_A200": "#e040fb",
    "purple_A400": "#d500f9",
    "purple_A700": "#aa00ff",
}

# <!--Deep Purple-- :"
deepPurple = {
    "deepPurple_50": "#ede7f6",
    "deepPurple_100": "#d1c4e9",
    "deepPurple_200": "#b39ddb",
    "deepPurple_300": "#9575cd",
    "deepPurple_400": "#7e57c2",
    "deepPurple_500": "#673ab7",
    "deepPurple_600": "#5e35b1",
    "deepPurple_700": "#512da8",
    "deepPurple_800": "#4527a0",
    "deepPurple_900": "#311b92",
    "deepPurple_A100": "#b388ff",
    "deepPurple_A200": "#7c4dff",
    "deepPurple_A400": "#651fff",
    "deepPurple_A700": "#6200ea",
}
# <!--Indigo --:"
indigo = {
    "indigo_50": "#e8eaf6",
    "indigo_100": "#c5cae9",
    "indigo_200": "#9fa8da",
    "indigo_300": "#7986cb",
    "indigo_400": "#5c5bc0",
    "indigo_500": "#3f51b5",
    "indigo_600": "#3949ab",
    "indigo_700": "#303f9f",
    "indigo_800": "#283593",
    "indigo_900": "#1a237e",
    "indigo_A100": "#8c9eff",
    "indigo_A200": "#536dfe",
    "indigo_A400": "#3d5afe",
    "indigo_A700": "#304ffe",
}

# <!--Blue --:"
blue = {
    "blue_50": "#e7e9fd",
    "blue_100": "#d0d9ff",
    "blue_200": "#afbfff",
    "blue_300": "#91a7ff",
    "blue_400": "#738ffe",
    "blue_500": "#5677fc",
    "blue_600": "#4e6cef",
    "blue_700": "#455ede",
    "blue_800": "#3b50ce",
    "blue_900": "#2a36b1",
    "blue_A100": "#a6baff",
    "blue_A200": "#6889ff",
    "blue_A400": "#4d73ff",
    "blue_A700": "#4d69ff",
}

# <!--Light Blue-- :"
lightBlue = {
    "lightBlue_50": "#e1f5fe",
    "lightBlue_100": "#b3e5fc",
    "lightBlue_200": "#81d4fa",
    "lightBlue_300": "#4fc3f7",
    "lightBlue_400": "#29b6f6",
    "lightBlue_500": "#03a9f4",
    "lightBlue_600": "#039be5",
    "lightBlue_700": "#0288d1",
    "lightBlue_800": "#0277bd",
    "lightBlue_900": "#01579b",
    "lightBlue_A100": "#80d8ff",
    "lightBlue_A200": "#40c4ff",
    "lightBlue_A400": "#00b0ff",
    "lightBlue_A700": "#0091ea",
}
# <!--Cyan --:"
cyan = {
    "cyan_50": "#e0f7fa",
    "cyan_100": "#b2ebf2",
    "cyan_200": "#80deea",
    "cyan_300": "#4dd0e1",
    "cyan_400": "#26c6da",
    "cyan_500": "#00bcd4",
    "cyan_600": "#00acc1",
    "cyan_700": "#0097a7",
    "cyan_800": "#00838f",
    "cyan_900": "#006064",
    "cyan_A100": "#84ffff",
    "cyan_A200": "#18ffff",
    "cyan_A400": "#00e5ff",
    "cyan_A700": "#00b8d4",
}
# <!--Teal --:"
teal = {
    "teal_50": "#e0f2f1",
    "teal_100": "#b2dfdb",
    "teal_200": "#80cbc4",
    "teal_300": "#4db6ac",
    "teal_400": "#26a69a",
    "teal_500": "#009688",
    "teal_600": "#00897b",
    "teal_700": "#00796b",
    "teal_800": "#00695c",
    "teal_900": "#004d40",
    "teal_A100": "#a7ffeb",
    "teal_A200": "#64ffda",
    "teal_A400": "#1de9b6",
    "teal_A700": "#00bfa5",
}
# <!--Green --:"
green = {
    "green_50": "#d0f8ce",
    "green_100": "#a3e9a4",
    "green_200": "#72d572",
    "green_300": "#42bd41",
    "green_400": "#2baf2b",
    "green_500": "#259b24",
    "green_600": "#0a8f08",
    "green_700": "#0a7e07",
    "green_800": "#056f00",
    "green_900": "#0d5302",
    "green_A100": "#a2f78d",
    "green_A200": "#5af158",
    "green_A400": "#14e715",
    "green_A700": "#12c700",
}
# <!--Light Green-- :"
lightGreen = {
    "lightGreen_50": "#f1f8e9",
    "lightGreen_100": "#dcedc8",
    "lightGreen_200": "#c5e1a5",
    "lightGreen_300": "#aed581",
    "lightGreen_400": "#9ccc65",
    "lightGreen_500": "#8bc34a",
    "lightGreen_600": "#7cb342",
    "lightGreen_700": "#689f38",
    "lightGreen_800": "#558b2f",
    "lightGreen_900": "#33691e",
    "lightGreen_A100": "#ccff90",
    "lightGreen_A200": "#b2ff59",
    "lightGreen_A400": "#76ff03",
    "lightGreen_A700": "#64dd17",
}
# <!--lime --:"
lime = {
    "lime_50": "#f9fbe7",
    "lime_100": "#f0f4c3",
    "lime_200": "#e6ee9c",
    "lime_300": "#dce775",
    "lime_400": "#d4e157",
    "lime_500": "#cddc39",
    "lime_600": "#c0ca33",
    "lime_700": "#afb42b",
    "lime_800": "#9e9d24",
    "lime_900": "#827717",
    "lime_A100": "#f4ff81",
    "lime_A200": "#eeff41",
    "lime_A400": "#c6ff00",
    "lime_A700": "#aeea00",
}
# <!--Yellow --:"
yellow = {
    "yellow_50": "#fffde7",
    "yellow_100": "#fff9c4",
    "yellow_200": "#fff59d",
    "yellow_300": "#fff176",
    "yellow_400": "#ffee58",
    "yellow_500": "#ffeb3b",
    "yellow_600": "#fdd835",
    "yellow_700": "#fbc02d",
    "yellow_800": "#f9a825",
    "yellow_900": "#f57f17",
    "yellow_A100": "#ffff8d",
    "yellow_A200": "#ffff00",
    "yellow_A400": "#ffea00",
    "yellow_A700": "#ffd600",
}
# <!--Amber --:"
amber = {
    "amber_50": "#fff8e1",
    "amber_100": "#ffecb3",
    "amber_200": "#ffe082",
    "amber_300": "#ffd54f",
    "amber_400": "#ffca28",
    "amber_500": "#ffc107",
    "amber_600": "#ffb300",
    "amber_700": "#ffa000",
    "amber_800": "#ff8f00",
    "amber_900": "#ff6f00",
    "amber_A100": "#ffe57f",
    "amber_A200": "#ffd740",
    "amber_A400": "#ffc400",
    "amber_A700": "#ffab00",
}
# <!--Orange --:"
orange = {
    "orange_50": "#fff3e0",
    "orange_100": "#ffe0b2",
    "orange_200": "#ffcc80",
    "orange_300": "#ffb74d",
    "orange_400": "#ffa726",
    "orange_500": "#ff9800",
    "orange_600": "#fb8c00",
    "orange_700": "#f57c00",
    "orange_800": "#ef6c00",
    "orange_900": "#e65100",
    "orange_A100": "#ffd180",
    "orange_A200": "#ffab40",
    "orange_A400": "#ff9100",
    "orange_A700": "#ff6d00",
}
# <!--Deep Orange-- :"
deepOrange = {
    "deepOrange_50": "#fbe9e7",
    "deepOrange_100": "#ffccbc",
    "deepOrange_200": "#ffab91",
    "deepOrange_300": "#ff8a65",
    "deepOrange_400": "#ff7043",
    "deepOrange_500": "#ff5722",
    "deepOrange_600": "#f4511e",
    "deepOrange_700": "#e64a19",
    "deepOrange_800": "#d84315",
    "deepOrange_900": "#bf360c",
    "deepOrange_A100": "#ff9e80",
    "deepOrange_A200": "#ff6e40",
    "deepOrange_A400": "#ff3d00",
    "deepOrange_A700": "#dd2c00",
}
# <!--Brown --:"
brown = {
    "brown_50": "#efebe9",
    "brown_100": "#d7ccc8",
    "brown_200": "#bcaaa4",
    "brown_300": "#a1887f",
    "brown_400": "#8d6e63",
    "brown_500": "#795548",
    "brown_600": "#6d4c41",
    "brown_700": "#5d4037",
    "brown_800": "#4e342e",
    "brown_900": "#3e2723",
}
# <!--Grey --:"
grey = {
    "grey_50": "#fafafa",
    "grey_100": "#f5f5f5",
    "grey_200": "#eeeeee",
    "grey_300": "#e0e0e0",
    "grey_400": "#dbdbdb",
    "grey_500": "#9e9e9e",
    "grey_600": "#757575",
    "grey_700": "#616161",
    "grey_800": "#424242",
    "grey_900": "#212121",
    "grey_A100": "#000000",
    "grey_A200": "#ffffff",
}
# <!--Blue Grey-- :"
blueGrey = {
    "blueGrey_50": "#eceff1",
    "blueGrey_100": "#cfd8dc",
    "blueGrey_200": "#b0bec5",
    "blueGrey_300": "#90a4ae",
    "blueGrey_400": "#78909c",
    "blueGrey_500": "#607d8b",
    "blueGrey_600": "#546e7a",
    "blueGrey_700": "#455a64",
    "blueGrey_800": "#37474f",
    "blueGrey_900": "#263238",
}
# <!--Black --:"
black = {"black": "#000000"}
# <!--White --:"
white = {"white": "#ffffff"}


colors = collections.OrderedDict(
    [
        ("red", red),
        ("pink", pink),
        ("purple", purple),
        ("deepPurple", deepPurple),
        ("indigo", indigo),
        ("blue", blue),
        ("lightBlue", lightBlue),
        ("cyan", cyan),
        ("teal", teal),
        ("green", green),
        ("lightGreen", lightGreen),
        ("lime", lime),
        ("yellow", yellow),
        ("amber", amber),
        ("orange", orange),
        ("deepOrange", deepOrange),
        ("brown", brown),
        ("grey", grey),
        ("blueGrey", blueGrey),
        ("black", black),
        ("white", white),
    ]
)


a = [
    "50",
    "100",
    "200",
    "300",
    "400",
    "500",
    "600",
    "700",
    "800",
    "900",
    "A100",
    "A200",
    "A400",
    "A700",
]
for c in colors:
    name = c
    cs = colors[c]
    names = [name + "_" + _a for _a in a]
    # print(name)
    for n in names:
        if n in cs:
            print('"' + cs[n] + '"', end=",")
    print()


colors = [
    "#fde0dc",
    "#f9bdbb",
    "#f69988",
    "#f36c60",
    "#e84e40",
    "#e51c23",
    "#dd191d",
    "#d01716",
    "#c41411",
    "#b0120a",
    "#ff7997",
    "#ff5177",
    "#ff2d6f",
    "#e00032",
    "#fce4ec",
    "#f8bbd0",
    "#f48fb1",
    "#f06292",
    "#ec407a",
    "#e91e63",
    "#d81b60",
    "#c2185d",
    "#ad1457",
    "#880e4f",
    "#ff80ab",
    "#ff4081",
    "#f50057",
    "#c51162",
    "#f3e5f5",
    "#e1bee7",
    "#ce93d8",
    "#ba68c8",
    "#ab47bc",
    "#9c27b0",
    "#8e24aa",
    "#7b1fa2",
    "#6a1b9a",
    "#4a148c",
    "#ea80fc",
    "#e040fb",
    "#d500f9",
    "#aa00ff",
    "#ede7f6",
    "#d1c4e9",
    "#b39ddb",
    "#9575cd",
    "#7e57c2",
    "#673ab7",
    "#5e35b1",
    "#512da8",
    "#4527a0",
    "#311b92",
    "#b388ff",
    "#7c4dff",
    "#651fff",
    "#6200ea",
    "#e8eaf6",
    "#c5cae9",
    "#9fa8da",
    "#7986cb",
    "#5c5bc0",
    "#3f51b5",
    "#3949ab",
    "#303f9f",
    "#283593",
    "#1a237e",
    "#8c9eff",
    "#536dfe",
    "#3d5afe",
    "#304ffe",
    "#e7e9fd",
    "#d0d9ff",
    "#afbfff",
    "#91a7ff",
    "#738ffe",
    "#5677fc",
    "#4e6cef",
    "#455ede",
    "#3b50ce",
    "#2a36b1",
    "#a6baff",
    "#6889ff",
    "#4d73ff",
    "#4d69ff",
    "#e1f5fe",
    "#b3e5fc",
    "#81d4fa",
    "#4fc3f7",
    "#29b6f6",
    "#03a9f4",
    "#039be5",
    "#0288d1",
    "#0277bd",
    "#01579b",
    "#80d8ff",
    "#40c4ff",
    "#00b0ff",
    "#0091ea",
    "#e0f7fa",
    "#b2ebf2",
    "#80deea",
    "#4dd0e1",
    "#26c6da",
    "#00bcd4",
    "#00acc1",
    "#0097a7",
    "#00838f",
    "#006064",
    "#84ffff",
    "#18ffff",
    "#00e5ff",
    "#00b8d4",
    "#e0f2f1",
    "#b2dfdb",
    "#80cbc4",
    "#4db6ac",
    "#26a69a",
    "#009688",
    "#00897b",
    "#00796b",
    "#00695c",
    "#004d40",
    "#a7ffeb",
    "#64ffda",
    "#1de9b6",
    "#00bfa5",
    "#d0f8ce",
    "#a3e9a4",
    "#72d572",
    "#42bd41",
    "#2baf2b",
    "#259b24",
    "#0a8f08",
    "#0a7e07",
    "#056f00",
    "#0d5302",
    "#a2f78d",
    "#5af158",
    "#14e715",
    "#12c700",
    "#f1f8e9",
    "#dcedc8",
    "#c5e1a5",
    "#aed581",
    "#9ccc65",
    "#8bc34a",
    "#7cb342",
    "#689f38",
    "#558b2f",
    "#33691e",
    "#ccff90",
    "#b2ff59",
    "#76ff03",
    "#64dd17",
    "#f9fbe7",
    "#f0f4c3",
    "#e6ee9c",
    "#dce775",
    "#d4e157",
    "#cddc39",
    "#c0ca33",
    "#afb42b",
    "#9e9d24",
    "#827717",
    "#f4ff81",
    "#eeff41",
    "#c6ff00",
    "#aeea00",
    "#fffde7",
    "#fff9c4",
    "#fff59d",
    "#fff176",
    "#ffee58",
    "#ffeb3b",
    "#fdd835",
    "#fbc02d",
    "#f9a825",
    "#f57f17",
    "#ffff8d",
    "#ffff00",
    "#ffea00",
    "#ffd600",
    "#fff8e1",
    "#ffecb3",
    "#ffe082",
    "#ffd54f",
    "#ffca28",
    "#ffc107",
    "#ffb300",
    "#ffa000",
    "#ff8f00",
    "#ff6f00",
    "#ffe57f",
    "#ffd740",
    "#ffc400",
    "#ffab00",
    "#fff3e0",
    "#ffe0b2",
    "#ffcc80",
    "#ffb74d",
    "#ffa726",
    "#ff9800",
    "#fb8c00",
    "#f57c00",
    "#ef6c00",
    "#e65100",
    "#ffd180",
    "#ffab40",
    "#ff9100",
    "#ff6d00",
    "#fbe9e7",
    "#ffccbc",
    "#ffab91",
    "#ff8a65",
    "#ff7043",
    "#ff5722",
    "#f4511e",
    "#e64a19",
    "#d84315",
    "#bf360c",
    "#ff9e80",
    "#ff6e40",
    "#ff3d00",
    "#dd2c00",
    "#efebe9",
    "#d7ccc8",
    "#bcaaa4",
    "#a1887f",
    "#8d6e63",
    "#795548",
    "#6d4c41",
    "#5d4037",
    "#4e342e",
    "#3e2723",
    "#fafafa",
    "#f5f5f5",
    "#eeeeee",
    "#e0e0e0",
    "#dbdbdb",
    "#9e9e9e",
    "#757575",
    "#616161",
    "#424242",
    "#212121",
    "#eceff1",
    "#cfd8dc",
    "#b0bec5",
    "#90a4ae",
    "#78909c",
    "#607d8b",
    "#546e7a",
    "#455a64",
    "#37474f",
    "#263238",
]
