MCPcopy Create free account
hub / github.com/microsoft/SandDance / createTheme

Function createTheme

docs/app/js/sanddance-app.js:27267–27282  ·  view source on GitHub ↗
(theme, depComments)

Source from the content-addressed store, hash-verified

27265var _index3 = require("./spacing/index");
27266var _makeSemanticColors = require("./utilities/makeSemanticColors");
27267function createTheme(theme, depComments) {
27268 if (theme === void 0) theme = {};
27269 if (depComments === void 0) depComments = false;
27270 var isInverted = !!theme.isInverted;
27271 var baseTheme = {
27272 palette: (0, _index.DefaultPalette),
27273 effects: (0, _index1.DefaultEffects),
27274 fonts: (0, _index2.DefaultFontStyles),
27275 spacing: (0, _index3.DefaultSpacing),
27276 isInverted: isInverted,
27277 disableGlobalClassNames: false,
27278 semanticColors: (0, _makeSemanticColors.makeSemanticColors)((0, _index.DefaultPalette), (0, _index1.DefaultEffects), undefined, isInverted, depComments),
27279 rtl: undefined
27280 };
27281 return (0, _mergeThemes.mergeThemes)(baseTheme, theme);
27282}
27283
27284},{"./colors/index":"5dX4A","./effects/index":"68AK7","./fonts/index":"39ZLm","./mergeThemes":"54YSc","./spacing/index":"kWRXo","./utilities/makeSemanticColors":"7tedZ","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"5dX4A":[function(require,module,exports) {
27285var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected