retro-react
Version:
A React component library for building retro-style websites
2 lines (1 loc) • 470 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../constants/colors.js");exports.default=function(e,s){if(s&&s.colors&&s.colors[e])return s.colors[e];switch(e){case"error":return r.ERROR;case"success":return r.SUCCESS;case"warn":return r.WARN;case"secondary":return r.SECONDARY;case"primary":return r.PRIMARY;case"greyscale":return r.SHADE_3;case"greyscale-dark":return r.SHADE_6;case"highlight":return r.HIGHLIGHT;default:return e}};