import { Color } from "@vived/core";
import { ThemeColors, ThemeColorType } from "../Entities";
export function getPrimaryColor(appObjects) {
    const theme = ThemeColors.get(appObjects);
    if (theme) {
        return theme.getColorForType(ThemeColorType.primary);
    }
    else {
        appObjects.submitError("getPrimaryColor", "Unable to find ThemeColors");
        return Color.RGB(0, 0, 0);
    }
}
//# sourceMappingURL=getPrimaryColor.js.map