@gannochenko/ui.styled-components
Version:
<!-- PROJECT SHIELDS --> <!-- *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, co
11 lines • 482 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.foregroundColor = void 0;
const transition_1 = require("./transition");
const foregroundColor = (color = 'inherit', hoverColor, transitionTime = 0) => `
color: ${color};
${color !== hoverColor ? `&:hover { color: ${hoverColor}; }` : ''};
${(0, transition_1.transition)('color', transitionTime)};
`;
exports.foregroundColor = foregroundColor;
//# sourceMappingURL=foregroundColor.js.map