creevey
Version:
Cross-browser screenshot testing tool for Storybook with fancy UI Runner
14 lines • 453 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.themeBorderColors = void 0;
exports.getBorderColor = getBorderColor;
exports.themeBorderColors = {
actual: 'negative',
expect: 'positive',
diff: 'secondary',
};
const isColor = (theme, color) => color in theme.color;
function getBorderColor(theme, color) {
return isColor(theme, color) ? theme.color[color] : color;
}
//# sourceMappingURL=common.js.map