def select_palette(colors_dic, palette_name):
    """
    colors_loading allows shapash to load a json file which contains different 
    palettes of colors that can be used in the plot

    Parameters
    ----------
    colors_dic : dict
        dictionnary with every palettes
    palette_name : String
        name of the palette

    Returns
    -------
    dict: 
        contains colors of one palette
    """
    if palette_name not in colors_dic.keys():
        raise ValueError(f"Palette {palette_name} not found.")
    return colors_dic[palette_name]