@brightlayer-ui/react-themes
Version:
React themes for Brightlayer UI applications
55 lines (54 loc) • 2.43 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
var colors_1 = require("@brightlayer-ui/colors");
exports.default = {
styleOverrides: {
colorPrimary: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: colors_1.BLUIColors.blue[100] }, theme.applyStyles('dark', {
backgroundColor: "rgba(".concat(theme.vars.palette.primary.dark, " / 0.7)"),
})));
},
colorSecondary: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: colors_1.BLUIColors.lightBlue[100] }, theme.applyStyles('dark', {
backgroundColor: "rgba(".concat(theme.vars.palette.secondary.dark, " / 0.7)"),
})));
},
dashedColorPrimary: function (_a) {
var theme = _a.theme;
return (__assign({}, theme.applyStyles('dark', {
backgroundImage: "radial-gradient(".concat("rgba(".concat(theme.vars.palette.primary.dark, " / 0.5)"), " 0%, ").concat("rgba(".concat(theme.vars.palette.primary.dark, " / 0.7)"), " 16%, transparent 42%)"),
})));
},
dashedColorSecondary: function (_a) {
var theme = _a.theme;
return (__assign({}, theme.applyStyles('dark', {
backgroundImage: "radial-gradient(".concat("rgba(".concat(theme.vars.palette.secondary.dark, " / 0.5)"), " 0%, ").concat("rgba(".concat(theme.vars.palette.secondary.dark, " / 0.7)"), " 16%, transparent 42%)"),
})));
},
barColorPrimary: function (_a) {
var theme = _a.theme;
return (__assign({}, theme.applyStyles('dark', {
backgroundColor: theme.vars.palette.primary.dark,
})));
},
barColorSecondary: function (_a) {
var theme = _a.theme;
return (__assign({}, theme.applyStyles('dark', {
backgroundColor: theme.vars.palette.secondary.dark,
})));
},
},
};