@codecademy/gamut-styles 17.10.0-alpha.4e9d26.0 → 17.10.0-alpha.4fbb62.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.
@@ -1,26 +1,8 @@
1
+ import { FontConfig } from '../utils/fontUtils';
1
2
  export declare const FONT_ASSET_PATH = "https://www.codecademy.com/gamut";
2
- export declare const webFonts: ({
3
- filePath: string;
4
- extensions: string[];
5
- name: string;
6
- style?: undefined;
7
- weight?: undefined;
8
- } | {
9
- filePath: string;
10
- extensions: string[];
11
- name: string;
12
- style: string;
13
- weight?: undefined;
14
- } | {
15
- filePath: string;
16
- extensions: string[];
17
- name: string;
18
- weight: string;
19
- style?: undefined;
20
- } | {
21
- filePath: string;
22
- extensions: string[];
23
- name: string;
24
- weight: string;
25
- style: string;
26
- })[];
3
+ export declare const core: readonly FontConfig[];
4
+ export declare const percipio: readonly FontConfig[];
5
+ export declare const webFonts: {
6
+ readonly core: readonly FontConfig[];
7
+ readonly percipio: readonly FontConfig[];
8
+ };
@@ -1,8 +1,7 @@
1
1
  export const FONT_ASSET_PATH = `https://www.codecademy.com/gamut`;
2
2
 
3
3
  // woff2 should precede woff so that browsers try woff2 first.
4
-
5
- export const webFonts = [{
4
+ export const core = [{
6
5
  filePath: `${FONT_ASSET_PATH}/apercu-regular-pro`,
7
6
  extensions: ['woff2', 'woff'],
8
7
  name: 'Apercu'
@@ -31,4 +30,38 @@ export const webFonts = [{
31
30
  filePath: `${FONT_ASSET_PATH}/SuisseIntlMono-Regular-WebS`,
32
31
  extensions: ['woff2', 'woff'],
33
32
  name: 'Suisse'
34
- }];
33
+ }];
34
+ export const percipio = [{
35
+ filePath: `${FONT_ASSET_PATH}/roboto-regular`,
36
+ extensions: ['woff2', 'woff'],
37
+ name: 'Roboto'
38
+ }, {
39
+ filePath: `${FONT_ASSET_PATH}/roboto-italic`,
40
+ extensions: ['woff2', 'woff'],
41
+ name: 'Roboto',
42
+ style: 'italic'
43
+ }, {
44
+ filePath: `${FONT_ASSET_PATH}/roboto-bold`,
45
+ extensions: ['woff2', 'woff'],
46
+ name: 'Roboto',
47
+ weight: 'bold'
48
+ }, {
49
+ filePath: `${FONT_ASSET_PATH}/roboto-bold-italic`,
50
+ extensions: ['woff2', 'woff'],
51
+ name: 'Roboto',
52
+ weight: 'bold',
53
+ style: 'italic'
54
+ }, {
55
+ filePath: `${FONT_ASSET_PATH}/roboto-mono-regular`,
56
+ extensions: ['woff2', 'woff'],
57
+ name: 'Roboto Mono'
58
+ }, {
59
+ filePath: `${FONT_ASSET_PATH}/roboto-mono-bold`,
60
+ extensions: ['woff2', 'woff'],
61
+ name: 'Roboto Mono',
62
+ weight: 'bold'
63
+ }];
64
+ export const webFonts = {
65
+ core,
66
+ percipio
67
+ };
@@ -29,7 +29,6 @@ export const createShadow = depth => {
29
29
  return ` 0 ${o1}px ${o2}px rgba(0, 0, 0, ${s1}),
30
30
  0 ${o3}px ${o4}px rgba(0, 0, 0, ${s2})`;
31
31
  };
32
- export const boxShadow = function () {
33
- let depth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
32
+ export const boxShadow = (depth = 1) => {
34
33
  return /*#__PURE__*/css("box-shadow:", createShadow(depth), ";;label:boxShadow;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZXMvYm94U2hhZG93LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFDWSIsImZpbGUiOiIuLi8uLi9zcmMvc3R5bGVzL2JveFNoYWRvdy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IHR5cGUgU2hhZG93RGVwdGggPSBrZXlvZiB0eXBlb2Ygc2hhZG93c0ZvckRlcHRoO1xuXG5jb25zdCBzaGFkb3dzRm9yRGVwdGggPSB7XG4gIDE6IHtcbiAgICBvZmZzZXRzOiBbMSwgMywgMSwgM10sXG4gICAgc2hhZGVzOiBbMC4xMiwgMC4yNF0sXG4gIH0sXG4gIDI6IHtcbiAgICBvZmZzZXRzOiBbMywgNiwgMywgNl0sXG4gICAgc2hhZGVzOiBbMC4xOSwgMC4yM10sXG4gIH0sXG4gIDM6IHtcbiAgICBvZmZzZXRzOiBbMTAsIDIwLCA2LCA2XSxcbiAgICBzaGFkZXM6IFswLjI1LCAwLjIyXSxcbiAgfSxcbiAgNDoge1xuICAgIG9mZnNldHM6IFsxNCwgMjgsIDEwLCAxMF0sXG4gICAgc2hhZGVzOiBbMC4yNSwgMC4yMl0sXG4gIH0sXG4gIDU6IHtcbiAgICBvZmZzZXRzOiBbMTksIDM4LCAxNSwgMTJdLFxuICAgIHNoYWRlczogWzAuMywgMC4yMl0sXG4gIH0sXG59O1xuXG5leHBvcnQgY29uc3QgY3JlYXRlU2hhZG93ID0gKGRlcHRoOiBTaGFkb3dEZXB0aCkgPT4ge1xuICBjb25zdCB7XG4gICAgb2Zmc2V0czogW28xLCBvMiwgbzMsIG80XSxcbiAgICBzaGFkZXM6IFtzMSwgczJdLFxuICB9ID0gc2hhZG93c0ZvckRlcHRoW2RlcHRoXTtcbiAgcmV0dXJuIGAgMCAke28xfXB4ICR7bzJ9cHggcmdiYSgwLCAwLCAwLCAke3MxfSksXG4gIDAgJHtvM31weCAke280fXB4IHJnYmEoMCwgMCwgMCwgJHtzMn0pYDtcbn07XG5cbmV4cG9ydCBjb25zdCBib3hTaGFkb3cgPSAoZGVwdGg6IFNoYWRvd0RlcHRoID0gMSkgPT4ge1xuICByZXR1cm4gY3NzYFxuICAgIGJveC1zaGFkb3c6ICR7Y3JlYXRlU2hhZG93KGRlcHRoKX07XG4gIGA7XG59O1xuIl19 */"));
35
34
  };
@@ -1,6 +1,5 @@
1
1
  import { timing } from '../variables';
2
- export const transitionConcat = function (arrayOfProperties, transition) {
3
- let timingFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'linear';
2
+ export const transitionConcat = (arrayOfProperties, transition, timingFn = 'linear') => {
4
3
  const transitionString = `${timing[transition]} ${timingFn}`;
5
4
  const cssString = `${arrayOfProperties.join(` ${transitionString},`)} ${transitionString}`;
6
5
  return cssString;
@@ -10,6 +10,30 @@ export declare const adminTheme: Record<"breakpoints", {
10
10
  md: string;
11
11
  lg: string;
12
12
  xl: string;
13
+ }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
14
+ c_base: string;
15
+ c_xs: string;
16
+ c_sm: string;
17
+ c_md: string;
18
+ c_lg: string;
19
+ c_xl: string;
20
+ xs: string;
21
+ sm: string;
22
+ md: string;
23
+ lg: string;
24
+ xl: string;
25
+ }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
26
+ c_base: string;
27
+ c_xs: string;
28
+ c_sm: string;
29
+ c_md: string;
30
+ c_lg: string;
31
+ c_xl: string;
32
+ xs: string;
33
+ sm: string;
34
+ md: string;
35
+ lg: string;
36
+ xl: string;
13
37
  }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
14
38
  readonly headerHeight: {
15
39
  readonly base: "4rem";
@@ -520,7 +544,7 @@ export declare const adminTheme: Record<"breakpoints", {
520
544
  }>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
521
545
  1: string;
522
546
  2: string;
523
- }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
547
+ }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
524
548
  colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
525
549
  primary: {
526
550
  _: "blue-500";
@@ -959,8 +983,8 @@ export declare const adminTheme: Record<"breakpoints", {
959
983
  readonly "white-200": string;
960
984
  readonly "white-600": string;
961
985
  readonly "white-700": string;
962
- }, "-"> | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-disabled" | "text-accent" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary") => string;
963
- }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
986
+ }, "-"> | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary") => string;
987
+ }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
964
988
  export type AdminThemeShape = typeof adminTheme;
965
989
  export interface AdminTheme extends AdminThemeShape {
966
990
  }
@@ -12,4 +12,4 @@ export const adminTheme = createTheme(coreTheme).addColorModes('light', {
12
12
  success: 'green-400'
13
13
  }
14
14
  }
15
- }).build();
15
+ }).addName('admin').build();
@@ -3,7 +3,19 @@
3
3
  * and is the only theme that gamut components are typed to. This ensures that gamut components
4
4
  * are guaranteed to be interoperable between all contexts, but with differing behaviors.
5
5
  */
6
- export declare const coreTheme: Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
6
+ export declare const coreTheme: Record<"breakpoints", {
7
+ c_base: string;
8
+ c_xs: string;
9
+ c_sm: string;
10
+ c_md: string;
11
+ c_lg: string;
12
+ c_xl: string;
13
+ xs: string;
14
+ sm: string;
15
+ md: string;
16
+ lg: string;
17
+ xl: string;
18
+ }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"elements", Record<"elements", import("@codecademy/variance").KeyAsVariable<{
7
19
  readonly headerHeight: {
8
20
  readonly base: "4rem";
9
21
  readonly md: "5rem";
@@ -513,7 +525,7 @@ export declare const coreTheme: Record<"elements", Record<"elements", import("@c
513
525
  }>, Record<"borders", import("@codecademy/variance").LiteralPaths<{
514
526
  1: string;
515
527
  2: string;
516
- }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
528
+ }, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
517
529
  export type CoreThemeShape = typeof coreTheme;
518
530
  export interface CoreTheme extends CoreThemeShape {
519
531
  }
@@ -124,12 +124,9 @@ export const coreTheme = createTheme({
124
124
  disabled: 'white-500'
125
125
  }
126
126
  }
127
- }).addScale('borders', _ref => {
128
- let {
129
- colors
130
- } = _ref;
131
- return {
132
- 1: `1px solid ${colors['border-primary']}`,
133
- 2: `2px solid ${colors['border-primary']}`
134
- };
135
- }).createScaleVariables('elements').build();
127
+ }).addScale('borders', ({
128
+ colors
129
+ }) => ({
130
+ 1: `1px solid ${colors['border-primary']}`,
131
+ 2: `2px solid ${colors['border-primary']}`
132
+ })).createScaleVariables('elements').addName('core').build();
@@ -30,6 +30,18 @@ export declare const lxStudioTheme: Record<"breakpoints", {
30
30
  md: string;
31
31
  lg: string;
32
32
  xl: string;
33
+ }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
34
+ c_base: string;
35
+ c_xs: string;
36
+ c_sm: string;
37
+ c_md: string;
38
+ c_lg: string;
39
+ c_xl: string;
40
+ xs: string;
41
+ sm: string;
42
+ md: string;
43
+ lg: string;
44
+ xl: string;
33
45
  }> & import("@codecademy/variance/dist/createTheme/types").Merge<{
34
46
  borderRadii: {
35
47
  none: string;
@@ -45,19 +57,6 @@ export declare const lxStudioTheme: Record<"breakpoints", {
45
57
  readonly monospace: "Monaco, Menlo, \"Ubuntu Mono\", \"Droid Sans Mono\", Consolas,\nmonospace";
46
58
  readonly system: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Ubuntu\",\n\"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
47
59
  };
48
- elements: Record<"elements", import("@codecademy/variance").KeyAsVariable<{
49
- readonly headerHeight: {
50
- readonly base: "4rem";
51
- readonly md: "5rem";
52
- };
53
- readonly headerZ: 15;
54
- }, "elements">> & {
55
- readonly headerHeight: {
56
- readonly base: "4rem";
57
- readonly md: "5rem";
58
- };
59
- readonly headerZ: 15;
60
- };
61
60
  breakpoints: {
62
61
  c_base: string;
63
62
  c_xs: string;
@@ -71,6 +70,19 @@ export declare const lxStudioTheme: Record<"breakpoints", {
71
70
  lg: string;
72
71
  xl: string;
73
72
  };
73
+ elements: Record<"elements", import("@codecademy/variance").KeyAsVariable<{
74
+ readonly headerHeight: {
75
+ readonly base: "4rem";
76
+ readonly md: "5rem";
77
+ };
78
+ readonly headerZ: 15;
79
+ }, "elements">> & {
80
+ readonly headerHeight: {
81
+ readonly base: "4rem";
82
+ readonly md: "5rem";
83
+ };
84
+ readonly headerZ: 15;
85
+ };
74
86
  fontSize: {
75
87
  readonly 64: string;
76
88
  readonly 44: string;
@@ -530,6 +542,7 @@ export declare const lxStudioTheme: Record<"breakpoints", {
530
542
  1: string;
531
543
  2: string;
532
544
  }, "-">;
545
+ name: string;
533
546
  } & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
534
547
  lxStudioSuccess: "#06844F";
535
548
  lxStudioBgPrimary: "#FAFBFC";
@@ -1073,8 +1086,8 @@ export declare const lxStudioTheme: Record<"breakpoints", {
1073
1086
  }, "-", "_">;
1074
1087
  }>;
1075
1088
  mode: "light";
1076
- _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "black" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-disabled" | "text-accent" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "lxStudioSuccess" | "lxStudioBgPrimary" | "lxStudioPurple" | "lxStudioPurpleHover") => string;
1077
- }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1089
+ _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "black" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "lxStudioSuccess" | "lxStudioBgPrimary" | "lxStudioPurple" | "lxStudioPurpleHover") => string;
1090
+ }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1078
1091
  export type LxStudioThemeShape = typeof lxStudioTheme;
1079
1092
  export interface LxStudioTheme extends LxStudioThemeShape {
1080
1093
  }
@@ -51,4 +51,4 @@ export const lxStudioTheme = createTheme({
51
51
  disabled: 'navy-300'
52
52
  }
53
53
  }
54
- }).build();
54
+ }).addName('lxStudio').build();
@@ -1,7 +1,3 @@
1
- /**
2
- * @description This is an extended theme for Percipio with custom color tokens
3
- * based on the Percipio design system specifications.
4
- */
5
1
  export declare const percipioTheme: Record<"breakpoints", {
6
2
  c_base: string;
7
3
  c_xs: string;
@@ -26,6 +22,18 @@ export declare const percipioTheme: Record<"breakpoints", {
26
22
  md: string;
27
23
  lg: string;
28
24
  xl: string;
25
+ }> & import("@codecademy/variance/dist/createTheme/types").Merge<Record<"breakpoints", {
26
+ c_base: string;
27
+ c_xs: string;
28
+ c_sm: string;
29
+ c_md: string;
30
+ c_lg: string;
31
+ c_xl: string;
32
+ xs: string;
33
+ sm: string;
34
+ md: string;
35
+ lg: string;
36
+ xl: string;
29
37
  }> & import("@codecademy/variance/dist/createTheme/types").Merge<{
30
38
  fontFamily: {
31
39
  readonly accent: "\"Roboto\", sans-serif";
@@ -33,19 +41,6 @@ export declare const percipioTheme: Record<"breakpoints", {
33
41
  readonly monospace: "\"Roboto Mono\", monospace";
34
42
  readonly system: "\"Roboto\", sans-serif";
35
43
  };
36
- elements: Record<"elements", import("@codecademy/variance").KeyAsVariable<{
37
- readonly headerHeight: {
38
- readonly base: "4rem";
39
- readonly md: "5rem";
40
- };
41
- readonly headerZ: 15;
42
- }, "elements">> & {
43
- readonly headerHeight: {
44
- readonly base: "4rem";
45
- readonly md: "5rem";
46
- };
47
- readonly headerZ: 15;
48
- };
49
44
  breakpoints: {
50
45
  c_base: string;
51
46
  c_xs: string;
@@ -59,6 +54,19 @@ export declare const percipioTheme: Record<"breakpoints", {
59
54
  lg: string;
60
55
  xl: string;
61
56
  };
57
+ elements: Record<"elements", import("@codecademy/variance").KeyAsVariable<{
58
+ readonly headerHeight: {
59
+ readonly base: "4rem";
60
+ readonly md: "5rem";
61
+ };
62
+ readonly headerZ: 15;
63
+ }, "elements">> & {
64
+ readonly headerHeight: {
65
+ readonly base: "4rem";
66
+ readonly md: "5rem";
67
+ };
68
+ readonly headerZ: 15;
69
+ };
62
70
  borderRadii: {
63
71
  none: string;
64
72
  sm: string;
@@ -526,29 +534,18 @@ export declare const percipioTheme: Record<"breakpoints", {
526
534
  1: string;
527
535
  2: string;
528
536
  }, "-">;
537
+ name: string;
529
538
  } & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
530
539
  percipioTextPrimary: "#222325";
531
540
  percipioTextSecondary: "rgba(34, 35, 37, 0.75)";
532
541
  percipioTextDisabled: "#AFB6C2";
533
542
  percipioTextAccent: "#222325";
534
- percipioBgDefault: "#FFFFFF";
535
543
  percipioBgPrimary: "#FAFBFC";
536
- percipioBgContrast: "#FFFFFF";
537
- percipioBgHover: "rgba(16, 22, 47, 0.12)";
538
- percipioBgSelected: "rgba(16, 22, 47, 0.04)";
539
- percipioBgDisabled: "rgba(16, 22, 47, 0.12)";
540
544
  percipioBgSuccess: "#EEF7F3";
541
545
  percipioBgWarning: "#FFF7E0";
542
546
  percipioBgError: "#FFF1F5";
543
- percipioBorderPrimary: "rgba(16, 22, 47, 0.47)";
544
- percipioBorderSecondary: "rgba(16, 22, 47, 0.12)";
545
- percipioBorderTertiary: "#10162F";
546
- percipioBorderDisabled: "rgba(16, 22, 47, 0.28)";
547
- percipioShadowPrimary: "rgba(16, 22, 47, 0.12)";
548
- percipioShadowSecondary: "rgba(16, 22, 47, 0.47)";
549
547
  percipioActionPrimary: "#0073C4";
550
548
  percipioActionPrimaryHover: "#141C36";
551
- percipioActionPrimaryInverse: "#FFFFFF";
552
549
  percipioActionSecondary: "#6A6E75";
553
550
  percipioActionSecondaryHover: "rgba(106, 110, 117, 0.86)";
554
551
  percipioActionDanger: "#B83C3C";
@@ -638,25 +635,19 @@ export declare const percipioTheme: Record<"breakpoints", {
638
635
  warning: "percipioFeedbackWarning";
639
636
  };
640
637
  background: {
641
- _: "percipioBgDefault";
642
- contrast: "percipioBgContrast";
643
- current: "percipioBgDefault";
644
638
  primary: "percipioBgPrimary";
645
- selected: "percipioBgSelected";
646
- disabled: "percipioBgDisabled";
647
- hover: "percipioBgHover";
648
639
  success: "percipioBgSuccess";
649
640
  warning: "percipioBgWarning";
650
641
  error: "percipioBgError";
651
642
  };
652
643
  shadow: {
653
- primary: "percipioShadowPrimary";
654
- secondary: "percipioShadowSecondary";
644
+ primary: "navy-200";
645
+ secondary: "navy-400";
655
646
  };
656
647
  primary: {
657
648
  _: "percipioActionPrimary";
658
649
  hover: "percipioActionPrimaryHover";
659
- inverse: "percipioActionPrimaryInverse";
650
+ inverse: "white";
660
651
  };
661
652
  secondary: {
662
653
  _: "percipioActionSecondary";
@@ -671,10 +662,10 @@ export declare const percipioTheme: Record<"breakpoints", {
671
662
  hover: "percipioActionPrimaryHover";
672
663
  };
673
664
  border: {
674
- primary: "percipioBorderPrimary";
675
- secondary: "percipioBorderSecondary";
676
- tertiary: "percipioBorderTertiary";
677
- disabled: "percipioBorderDisabled";
665
+ primary: "navy-400";
666
+ secondary: "navy-200";
667
+ tertiary: "navy-800";
668
+ disabled: "navy-300";
678
669
  };
679
670
  }, "-", "_">, "colors"> & import("@codecademy/variance/dist/createTheme/types").Assign<import("@codecademy/variance/dist/createTheme/types").Assign<import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
680
671
  readonly beige: "#FFF0E5";
@@ -921,24 +912,12 @@ export declare const percipioTheme: Record<"breakpoints", {
921
912
  percipioTextSecondary: "rgba(34, 35, 37, 0.75)";
922
913
  percipioTextDisabled: "#AFB6C2";
923
914
  percipioTextAccent: "#222325";
924
- percipioBgDefault: "#FFFFFF";
925
915
  percipioBgPrimary: "#FAFBFC";
926
- percipioBgContrast: "#FFFFFF";
927
- percipioBgHover: "rgba(16, 22, 47, 0.12)";
928
- percipioBgSelected: "rgba(16, 22, 47, 0.04)";
929
- percipioBgDisabled: "rgba(16, 22, 47, 0.12)";
930
916
  percipioBgSuccess: "#EEF7F3";
931
917
  percipioBgWarning: "#FFF7E0";
932
918
  percipioBgError: "#FFF1F5";
933
- percipioBorderPrimary: "rgba(16, 22, 47, 0.47)";
934
- percipioBorderSecondary: "rgba(16, 22, 47, 0.12)";
935
- percipioBorderTertiary: "#10162F";
936
- percipioBorderDisabled: "rgba(16, 22, 47, 0.28)";
937
- percipioShadowPrimary: "rgba(16, 22, 47, 0.12)";
938
- percipioShadowSecondary: "rgba(16, 22, 47, 0.47)";
939
919
  percipioActionPrimary: "#0073C4";
940
920
  percipioActionPrimaryHover: "#141C36";
941
- percipioActionPrimaryInverse: "#FFFFFF";
942
921
  percipioActionSecondary: "#6A6E75";
943
922
  percipioActionSecondaryHover: "rgba(106, 110, 117, 0.86)";
944
923
  percipioActionDanger: "#B83C3C";
@@ -1134,25 +1113,19 @@ export declare const percipioTheme: Record<"breakpoints", {
1134
1113
  warning: "percipioFeedbackWarning";
1135
1114
  };
1136
1115
  background: {
1137
- _: "percipioBgDefault";
1138
- contrast: "percipioBgContrast";
1139
- current: "percipioBgDefault";
1140
1116
  primary: "percipioBgPrimary";
1141
- selected: "percipioBgSelected";
1142
- disabled: "percipioBgDisabled";
1143
- hover: "percipioBgHover";
1144
1117
  success: "percipioBgSuccess";
1145
1118
  warning: "percipioBgWarning";
1146
1119
  error: "percipioBgError";
1147
1120
  };
1148
1121
  shadow: {
1149
- primary: "percipioShadowPrimary";
1150
- secondary: "percipioShadowSecondary";
1122
+ primary: "navy-200";
1123
+ secondary: "navy-400";
1151
1124
  };
1152
1125
  primary: {
1153
1126
  _: "percipioActionPrimary";
1154
1127
  hover: "percipioActionPrimaryHover";
1155
- inverse: "percipioActionPrimaryInverse";
1128
+ inverse: "white";
1156
1129
  };
1157
1130
  secondary: {
1158
1131
  _: "percipioActionSecondary";
@@ -1167,16 +1140,16 @@ export declare const percipioTheme: Record<"breakpoints", {
1167
1140
  hover: "percipioActionPrimaryHover";
1168
1141
  };
1169
1142
  border: {
1170
- primary: "percipioBorderPrimary";
1171
- secondary: "percipioBorderSecondary";
1172
- tertiary: "percipioBorderTertiary";
1173
- disabled: "percipioBorderDisabled";
1143
+ primary: "navy-400";
1144
+ secondary: "navy-200";
1145
+ tertiary: "navy-800";
1146
+ disabled: "navy-300";
1174
1147
  };
1175
1148
  }, "-", "_">;
1176
1149
  }>;
1177
1150
  mode: "light";
1178
- _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "black" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-disabled" | "text-accent" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "percipioTextPrimary" | "percipioTextSecondary" | "percipioTextDisabled" | "percipioTextAccent" | "percipioBgDefault" | "percipioBgPrimary" | "percipioBgContrast" | "percipioBgHover" | "percipioBgSelected" | "percipioBgDisabled" | "percipioBgSuccess" | "percipioBgWarning" | "percipioBgError" | "percipioBorderPrimary" | "percipioBorderSecondary" | "percipioBorderTertiary" | "percipioBorderDisabled" | "percipioShadowPrimary" | "percipioShadowSecondary" | "percipioActionPrimary" | "percipioActionPrimaryHover" | "percipioActionPrimaryInverse" | "percipioActionSecondary" | "percipioActionSecondaryHover" | "percipioActionDanger" | "percipioActionDangerHover" | "percipioFeedbackSuccess" | "percipioFeedbackWarning" | "percipioFeedbackError") => string;
1179
- }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1151
+ _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "black" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "percipioTextPrimary" | "percipioTextSecondary" | "percipioTextDisabled" | "percipioTextAccent" | "percipioBgPrimary" | "percipioBgSuccess" | "percipioBgWarning" | "percipioBgError" | "percipioActionPrimary" | "percipioActionPrimaryHover" | "percipioActionSecondary" | "percipioActionSecondaryHover" | "percipioActionDanger" | "percipioActionDangerHover" | "percipioFeedbackSuccess" | "percipioFeedbackWarning" | "percipioFeedbackError") => string;
1152
+ }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1180
1153
  export type PercipioThemeShape = typeof percipioTheme;
1181
1154
  export interface PercipioTheme extends PercipioThemeShape {
1182
1155
  }
@@ -1,12 +1,6 @@
1
1
  import { createTheme } from '@codecademy/variance';
2
2
  import { percipioFontFamily, percipioPalette } from '../variables';
3
3
  import { coreTheme } from './core';
4
-
5
- /**
6
- * @description This is an extended theme for Percipio with custom color tokens
7
- * based on the Percipio design system specifications.
8
- */
9
-
10
4
  export const percipioTheme = createTheme({
11
5
  ...coreTheme,
12
6
  fontFamily: percipioFontFamily
@@ -25,25 +19,19 @@ export const percipioTheme = createTheme({
25
19
  warning: 'percipioFeedbackWarning'
26
20
  },
27
21
  background: {
28
- _: 'percipioBgDefault',
29
- contrast: 'percipioBgContrast',
30
- current: 'percipioBgDefault',
31
22
  primary: 'percipioBgPrimary',
32
- selected: 'percipioBgSelected',
33
- disabled: 'percipioBgDisabled',
34
- hover: 'percipioBgHover',
35
23
  success: 'percipioBgSuccess',
36
24
  warning: 'percipioBgWarning',
37
25
  error: 'percipioBgError'
38
26
  },
39
27
  shadow: {
40
- primary: 'percipioShadowPrimary',
41
- secondary: 'percipioShadowSecondary'
28
+ primary: 'navy-200',
29
+ secondary: 'navy-400'
42
30
  },
43
31
  primary: {
44
32
  _: 'percipioActionPrimary',
45
33
  hover: 'percipioActionPrimaryHover',
46
- inverse: 'percipioActionPrimaryInverse'
34
+ inverse: 'white'
47
35
  },
48
36
  secondary: {
49
37
  _: 'percipioActionSecondary',
@@ -58,10 +46,10 @@ export const percipioTheme = createTheme({
58
46
  hover: 'percipioActionPrimaryHover'
59
47
  },
60
48
  border: {
61
- primary: 'percipioBorderPrimary',
62
- secondary: 'percipioBorderSecondary',
63
- tertiary: 'percipioBorderTertiary',
64
- disabled: 'percipioBorderDisabled'
49
+ primary: 'navy-400',
50
+ secondary: 'navy-200',
51
+ tertiary: 'navy-800',
52
+ disabled: 'navy-300'
65
53
  }
66
54
  }
67
- }).build();
55
+ }).addName('percipio').build();