@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
12 lines • 408 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.muiColor = void 0;
var muiColor = function (colorTokenName) { return function (_a) {
var theme = _a.theme;
var tokenName = "palette." + colorTokenName;
return tokenName in theme.tokenIndex
? theme.tokenIndex[tokenName]
: null;
}; };
exports.muiColor = muiColor;
//# sourceMappingURL=color.js.map