You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
611 B
JavaScript
13 lines
611 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
import prepareCssVars from './prepareCssVars';
|
|
function createCssVarsTheme(theme) {
|
|
var cssVarPrefix = theme.cssVarPrefix,
|
|
shouldSkipGeneratingVar = theme.shouldSkipGeneratingVar,
|
|
otherTheme = _objectWithoutProperties(theme, ["cssVarPrefix", "shouldSkipGeneratingVar"]);
|
|
return _extends({}, theme, prepareCssVars(otherTheme, {
|
|
prefix: cssVarPrefix,
|
|
shouldSkipGeneratingVar: shouldSkipGeneratingVar
|
|
}));
|
|
}
|
|
export default createCssVarsTheme; |