@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
25 lines (24 loc) • 794 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "plasmaCSSVariablesResolver", {
enumerable: true,
get: function() {
return plasmaCSSVariablesResolver;
}
});
var _core = require("@mantine/core");
var plasmaCSSVariablesResolver = function(theme) {
var result = {
variables: {},
dark: {},
light: {}
};
(0, _core.keys)(theme.colors).forEach(function(color) {
result.light["--mantine-color-".concat(color, "-light")] = theme.colors[color][color === 'gray' ? 1 : 0];
result.light["--mantine-color-".concat(color, "-light-hover")] = theme.colors[color][color === 'gray' ? 2 : 1];
});
return result;
};
//# sourceMappingURL=plasmaCSSVariablesResolver.js.map