def METHOD_NAME():
    base_css_path = os.path.join(THEME_LOCATION, "base.css")
    try:
        with open(base_css_path, encoding="utf-8") as f:
            css = f.read()
    except Exception:  # pylint: disable=braod-except
        log.warning("Failed to load base theme at %s", base_css_path)
        css = ""
    theme_path = os.path.join(THEME_LOCATION, Conf.theme_name)
    css_path = os.path.join(theme_path, "theme.css")
    if os.path.exists(css_path):
        try:
            with open(css_path, encoding="utf-8") as f:
                css += "\n" + f.read()
        except Exception:  # pylint: disable=broad-except
            log.warning("Failed to load theme CSS at %s", css_path)
    theme_resources_path = RES_LOCATION
    if sys.platform == "win32":
        theme_resources_path = theme_resources_path.replace("\\", "/")
        theme_path = theme_path.replace("\\", "/")
    CSS.global_css.am_obj = Template(css).safe_substitute(resources=theme_resources_path, theme=theme_path)
    CSS.global_css.am_event()