import json


def load_style(style: str) -> dict:
    """Load a json file containing the keyword arguments to use for plot styling

    Parameters:
        style: path to json file containing matplotlib style keyword arguments

    Returns:
        dictionary of matplotlib keyword arguments

    """

    with open(style, 'r') as styles_src:
        styles = json.load(styles_src)
    return styles