@codecademy/gamut-styles 17.14.1-alpha.63a45b.0 → 17.14.1-alpha.673154.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.
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './globals';
11
11
  export * from './utilities';
12
12
  export * from './themes';
13
13
  export { coreTheme as theme } from './themes';
14
+ export { FONT_ASSET_PATH, lxStudio } from './remoteAssets/fonts';
package/dist/index.js CHANGED
@@ -10,4 +10,5 @@ export * from './styles';
10
10
  export * from './globals';
11
11
  export * from './utilities';
12
12
  export * from './themes';
13
- export { coreTheme as theme } from './themes';
13
+ export { coreTheme as theme } from './themes';
14
+ export { FONT_ASSET_PATH, lxStudio } from './remoteAssets/fonts';
@@ -2,6 +2,10 @@ import { FontConfig } from '../utilities/fontUtils';
2
2
  export declare const FONT_ASSET_PATH = "https://www.codecademy.com/gamut";
3
3
  export declare const core: readonly FontConfig[];
4
4
  export declare const percipio: readonly FontConfig[];
5
+ /**
6
+ * LX Studio: Skillsoft Sans (accent) + Skillsoft Text (base).
7
+ * Weights 400 / 500 / 700 + italics; 500 uses Medium files for title/bold tokens.
8
+ */
5
9
  export declare const lxStudio: readonly FontConfig[];
6
10
  export declare const webFonts: {
7
11
  readonly core: readonly FontConfig[];
@@ -75,25 +75,72 @@ export const percipio = [{
75
75
  name: 'Roboto Mono',
76
76
  weight: 'bold'
77
77
  }];
78
+
79
+ /**
80
+ * LX Studio: Skillsoft Sans (accent) + Skillsoft Text (base).
81
+ * Weights 400 / 500 / 700 + italics; 500 uses Medium files for title/bold tokens.
82
+ */
78
83
  export const lxStudio = [{
79
- filePath: `${FONT_ASSET_PATH}/hanken-grotesk-regular`,
84
+ filePath: `${FONT_ASSET_PATH}/SkillsoftText-Regular`,
80
85
  extensions,
81
- name: 'Hanken Grotesk'
86
+ name: 'Skillsoft Text'
82
87
  }, {
83
- filePath: `${FONT_ASSET_PATH}/hanken-grotesk-italic`,
88
+ filePath: `${FONT_ASSET_PATH}/SkillsoftText-RegularItalic`,
84
89
  extensions,
85
- name: 'Hanken Grotesk',
90
+ name: 'Skillsoft Text',
86
91
  style: 'italic'
87
92
  }, {
88
- filePath: `${FONT_ASSET_PATH}/hanken-grotesk-bold`,
93
+ filePath: `${FONT_ASSET_PATH}/SkillsoftText-Medium`,
89
94
  extensions,
90
- name: 'Hanken Grotesk',
91
- weight: 'bold'
95
+ name: 'Skillsoft Text',
96
+ weight: 500
92
97
  }, {
93
- filePath: `${FONT_ASSET_PATH}/hanken-grotesk-bold-italic`,
98
+ filePath: `${FONT_ASSET_PATH}/SkillsoftText-MediumItalic`,
94
99
  extensions,
95
- name: 'Hanken Grotesk',
96
- weight: 'bold',
100
+ name: 'Skillsoft Text',
101
+ weight: 500,
102
+ style: 'italic'
103
+ }, {
104
+ filePath: `${FONT_ASSET_PATH}/SkillsoftText-Bold`,
105
+ extensions,
106
+ name: 'Skillsoft Text',
107
+ weight: 700
108
+ }, {
109
+ filePath: `${FONT_ASSET_PATH}/SkillsoftText-BoldItalic`,
110
+ extensions,
111
+ name: 'Skillsoft Text',
112
+ weight: 700,
113
+ style: 'italic'
114
+ }, {
115
+ filePath: `${FONT_ASSET_PATH}/SkillsoftSans-Regular`,
116
+ extensions,
117
+ name: 'Skillsoft Sans'
118
+ }, {
119
+ filePath: `${FONT_ASSET_PATH}/SkillsoftSans-RegularItalic`,
120
+ extensions,
121
+ name: 'Skillsoft Sans',
122
+ style: 'italic'
123
+ }, {
124
+ filePath: `${FONT_ASSET_PATH}/SkillsoftSans-Medium`,
125
+ extensions,
126
+ name: 'Skillsoft Sans',
127
+ weight: 500
128
+ }, {
129
+ filePath: `${FONT_ASSET_PATH}/SkillsoftSans-MediumItalic`,
130
+ extensions,
131
+ name: 'Skillsoft Sans',
132
+ weight: 500,
133
+ style: 'italic'
134
+ }, {
135
+ filePath: `${FONT_ASSET_PATH}/SkillsoftSans-Bold`,
136
+ extensions,
137
+ name: 'Skillsoft Sans',
138
+ weight: 700
139
+ }, {
140
+ filePath: `${FONT_ASSET_PATH}/SkillsoftSans-BoldItalic`,
141
+ extensions,
142
+ name: 'Skillsoft Sans',
143
+ weight: 700,
97
144
  style: 'italic'
98
145
  }];
99
146
  export const webFonts = {
@@ -52,11 +52,19 @@ export declare const lxStudioTheme: Record<"breakpoints", {
52
52
  full: string;
53
53
  };
54
54
  fontFamily: {
55
- readonly accent: "\"Hanken Grotesk\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
56
- readonly base: "\"Hanken Grotesk\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
55
+ readonly accent: "\"Skillsoft Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
56
+ readonly base: "\"Skillsoft Text\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
57
57
  readonly monospace: "Monaco, Menlo, \"Ubuntu Mono\", \"Droid Sans Mono\", Consolas,\nmonospace";
58
58
  readonly system: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Ubuntu\",\n\"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
59
59
  };
60
+ fontWeight: {
61
+ readonly title: 500;
62
+ readonly bold: 500;
63
+ readonly 500: 500;
64
+ readonly base: 400;
65
+ readonly 700: 700;
66
+ readonly 400: 400;
67
+ };
60
68
  breakpoints: {
61
69
  c_base: string;
62
70
  c_xs: string;
@@ -99,12 +107,6 @@ export declare const lxStudioTheme: Record<"breakpoints", {
99
107
  readonly spacedTitle: 1.3;
100
108
  readonly title: 1.2;
101
109
  };
102
- fontWeight: {
103
- readonly base: 400;
104
- readonly title: 700;
105
- readonly 700: 700;
106
- readonly 400: 400;
107
- };
108
110
  spacing: {
109
111
  readonly 0: 0;
110
112
  readonly 4: string;
@@ -546,8 +548,7 @@ export declare const lxStudioTheme: Record<"breakpoints", {
546
548
  } & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
547
549
  lxStudioSuccess: "#06844F";
548
550
  lxStudioBgPrimary: "#FAFBFC";
549
- lxStudioPurple: "#5628FE";
550
- lxStudioPurpleHover: "#7955FC";
551
+ sapphire: "#1C50BB";
551
552
  beige: "#FFF0E5";
552
553
  blue: "#1557FF";
553
554
  green: "#008A27";
@@ -628,8 +629,8 @@ export declare const lxStudioTheme: Record<"breakpoints", {
628
629
  primary: "navy-200";
629
630
  };
630
631
  primary: {
631
- _: "lxStudioPurple";
632
- hover: "lxStudioPurpleHover";
632
+ _: "sapphire";
633
+ hover: "navy-800";
633
634
  };
634
635
  interface: {
635
636
  _: "hyper-500";
@@ -883,8 +884,7 @@ export declare const lxStudioTheme: Record<"breakpoints", {
883
884
  }, "-">, "color">>, import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
884
885
  lxStudioSuccess: "#06844F";
885
886
  lxStudioBgPrimary: "#FAFBFC";
886
- lxStudioPurple: "#5628FE";
887
- lxStudioPurpleHover: "#7955FC";
887
+ sapphire: "#1C50BB";
888
888
  beige: "#FFF0E5";
889
889
  blue: "#1557FF";
890
890
  green: "#008A27";
@@ -1071,8 +1071,8 @@ export declare const lxStudioTheme: Record<"breakpoints", {
1071
1071
  primary: "navy-200";
1072
1072
  };
1073
1073
  primary: {
1074
- _: "lxStudioPurple";
1075
- hover: "lxStudioPurpleHover";
1074
+ _: "sapphire";
1075
+ hover: "navy-800";
1076
1076
  };
1077
1077
  interface: {
1078
1078
  _: "hyper-500";
@@ -1086,8 +1086,7 @@ export declare const lxStudioTheme: Record<"breakpoints", {
1086
1086
  }, "-", "_">;
1087
1087
  }>;
1088
1088
  mode: "light";
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;
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" | "sapphire") => string;
1090
1090
  }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1091
1091
  export type LxStudioThemeShape = typeof lxStudioTheme;
1092
- export interface LxStudioTheme extends LxStudioThemeShape {
1093
- }
1092
+ export type LxStudioTheme = LxStudioThemeShape;
@@ -1,5 +1,5 @@
1
1
  import { createTheme } from '@codecademy/variance';
2
- import { fontLxStudio, fontMonospace, fontSystem, lxStudioPalette } from '../variables';
2
+ import { fontLxStudioAccent, fontLxStudioBase, fontMonospace, fontSystem, fontWeight as coreFontWeight, lxStudioPalette } from '../variables';
3
3
  import { coreTheme } from './core';
4
4
 
5
5
  /**
@@ -8,11 +8,17 @@ import { coreTheme } from './core';
8
8
  */
9
9
 
10
10
  const lxStudioFontFamily = {
11
- accent: fontLxStudio,
12
- base: fontLxStudio,
11
+ accent: fontLxStudioAccent,
12
+ base: fontLxStudioBase,
13
13
  monospace: fontMonospace,
14
14
  system: fontSystem
15
15
  };
16
+ const lxStudioFontWeight = {
17
+ ...coreFontWeight,
18
+ title: 500,
19
+ bold: 500,
20
+ 500: 500
21
+ };
16
22
  export const lxStudioBorderRadii = {
17
23
  none: '0px',
18
24
  sm: '4px',
@@ -24,7 +30,8 @@ export const lxStudioBorderRadii = {
24
30
  export const lxStudioTheme = createTheme({
25
31
  ...coreTheme,
26
32
  borderRadii: lxStudioBorderRadii,
27
- fontFamily: lxStudioFontFamily
33
+ fontFamily: lxStudioFontFamily,
34
+ fontWeight: lxStudioFontWeight
28
35
  }).addColors(lxStudioPalette).addColorModes('light', {
29
36
  // these are just the overrides, the rest of the tokens are inherited from coreTheme
30
37
  light: {
@@ -38,8 +45,8 @@ export const lxStudioTheme = createTheme({
38
45
  primary: 'navy-200'
39
46
  },
40
47
  primary: {
41
- _: 'lxStudioPurple',
42
- hover: 'lxStudioPurpleHover'
48
+ _: 'sapphire',
49
+ hover: 'navy-800'
43
50
  },
44
51
  interface: {
45
52
  _: 'hyper-500',
@@ -231,14 +231,12 @@ export declare const platformPalette: {
231
231
  export declare const lxStudioColors: {
232
232
  readonly lxStudioSuccess: "#06844F";
233
233
  readonly lxStudioBgPrimary: "#FAFBFC";
234
- readonly lxStudioPurple: "#5628FE";
235
- readonly lxStudioPurpleHover: "#7955FC";
234
+ readonly sapphire: "#1C50BB";
236
235
  };
237
236
  export declare const lxStudioPalette: {
238
237
  lxStudioSuccess: "#06844F";
239
238
  lxStudioBgPrimary: "#FAFBFC";
240
- lxStudioPurple: "#5628FE";
241
- lxStudioPurpleHover: "#7955FC";
239
+ sapphire: "#1C50BB";
242
240
  beige: "#FFF0E5";
243
241
  blue: "#1557FF";
244
242
  green: "#008A27";
@@ -161,8 +161,7 @@ export const platformPalette = {
161
161
  export const lxStudioColors = {
162
162
  lxStudioSuccess: '#06844F',
163
163
  lxStudioBgPrimary: '#FAFBFC',
164
- lxStudioPurple: '#5628FE',
165
- lxStudioPurpleHover: '#7955FC'
164
+ sapphire: '#1C50BB'
166
165
  };
167
166
  export const lxStudioPalette = {
168
167
  ...corePalette,
@@ -2,7 +2,8 @@ export declare const fontAccent = "\"Suisse\", \"Apercu\", -apple-system, BlinkM
2
2
  export declare const fontBase = "\"Apercu\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
3
3
  export declare const fontMonospace = "Monaco, Menlo, \"Ubuntu Mono\", \"Droid Sans Mono\", Consolas,\nmonospace";
4
4
  export declare const fontSystem = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Ubuntu\",\n\"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
5
- export declare const fontLxStudio = "\"Hanken Grotesk\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
5
+ export declare const fontLxStudioAccent = "\"Skillsoft Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
6
+ export declare const fontLxStudioBase = "\"Skillsoft Text\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
6
7
  export declare const fontFamily: {
7
8
  readonly accent: "\"Suisse\", \"Apercu\", -apple-system, BlinkMacSystemFont,\n\"Segoe UI\", \"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\",\n\"Helvetica Neue\", sans-serif";
8
9
  readonly base: "\"Apercu\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
@@ -9,7 +9,10 @@ export const fontMonospace = `Monaco, Menlo, "Ubuntu Mono", "Droid Sans Mono", C
9
9
  monospace`;
10
10
  export const fontSystem = `-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu",
11
11
  "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif`;
12
- export const fontLxStudio = `"Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
12
+ export const fontLxStudioAccent = `"Skillsoft Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
13
+ "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
14
+ sans-serif`;
15
+ export const fontLxStudioBase = `"Skillsoft Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
13
16
  "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
14
17
  sans-serif`;
15
18
  export const fontFamily = {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-styles",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "17.14.1-alpha.63a45b.0",
4
+ "version": "17.14.1-alpha.673154.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
- "@codecademy/variance": "0.26.2-alpha.63a45b.0",
7
+ "@codecademy/variance": "0.26.2-alpha.673154.0",
8
8
  "@emotion/is-prop-valid": "^1.1.0",
9
9
  "framer-motion": "^11.18.0",
10
10
  "get-nonce": "^1.0.0",