@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
68 lines • 2.38 kB
JavaScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
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);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
import { createTheme as muiCreateTheme, } from '@mui/material/styles';
import { createBreakpoints } from '@mui/system';
import deepMerge from 'deepmerge';
import baseTheme from './baseTheme';
import components from './components';
import E4ECustomDimensions from './E4ECustomDimensions';
import palette from './palette';
import props from './props';
import shadows from './shadows';
import spacing, { SPACING_PX } from './spacing';
import typography from './typography';
export var createTheme = function (options) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
return muiCreateTheme.apply(void 0, __spreadArray([options], args, false));
};
export var THEME_ENCOURAGE_E4E_OPTIONS = deepMerge(baseTheme, {
breakpoints: createBreakpoints({
values: {
lg: 1440,
md: 1280,
sm: 820,
xl: 1920,
xs: 0,
},
}),
components: components,
customDims: __assign({}, E4ECustomDimensions),
palette: palette,
props: props,
shadows: shadows,
spacing: spacing,
spacingPx: SPACING_PX,
typography: typography,
},
// Replace arrays instead of merging them together
{ arrayMerge: function (_, source) { return source; } });
export var THEME_ENCOURAGE_E4E = createTheme(THEME_ENCOURAGE_E4E_OPTIONS);
export default THEME_ENCOURAGE_E4E;
//# sourceMappingURL=index.js.map