@codecademy/gamut-styles 17.1.1-alpha.c4786d.0 → 17.1.1-alpha.d009df.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/AssetProvider.d.ts +2 -3
  2. package/dist/AssetProvider.js +15 -18
  3. package/dist/Background.d.ts +1 -1
  4. package/dist/Background.js +28 -45
  5. package/dist/ColorMode.d.ts +229 -231
  6. package/dist/ColorMode.js +70 -77
  7. package/dist/GamutProvider.js +20 -22
  8. package/dist/cache/createEmotionCache.js +11 -26
  9. package/dist/cache/stylisPlugins/focusVisible.js +4 -4
  10. package/dist/globals/Reboot.d.ts +1 -2
  11. package/dist/globals/Reboot.js +4 -6
  12. package/dist/globals/Typography.d.ts +1 -2
  13. package/dist/globals/Typography.js +18 -20
  14. package/dist/globals/Variables.js +12 -21
  15. package/dist/remoteAssets/fonts.d.ts +1 -1
  16. package/dist/remoteAssets/fonts.js +8 -8
  17. package/dist/styles/boxShadow.js +10 -20
  18. package/dist/styles/fontSmoothing.d.ts +1 -1
  19. package/dist/styles/fontSmoothing.js +5 -7
  20. package/dist/styles/noSelect.js +1 -1
  21. package/dist/styles/pxRem.js +3 -3
  22. package/dist/styles/responsive.js +4 -6
  23. package/dist/styles/screenReaderOnly.js +2 -2
  24. package/dist/styles/transitionConcat.js +4 -4
  25. package/dist/themes/admin.d.ts +12 -12
  26. package/dist/themes/admin.js +1 -1
  27. package/dist/themes/core.d.ts +6 -6
  28. package/dist/themes/core.js +14 -12
  29. package/dist/themes/platform.d.ts +14 -14
  30. package/dist/themes/platform.js +1 -1
  31. package/dist/utilities/themed.js +4 -2
  32. package/dist/variables/borderRadii.js +1 -1
  33. package/dist/variables/colors.js +19 -18
  34. package/dist/variables/deprecated-colors.js +17 -16
  35. package/dist/variables/elements.js +1 -1
  36. package/dist/variables/responsive.js +4 -6
  37. package/dist/variables/spacing.js +1 -1
  38. package/dist/variables/timing.js +6 -6
  39. package/dist/variables/typography.js +14 -8
  40. package/dist/variance/config.js +49 -32
  41. package/dist/variance/index.js +1 -2
  42. package/dist/variance/props.d.ts +16 -16
  43. package/dist/variance/props.js +16 -16
  44. package/dist/variance/utils.d.ts +1 -1
  45. package/dist/variance/utils.js +6 -14
  46. package/package.json +3 -3
@@ -1,31 +1,31 @@
1
- export var FONT_ASSET_PATH = "https://static-assets-staging.codecademy.com/gamut";
2
- export var webFonts = [{
3
- filePath: "".concat(FONT_ASSET_PATH, "/apercu-regular-pro"),
1
+ export const FONT_ASSET_PATH = `https://static-assets.codecademy.com/gamut`;
2
+ export const webFonts = [{
3
+ filePath: `${FONT_ASSET_PATH}/apercu-regular-pro`,
4
4
  extensions: ['woff', 'woff2'],
5
5
  name: 'Apercu'
6
6
  }, {
7
- filePath: "".concat(FONT_ASSET_PATH, "/apercu-italic-pro"),
7
+ filePath: `${FONT_ASSET_PATH}/apercu-italic-pro`,
8
8
  extensions: ['woff', 'woff2'],
9
9
  name: 'Apercu',
10
10
  style: 'italic'
11
11
  }, {
12
- filePath: "".concat(FONT_ASSET_PATH, "/apercu-bold-pro"),
12
+ filePath: `${FONT_ASSET_PATH}/apercu-bold-pro`,
13
13
  extensions: ['woff', 'woff2'],
14
14
  name: 'Apercu',
15
15
  weight: 'bold'
16
16
  }, {
17
- filePath: "".concat(FONT_ASSET_PATH, "/apercu-bold-italic-pro"),
17
+ filePath: `${FONT_ASSET_PATH}/apercu-bold-italic-pro`,
18
18
  extensions: ['woff', 'woff2'],
19
19
  name: 'Apercu',
20
20
  weight: 'bold',
21
21
  style: 'italic'
22
22
  }, {
23
- filePath: "".concat(FONT_ASSET_PATH, "/SuisseIntlMono-Bold-WebS"),
23
+ filePath: `${FONT_ASSET_PATH}/SuisseIntlMono-Bold-WebS`,
24
24
  extensions: ['woff', 'woff2'],
25
25
  name: 'Suisse',
26
26
  weight: 'bold'
27
27
  }, {
28
- filePath: "".concat(FONT_ASSET_PATH, "/SuisseIntlMono-Regular-WebS"),
28
+ filePath: `${FONT_ASSET_PATH}/SuisseIntlMono-Regular-WebS`,
29
29
  extensions: ['woff', 'woff2'],
30
30
  name: 'Suisse'
31
31
  }];
@@ -1,11 +1,5 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
1
  import { css } from '@emotion/react';
8
- var shadowsForDepth = {
2
+ const shadowsForDepth = {
9
3
  1: {
10
4
  offsets: [1, 3, 1, 3],
11
5
  shades: [0.12, 0.24]
@@ -27,19 +21,15 @@ var shadowsForDepth = {
27
21
  shades: [0.3, 0.22]
28
22
  }
29
23
  };
30
- export var createShadow = function createShadow(depth) {
31
- var _shadowsForDepth$dept = shadowsForDepth[depth],
32
- _shadowsForDepth$dept2 = _slicedToArray(_shadowsForDepth$dept.offsets, 4),
33
- o1 = _shadowsForDepth$dept2[0],
34
- o2 = _shadowsForDepth$dept2[1],
35
- o3 = _shadowsForDepth$dept2[2],
36
- o4 = _shadowsForDepth$dept2[3],
37
- _shadowsForDepth$dept3 = _slicedToArray(_shadowsForDepth$dept.shades, 2),
38
- s1 = _shadowsForDepth$dept3[0],
39
- s2 = _shadowsForDepth$dept3[1];
40
- return " 0 ".concat(o1, "px ").concat(o2, "px rgba(0, 0, 0, ").concat(s1, "),\n 0 ").concat(o3, "px ").concat(o4, "px rgba(0, 0, 0, ").concat(s2, ")");
24
+ export const createShadow = depth => {
25
+ const {
26
+ offsets: [o1, o2, o3, o4],
27
+ shades: [s1, s2]
28
+ } = shadowsForDepth[depth];
29
+ return ` 0 ${o1}px ${o2}px rgba(0, 0, 0, ${s1}),
30
+ 0 ${o3}px ${o4}px rgba(0, 0, 0, ${s2})`;
41
31
  };
42
- export var boxShadow = function boxShadow() {
43
- var depth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
32
+ export const boxShadow = function () {
33
+ let depth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
44
34
  return /*#__PURE__*/css("box-shadow:", createShadow(depth), ";;label:boxShadow;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvYm94U2hhZG93LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFDWSIsImZpbGUiOiIuLi8uLi9zcmMvc3R5bGVzL2JveFNoYWRvdy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90a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hZG93KGRlcHRoKX07XG4gIGA7XG59O1xuIl19 */"));
45
35
  };
@@ -8,7 +8,7 @@ declare const smoothing: {
8
8
  MozOsxFontSmoothing: string;
9
9
  };
10
10
  };
11
- export declare const fontSmoothing: import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
11
+ export declare const fontSmoothing: import("packages/variance/dist/types/config").Parser<import("packages/variance/dist/types/config").TransformerMap<{
12
12
  fontSmoothing: {
13
13
  property: "fontSmooth";
14
14
  scale: {
@@ -1,5 +1,5 @@
1
1
  import { variance } from '@codecademy/variance';
2
- var smoothing = {
2
+ const smoothing = {
3
3
  pixel: {
4
4
  WebkitFontSmoothing: 'antialiased',
5
5
  MozOsxFontSmoothing: 'grayscale'
@@ -9,21 +9,19 @@ var smoothing = {
9
9
  MozOsxFontSmoothing: 'auto'
10
10
  }
11
11
  };
12
- export var fontSmoothing = variance.create({
12
+ export const fontSmoothing = variance.create({
13
13
  fontSmoothing: {
14
14
  property: 'fontSmooth',
15
15
  scale: {
16
16
  pixel: 'pixel',
17
17
  subpixel: 'subpixel'
18
18
  },
19
- transform: function transform(value) {
20
- return smoothing[value];
21
- }
19
+ transform: value => smoothing[value]
22
20
  }
23
21
  });
24
- export var fontSmoothPixel = fontSmoothing({
22
+ export const fontSmoothPixel = fontSmoothing({
25
23
  fontSmoothing: 'pixel'
26
24
  });
27
- export var fontSmoothSubpixel = fontSmoothing({
25
+ export const fontSmoothSubpixel = fontSmoothing({
28
26
  fontSmoothing: 'subpixel'
29
27
  });
@@ -1,6 +1,6 @@
1
1
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
2
  import { css } from '@emotion/react';
3
- export var noSelect = process.env.NODE_ENV === "production" ? {
3
+ export const noSelect = process.env.NODE_ENV === "production" ? {
4
4
  name: "1ui1tha-noSelect",
5
5
  styles: "-webkit-touch-callout:none;user-select:none;label:noSelect;"
6
6
  } : {
@@ -1,4 +1,4 @@
1
- export var pxRem = function pxRem(pixelValue) {
2
- var parsedValue = typeof pixelValue === 'string' ? parseInt(pixelValue, 10) : pixelValue;
3
- return "".concat(parsedValue / 16, "rem");
1
+ export const pxRem = pixelValue => {
2
+ const parsedValue = typeof pixelValue === 'string' ? parseInt(pixelValue, 10) : pixelValue;
3
+ return `${parsedValue / 16}rem`;
4
4
  };
@@ -1,14 +1,12 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { mediaQueries } from '../variables/responsive';
3
- export var atViewport = function atViewport(size, content) {
4
- return /*#__PURE__*/css(mediaQueries[size], "{", content, ";};label:atViewport;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvcmVzcG9uc2l2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPUSIsImZpbGUiOiIuLi8uLi9zcmMvc3R5bGVzL3Jlc3BvbnNpdmUudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IG1lZGlhUXVlcmllcywgTWVkaWFTaXplIH0gZnJvbSAnLi4vdmFyaWFibGVzL3Jlc3BvbnNpdmUnO1xuXG5leHBvcnQgY29uc3QgYXRWaWV3cG9ydCA9IChcbiAgc2l6ZTogTWVkaWFTaXplLFxuICBjb250ZW50OiBzdHJpbmcgfCBTZXJpYWxpemVkU3R5bGVzXG4pID0+IGNzc2BcbiAgJHttZWRpYVF1ZXJpZXNbc2l6ZV19IHtcbiAgICAke2NvbnRlbnR9XG4gIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBzY3JlZW5TaXplTFRFID0gKFxuICBtYXg6IHN0cmluZyxcbiAgY29udGVudDogc3RyaW5nIHwgU2VyaWFsaXplZFN0eWxlc1xuKSA9PiB7XG4gIHJldHVybiBjc3NgXG4gICAgQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiAke21heH0pIHtcbiAgICAgICR7Y29udGVudH1cbiAgICB9XG4gIGA7XG59O1xuXG5leHBvcnQgY29uc3Qgc2NyZWVuU2l6ZUdURSA9IChcbiAgbWluOiBzdHJpbmcsXG4gIGNvbnRlbnQ6IHN0cmluZyB8IFNlcmlhbGl6ZWRTdHlsZXNcbikgPT4ge1xuICByZXR1cm4gY3NzYFxuICAgIEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogJHttaW59KSB7XG4gICAgICAke2NvbnRlbnR9XG4gICAgfVxuICBgO1xufTtcblxuZXhwb3J0IGNvbnN0IHNjcmVlblNpemVCZXR3ZWVuID0gKFxuICBtaW46IHN0cmluZyxcbiAgbWF4OiBzdHJpbmcsXG4gIGNvbnRlbnQ6IHN0cmluZyB8IFNlcmlhbGl6ZWRTdHlsZXNcbikgPT4ge1xuICByZXR1cm4gY3NzYFxuICAgIEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogJHttaW59KSBhbmQgKG1heC13aWR0aDogJHttYXh9KSB7XG4gICAgICAke2NvbnRlbnR9XG4gICAgfVxuICBgO1xufTtcbiJdfQ== */"));
5
- };
6
- export var screenSizeLTE = function screenSizeLTE(max, content) {
3
+ export const atViewport = (size, content) => /*#__PURE__*/css(mediaQueries[size], "{", content, ";};label:atViewport;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvcmVzcG9uc2l2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPUSIsImZpbGUiOiIuLi8uLi9zcmMvc3R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ZXNcbikgPT4ge1xuICByZXR1cm4gY3NzYFxuICAgIEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogJHttaW59KSBhbmQgKG1heC13aWR0aDogJHttYXh9KSB7XG4gICAgICAke2NvbnRlbnR9XG4gICAgfVxuICBgO1xufTtcbiJdfQ== */"));
4
+ export const screenSizeLTE = (max, content) => {
7
5
  return /*#__PURE__*/css("@media only screen and (max-width: ", max, "){", content, ";};label:screenSizeLTE;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvcmVzcG9uc2l2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQlkiLCJmaWxlIjoiLi4vLi4vc3JjL3N0eWxlcy9yZXNwb25zaXZlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBtZWRpYVF1ZXJpZXMsIE1lZGlhU2l6ZSB9IGZyb20gJy4uL3ZhcmlhYmxlcy9yZXNwb25zaXZlJztcblxuZXhwb3J0IGNvbnN0IGF0Vmlld3BvcnQgPSAoXG4gIHNpemU6IE1lZGlhU2l6ZSxcbiAgY29udGVudDogc3RyaW5nIHwgU2VyaWFsaXplZFN0eWxlc1xuKSA9PiBjc3NgXG4gICR7bWVkaWFRdWVyaWVzW3NpemVdfSB7XG4gICAgJHtjb250ZW50fVxuICB9XG5gO1xuXG5leHBvcnQgY29uc3Qgc2NyZWVuU2l6ZUxURSA9IChcbiAgbWF4OiBzdHJpbmcsXG4gIGNvbnRlbnQ6IHN0cmluZyB8IFNlcmlhbGl6ZWRTdHlsZXNcbikgPT4ge1xuICByZXR1cm4gY3NzYFxuICAgIEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogJHttYXh9KSB7XG4gICAgICAke2NvbnRlbnR9XG4gICAgfVxuICBgO1xufTtcblxuZXhwb3J0IGNvbnN0IHNjcmVlblNpemVHVEUgPSAoXG4gIG1pbjogc3RyaW5nLFxuICBjb250ZW50OiBzdHJpbmcgfCBTZXJpYWxpemVkU3R5bGVzXG4pID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBAbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6ICR7bWlufSkge1xuICAgICAgJHtjb250ZW50fVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBzY3JlZW5TaXplQmV0d2VlbiA9IChcbiAgbWluOiBzdHJpbmcsXG4gIG1heDogc3RyaW5nLFxuICBjb250ZW50OiBzdHJpbmcgfCBTZXJpYWxpemVkU3R5bGVzXG4pID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBAbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6ICR7bWlufSkgYW5kIChtYXgtd2lkdGg6ICR7bWF4fSkge1xuICAgICAgJHtjb250ZW50fVxuICAgIH1cbiAgYDtcbn07XG4iXX0= */"));
8
6
  };
9
- export var screenSizeGTE = function screenSizeGTE(min, content) {
7
+ export const screenSizeGTE = (min, content) => {
10
8
  return /*#__PURE__*/css("@media only screen and (min-width: ", min, "){", content, ";};label:screenSizeGTE;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvcmVzcG9uc2l2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiLi4vLi4vc3JjL3N0eWxlcy9yZXNwb25zaXZlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvb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YXgtd2lkdGg6ICR7bWF4fSkge1xuICAgICAgJHtjb250ZW50fVxuICAgIH1cbiAgYDtcbn07XG4iXX0= */"));
11
9
  };
12
- export var screenSizeBetween = function screenSizeBetween(min, max, content) {
10
+ export const screenSizeBetween = (min, max, content) => {
13
11
  return /*#__PURE__*/css("@media only screen and (min-width: ", min, ") and (max-width: ", max, "){", content, ";};label:screenSizeBetween;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvcmVzcG9uc2l2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF3Q1kiLCJmaWxlIjoiLi4vLi4vc3JjL3N0eWxlcy9yZXNwb25zaXZlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBtZWRpYVF1ZXJpZXMsIE1lZGlhU2l6ZSB9IGZyb20gJy4uL3ZhcmlhYmxlcy9yZXNwb25zaXZlJztcblxuZXhwb3J0IGNvbnN0IGF0Vmlld3BvcnQgPSAoXG4gIHNpemU6IE1lZGlhU2l6ZSxcbiAgY29udGVudDogc3RyaW5nIHwgU2VyaWFsaXplZFN0eWxlc1xuKSA9PiBjc3NgXG4gICR7bWVkaWFRdWVyaWVzW3NpemVdfSB7XG4gICAgJHtjb250ZW50fVxuICB9XG5gO1xuXG5leHBvcnQgY29uc3Qgc2NyZWVuU2l6ZUxURSA9IChcbiAgbWF4OiBzdHJpbmcsXG4gIGNvbnRlbnQ6IHN0cmluZyB8IFNlcmlhbGl6ZWRTdHlsZXNcbikgPT4ge1xuICByZXR1cm4gY3NzYFxuICAgIEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogJHttYXh9KSB7XG4gICAgICAke2NvbnRlbnR9XG4gICAgfVxuICBgO1xufTtcblxuZXhwb3J0IGNvbnN0IHNjcmVlblNpemVHVEUgPSAoXG4gIG1pbjogc3RyaW5nLFxuICBjb250ZW50OiBzdHJpbmcgfCBTZXJpYWxpemVkU3R5bGVzXG4pID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBAbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6ICR7bWlufSkge1xuICAgICAgJHtjb250ZW50fVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBzY3JlZW5TaXplQmV0d2VlbiA9IChcbiAgbWluOiBzdHJpbmcsXG4gIG1heDogc3RyaW5nLFxuICBjb250ZW50OiBzdHJpbmcgfCBTZXJpYWxpemVkU3R5bGVzXG4pID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBAbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6ICR7bWlufSkgYW5kIChtYXgtd2lkdGg6ICR7bWF4fSkge1xuICAgICAgJHtjb250ZW50fVxuICAgIH1cbiAgYDtcbn07XG4iXX0= */"));
14
12
  };
@@ -1,6 +1,6 @@
1
1
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
2
  import { css } from '@emotion/react';
3
- export var screenReaderOnly = process.env.NODE_ENV === "production" ? {
3
+ export const screenReaderOnly = process.env.NODE_ENV === "production" ? {
4
4
  name: "ut38oz-screenReaderOnly",
5
5
  styles: "position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0;label:screenReaderOnly;"
6
6
  } : {
@@ -9,7 +9,7 @@ export var screenReaderOnly = process.env.NODE_ENV === "production" ? {
9
9
  map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvc2NyZWVuUmVhZGVyT25seS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFbUMiLCJmaWxlIjoiLi4vLi4vc3JjL3N0eWxlcy9zY3JlZW5SZWFkZXJPbmx5LnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5leHBvcnQgY29uc3Qgc2NyZWVuUmVhZGVyT25seSA9IGNzc2BcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMXB4O1xuICBoZWlnaHQ6IDFweDtcbiAgcGFkZGluZzogMDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgY2xpcDogcmVjdCgwLCAwLCAwLCAwKTtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgY2xpcC1wYXRoOiBpbnNldCg1MCUpO1xuICBib3JkZXI6IDA7XG5gO1xuXG5leHBvcnQgY29uc3Qgc2NyZWVuUmVhZGVyT25seUZvY3VzYWJsZSA9IGNzc2BcbiAgJjphY3RpdmUsXG4gICY6Zm9jdXMge1xuICAgIHBvc2l0aW9uOiBzdGF0aWM7XG4gICAgd2lkdGg6IGF1dG87XG4gICAgaGVpZ2h0OiBhdXRvO1xuICAgIG92ZXJmbG93OiB2aXNpYmxlO1xuICAgIGNsaXA6IGF1dG87XG4gICAgd2hpdGUtc3BhY2U6IG5vcm1hbDtcbiAgICBjbGlwLXBhdGg6IG5vbmU7XG4gIH1cbmA7XG4iXX0= */",
10
10
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
11
11
  };
12
- export var screenReaderOnlyFocusable = process.env.NODE_ENV === "production" ? {
12
+ export const screenReaderOnlyFocusable = process.env.NODE_ENV === "production" ? {
13
13
  name: "13y3pk0-screenReaderOnlyFocusable",
14
14
  styles: "&:active,&:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;clip-path:none;};label:screenReaderOnlyFocusable;"
15
15
  } : {
@@ -1,7 +1,7 @@
1
1
  import { timing } from '../variables';
2
- export var transitionConcat = function transitionConcat(arrayOfProperties, transition) {
3
- var timingFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'linear';
4
- var transitionString = "".concat(timing[transition], " ").concat(timingFn);
5
- var cssString = "".concat(arrayOfProperties.join(" ".concat(transitionString, ",")), " ").concat(transitionString);
2
+ export const transitionConcat = function (arrayOfProperties, transition) {
3
+ let timingFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'linear';
4
+ const transitionString = `${timing[transition]} ${timingFn}`;
5
+ const cssString = `${arrayOfProperties.join(` ${transitionString},`)} ${transitionString}`;
6
6
  return cssString;
7
7
  };
@@ -4,19 +4,19 @@ export declare const adminTheme: Record<"breakpoints", {
4
4
  md: string;
5
5
  lg: string;
6
6
  xl: string;
7
- }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
7
+ }> & import("packages/variance/dist/createTheme/types").Merge<Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
8
8
  readonly headerHeight: {
9
9
  readonly base: "4rem";
10
10
  readonly md: "5rem";
11
11
  };
12
12
  readonly headerZ: 15;
13
- }, "elements">>> & import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").MergeTheme<import("@codecademy/variance/dist/createTheme/types").MergeTheme<Record<"breakpoints", {
13
+ }, "elements">>> & import("packages/variance/dist/createTheme/types").Merge<import("packages/variance/dist/createTheme/types").MergeTheme<import("packages/variance/dist/createTheme/types").MergeTheme<Record<"breakpoints", {
14
14
  xs: string;
15
15
  sm: string;
16
16
  md: string;
17
17
  lg: string;
18
18
  xl: string;
19
- }> & import("@codecademy/variance/dist/createTheme/types").Merge<{
19
+ }> & import("packages/variance/dist/createTheme/types").Merge<{
20
20
  breakpoints: {
21
21
  xs: string;
22
22
  sm: string;
@@ -80,7 +80,7 @@ export declare const adminTheme: Record<"breakpoints", {
80
80
  };
81
81
  readonly headerZ: 15;
82
82
  };
83
- } & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
83
+ } & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
84
84
  readonly beige: "#FFF0E5";
85
85
  readonly blue: "#1557FF";
86
86
  readonly green: "#008A27";
@@ -148,7 +148,7 @@ export declare const adminTheme: Record<"breakpoints", {
148
148
  readonly "white-200": string;
149
149
  readonly "white-600": string;
150
150
  readonly "white-700": string;
151
- }, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
151
+ }, "-">, "color">>> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, {
152
152
  colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
153
153
  text: {
154
154
  _: "navy-800";
@@ -302,7 +302,7 @@ export declare const adminTheme: Record<"breakpoints", {
302
302
  readonly "white-600": string;
303
303
  readonly "white-700": string;
304
304
  }, "-">, "color">;
305
- modes: import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
305
+ modes: import("packages/variance/dist/createTheme/types").Merge<unknown, {
306
306
  light: import("@codecademy/variance").LiteralPaths<{
307
307
  text: {
308
308
  _: "navy-800";
@@ -463,7 +463,7 @@ export declare const adminTheme: Record<"breakpoints", {
463
463
  }>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
464
464
  1: string;
465
465
  2: string;
466
- }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
466
+ }, "-">>>, import("packages/variance/dist/createTheme/types").PrivateThemeKeys> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, {
467
467
  colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
468
468
  primary: {
469
469
  _: "blue-500";
@@ -473,7 +473,7 @@ export declare const adminTheme: Record<"breakpoints", {
473
473
  feedback: {
474
474
  success: "green-400";
475
475
  };
476
- }, "-", "_">, "colors"> & import("@codecademy/variance/dist/createTheme/types").Assign<import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
476
+ }, "-", "_">, "colors"> & import("packages/variance/dist/createTheme/types").Assign<import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
477
477
  readonly beige: "#FFF0E5";
478
478
  readonly blue: "#1557FF";
479
479
  readonly green: "#008A27";
@@ -694,7 +694,7 @@ export declare const adminTheme: Record<"breakpoints", {
694
694
  readonly "white-600": string;
695
695
  readonly "white-700": string;
696
696
  }, "-">, "color">>;
697
- modes: import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
697
+ modes: import("packages/variance/dist/createTheme/types").Merge<import("packages/variance/dist/createTheme/types").Merge<unknown, {
698
698
  light: import("@codecademy/variance").LiteralPaths<{
699
699
  text: {
700
700
  _: "navy-800";
@@ -795,7 +795,7 @@ export declare const adminTheme: Record<"breakpoints", {
795
795
  }, "-", "_">;
796
796
  }>;
797
797
  mode: "light" | "dark";
798
- _getColorValue: (color: "text" | import("@codecademy/variance").Path<{
798
+ _getColorValue: (color: import("@codecademy/variance").Path<{
799
799
  readonly beige: "#FFF0E5";
800
800
  readonly blue: "#1557FF";
801
801
  readonly green: "#008A27";
@@ -863,8 +863,8 @@ export declare const adminTheme: Record<"breakpoints", {
863
863
  readonly "white-200": string;
864
864
  readonly "white-600": string;
865
865
  readonly "white-700": string;
866
- }, "-"> | "secondary" | "background" | "primary" | "danger" | "interface" | "text-disabled" | "text-accent" | "text-secondary" | "shadow-opaque" | "shadow-solid" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "danger-hover" | "interface-hover") => string;
867
- }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
866
+ }, "-"> | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "shadow-opaque" | "shadow-solid" | "text-disabled" | "text-accent" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "danger-hover" | "interface-hover") => string;
867
+ }> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys;
868
868
  export type AdminThemeShape = typeof adminTheme;
869
869
  export interface AdminTheme extends AdminThemeShape {
870
870
  }
@@ -1,6 +1,6 @@
1
1
  import { createTheme } from '@codecademy/variance';
2
2
  import { coreTheme } from './core';
3
- export var adminTheme = createTheme(coreTheme).addColorModes('light', {
3
+ export const adminTheme = createTheme(coreTheme).addColorModes('light', {
4
4
  light: {
5
5
  primary: {
6
6
  _: 'blue-500',
@@ -9,13 +9,13 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
9
9
  readonly md: "5rem";
10
10
  };
11
11
  readonly headerZ: 15;
12
- }, "elements">>> & import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").MergeTheme<import("@codecademy/variance/dist/createTheme/types").MergeTheme<Record<"breakpoints", {
12
+ }, "elements">>> & import("packages/variance/dist/createTheme/types").Merge<import("packages/variance/dist/createTheme/types").MergeTheme<import("packages/variance/dist/createTheme/types").MergeTheme<Record<"breakpoints", {
13
13
  xs: string;
14
14
  sm: string;
15
15
  md: string;
16
16
  lg: string;
17
17
  xl: string;
18
- }> & import("@codecademy/variance/dist/createTheme/types").Merge<{
18
+ }> & import("packages/variance/dist/createTheme/types").Merge<{
19
19
  breakpoints: {
20
20
  xs: string;
21
21
  sm: string;
@@ -79,7 +79,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
79
79
  };
80
80
  readonly headerZ: 15;
81
81
  };
82
- } & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
82
+ } & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
83
83
  readonly beige: "#FFF0E5";
84
84
  readonly blue: "#1557FF";
85
85
  readonly green: "#008A27";
@@ -147,7 +147,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
147
147
  readonly "white-200": string;
148
148
  readonly "white-600": string;
149
149
  readonly "white-700": string;
150
- }, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
150
+ }, "-">, "color">>> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, {
151
151
  colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
152
152
  text: {
153
153
  _: "navy-800";
@@ -301,7 +301,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
301
301
  readonly "white-600": string;
302
302
  readonly "white-700": string;
303
303
  }, "-">, "color">;
304
- modes: import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
304
+ modes: import("packages/variance/dist/createTheme/types").Merge<unknown, {
305
305
  light: import("@codecademy/variance").LiteralPaths<{
306
306
  text: {
307
307
  _: "navy-800";
@@ -462,7 +462,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
462
462
  }>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
463
463
  1: string;
464
464
  2: string;
465
- }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
465
+ }, "-">>>, import("packages/variance/dist/createTheme/types").PrivateThemeKeys> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys;
466
466
  export type CoreThemeShape = typeof coreTheme;
467
467
  export interface CoreTheme extends CoreThemeShape {
468
468
  }
@@ -7,15 +7,15 @@ import { borderRadii, corePalette, elements, fontFamily, fontSize, fontWeight, l
7
7
  * are guaranteed to be interoperable between all contexts, but with differing behaviors.
8
8
  */
9
9
 
10
- export var coreTheme = createTheme({
10
+ export const coreTheme = createTheme({
11
11
  breakpoints: mediaQueries,
12
- borderRadii: borderRadii,
13
- fontSize: fontSize,
14
- fontFamily: fontFamily,
15
- lineHeight: lineHeight,
16
- fontWeight: fontWeight,
17
- spacing: spacing,
18
- elements: elements
12
+ borderRadii,
13
+ fontSize,
14
+ fontFamily,
15
+ lineHeight,
16
+ fontWeight,
17
+ spacing,
18
+ elements
19
19
  }).addColors(corePalette).addColorModes('light', {
20
20
  light: {
21
21
  text: {
@@ -103,10 +103,12 @@ export var coreTheme = createTheme({
103
103
  hover: 'yellow-400'
104
104
  }
105
105
  }
106
- }).addScale('borders', function (_ref) {
107
- var colors = _ref.colors;
106
+ }).addScale('borders', _ref => {
107
+ let {
108
+ colors
109
+ } = _ref;
108
110
  return {
109
- 1: "1px solid ".concat(colors.secondary),
110
- 2: "2px solid ".concat(colors.secondary)
111
+ 1: `1px solid ${colors.secondary}`,
112
+ 2: `2px solid ${colors.secondary}`
111
113
  };
112
114
  }).createScaleVariables('elements').build();
@@ -8,25 +8,25 @@ export declare const platformTheme: Record<"breakpoints", {
8
8
  md: string;
9
9
  lg: string;
10
10
  xl: string;
11
- }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
11
+ }> & import("packages/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
12
12
  xs: string;
13
13
  sm: string;
14
14
  md: string;
15
15
  lg: string;
16
16
  xl: string;
17
- }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
17
+ }> & import("packages/variance/dist/createTheme/types").Merge<Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
18
18
  readonly headerHeight: {
19
19
  readonly base: "4rem";
20
20
  readonly md: "5rem";
21
21
  };
22
22
  readonly headerZ: 15;
23
- }, "elements">>> & import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").MergeTheme<import("@codecademy/variance/dist/createTheme/types").MergeTheme<Record<"breakpoints", {
23
+ }, "elements">>> & import("packages/variance/dist/createTheme/types").Merge<import("packages/variance/dist/createTheme/types").MergeTheme<import("packages/variance/dist/createTheme/types").MergeTheme<Record<"breakpoints", {
24
24
  xs: string;
25
25
  sm: string;
26
26
  md: string;
27
27
  lg: string;
28
28
  xl: string;
29
- }> & import("@codecademy/variance/dist/createTheme/types").Merge<{
29
+ }> & import("packages/variance/dist/createTheme/types").Merge<{
30
30
  breakpoints: {
31
31
  xs: string;
32
32
  sm: string;
@@ -90,7 +90,7 @@ export declare const platformTheme: Record<"breakpoints", {
90
90
  };
91
91
  readonly headerZ: 15;
92
92
  };
93
- } & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
93
+ } & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
94
94
  readonly beige: "#FFF0E5";
95
95
  readonly blue: "#1557FF";
96
96
  readonly green: "#008A27";
@@ -158,7 +158,7 @@ export declare const platformTheme: Record<"breakpoints", {
158
158
  readonly "white-200": string;
159
159
  readonly "white-600": string;
160
160
  readonly "white-700": string;
161
- }, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
161
+ }, "-">, "color">>> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, {
162
162
  colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
163
163
  text: {
164
164
  _: "navy-800";
@@ -312,7 +312,7 @@ export declare const platformTheme: Record<"breakpoints", {
312
312
  readonly "white-600": string;
313
313
  readonly "white-700": string;
314
314
  }, "-">, "color">;
315
- modes: import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
315
+ modes: import("packages/variance/dist/createTheme/types").Merge<unknown, {
316
316
  light: import("@codecademy/variance").LiteralPaths<{
317
317
  text: {
318
318
  _: "navy-800";
@@ -473,7 +473,7 @@ export declare const platformTheme: Record<"breakpoints", {
473
473
  }>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
474
474
  1: string;
475
475
  2: string;
476
- }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
476
+ }, "-">>>, import("packages/variance/dist/createTheme/types").PrivateThemeKeys> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
477
477
  readonly lightBeige: "#FFFBF8";
478
478
  readonly gold: "#8A7300";
479
479
  readonly teal: "#027E97";
@@ -484,7 +484,7 @@ export declare const platformTheme: Record<"breakpoints", {
484
484
  readonly "gold-800": "#8A7300";
485
485
  readonly "teal-500": "#027E97";
486
486
  readonly "purple-300": "#B3CCFF";
487
- }, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
487
+ }, "-">, "color">>> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys, {
488
488
  colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
489
489
  editor: {
490
490
  attribute: "green-700";
@@ -545,7 +545,7 @@ export declare const platformTheme: Record<"breakpoints", {
545
545
  'line-number': "gray-600";
546
546
  };
547
547
  };
548
- }, "-", "_">, "colors"> & import("@codecademy/variance/dist/createTheme/types").Assign<import("@codecademy/variance/dist/createTheme/types").Assign<import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
548
+ }, "-", "_">, "colors"> & import("packages/variance/dist/createTheme/types").Assign<import("packages/variance/dist/createTheme/types").Assign<import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
549
549
  readonly beige: "#FFF0E5";
550
550
  readonly blue: "#1557FF";
551
551
  readonly green: "#008A27";
@@ -777,7 +777,7 @@ export declare const platformTheme: Record<"breakpoints", {
777
777
  readonly "teal-500": "#027E97";
778
778
  readonly "purple-300": "#B3CCFF";
779
779
  }, "-">, "color">>;
780
- modes: import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
780
+ modes: import("packages/variance/dist/createTheme/types").Merge<import("packages/variance/dist/createTheme/types").Merge<unknown, {
781
781
  light: import("@codecademy/variance").LiteralPaths<{
782
782
  text: {
783
783
  _: "navy-800";
@@ -929,7 +929,7 @@ export declare const platformTheme: Record<"breakpoints", {
929
929
  }, "-", "_">;
930
930
  }>;
931
931
  mode: "light" | "dark";
932
- _getColorValue: (color: "text" | import("@codecademy/variance").Path<{
932
+ _getColorValue: (color: import("@codecademy/variance").Path<{
933
933
  readonly beige: "#FFF0E5";
934
934
  readonly blue: "#1557FF";
935
935
  readonly green: "#008A27";
@@ -997,7 +997,7 @@ export declare const platformTheme: Record<"breakpoints", {
997
997
  readonly "white-200": string;
998
998
  readonly "white-600": string;
999
999
  readonly "white-700": string;
1000
- }, "-"> | "secondary" | "background" | "primary" | "danger" | "interface" | "text-disabled" | "text-accent" | "text-secondary" | "shadow-opaque" | "shadow-solid" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "danger-hover" | "interface-hover" | import("@codecademy/variance").Path<{
1000
+ }, "-"> | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "shadow-opaque" | "shadow-solid" | "text-disabled" | "text-accent" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "danger-hover" | "interface-hover" | import("@codecademy/variance").Path<{
1001
1001
  readonly lightBeige: "#FFFBF8";
1002
1002
  readonly gold: "#8A7300";
1003
1003
  readonly teal: "#027E97";
@@ -1009,7 +1009,7 @@ export declare const platformTheme: Record<"breakpoints", {
1009
1009
  readonly "teal-500": "#027E97";
1010
1010
  readonly "purple-300": "#B3CCFF";
1011
1011
  }, "-">) => string;
1012
- }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1012
+ }> & import("packages/variance/dist/createTheme/types").PrivateThemeKeys;
1013
1013
  export type PlatformThemeShape = typeof platformTheme;
1014
1014
  export interface PlatformTheme extends PlatformThemeShape {
1015
1015
  }
@@ -7,7 +7,7 @@ import { coreTheme } from './core';
7
7
  * That are not needed for the rest of the application.
8
8
  */
9
9
 
10
- export var platformTheme = createTheme(coreTheme).addColors(platformPalette).addColorModes('dark', {
10
+ export const platformTheme = createTheme(coreTheme).addColors(platformPalette).addColorModes('dark', {
11
11
  light: {
12
12
  editor: {
13
13
  attribute: 'green-700',
@@ -10,8 +10,10 @@ import get from 'lodash/get';
10
10
  */
11
11
 
12
12
  export function themed(path) {
13
- return function (_ref) {
14
- var theme = _ref.theme;
13
+ return _ref => {
14
+ let {
15
+ theme
16
+ } = _ref;
15
17
  return get(theme, path);
16
18
  };
17
19
  }
@@ -1,4 +1,4 @@
1
- export var borderRadii = {
1
+ export const borderRadii = {
2
2
  none: '0px',
3
3
  sm: '2px',
4
4
  md: '4px',