def read_configuration(filename):
    """
    Read a kitty configuration file and extract only theme related keys and values.

    :param filename: path to the configuration file
    :type filename: str
    :return: a map with theme related configuration values
    :rtype: dict[str, str]
    """
    with open(filename, "r") as fp:
        lines = fp.readlines()
        print(filename)
        theme_config = dict([extract_configuration_pair(line) for line in lines if is_valid(line)])
    return theme_config

    Read a kitty configuration file and extract only theme related keys and values.

    :param filename: path to the configuration file
    :type filename: str
    :return: a map with theme related configuration values
    :rtype: dict[str, str]
    
.tools/palette.py