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