{"size": 945, "ext": "js", "max_stars_repo_path": "src/components/helpers/font-color.js", "max_stars_repo_name": "Zeitwaechter/vue-util-components", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/helpers/font-color.js", "max_issues_repo_name": "Zeitwaechter/vue-util-components", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/helpers/font-color.js", "max_forks_repo_name": "Zeitwaechter/vue-util-components", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.5, "max_line_length": 64, "alphanum_fraction": 0.4444444444}
/**
 * @param statusString {string}
 * @param outside {boolean}
 * @return string
 */
export function selectFontColor(statusString, outside = false) {

    switch (statusString) {
        case `success`:
        case `warning`:
        case `danger`:
        case `info`:
        case `primary`:
        case `secondary`:
        case `tertiary`:
            if (outside) {
                statusString = `text-gray-700`;
            } else {
                statusString = `text-gray-900`;
            }
            break;

        case `dark`:
            if (outside) {
                statusString = `text-black`;
            } else {
                statusString = `text-white`;
            }
            break;

        case `light`:
            if (outside) {
                statusString = `text-white`;
            } else {
                statusString = `text-black`;
            }
            break;
    }

    return statusString;
}
