@codecademy/gamut-styles 17.6.0-alpha.4fa030.0 → 17.6.1-alpha.63a3d2.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.
@@ -0,0 +1,54 @@
1
+ import { createTheme } from '@codecademy/variance';
2
+ import { fontBase, fontMonospace, fontSystem, lxStudioPalette } from '../variables';
3
+ import { coreTheme } from './core';
4
+
5
+ /**
6
+ * @description This is an extended theme for the lx studio with an expanded set of tokens
7
+ * That are not needed for the rest of the application.
8
+ */
9
+
10
+ const lxStudioFontFamily = {
11
+ accent: fontBase,
12
+ base: fontBase,
13
+ monospace: fontMonospace,
14
+ system: fontSystem
15
+ };
16
+ export const lxStudioBorderRadii = {
17
+ none: '0px',
18
+ sm: '4px',
19
+ md: '8px',
20
+ lg: '12px',
21
+ xl: '16px',
22
+ full: '999px'
23
+ };
24
+ export const lxStudioTheme = createTheme({
25
+ ...coreTheme,
26
+ borderRadii: lxStudioBorderRadii,
27
+ fontFamily: lxStudioFontFamily
28
+ }).addColors(lxStudioPalette).addColorModes('light', {
29
+ // these are just the overrides, the rest of the tokens are inherited from coreTheme
30
+ light: {
31
+ feedback: {
32
+ success: 'lxStudioSuccess'
33
+ },
34
+ background: {
35
+ primary: 'lxStudioBgPrimary'
36
+ },
37
+ shadow: {
38
+ primary: 'navy-200'
39
+ },
40
+ primary: {
41
+ _: 'lxStudioPurple',
42
+ hover: 'lxStudioPurpleHover'
43
+ },
44
+ interface: {
45
+ _: 'hyper-500',
46
+ hover: 'hyper-400'
47
+ },
48
+ border: {
49
+ primary: 'navy-400',
50
+ tertiary: 'navy-800',
51
+ disabled: 'navy-300'
52
+ }
53
+ }
54
+ }).build();
@@ -109,10 +109,6 @@ export declare const platformTheme: Record<"breakpoints", {
109
109
  readonly yellow: "#FFD300";
110
110
  readonly black: "#000000";
111
111
  readonly white: "#ffffff";
112
- readonly "shadow-white-slight": string;
113
- readonly "shadow-white-heavy": string;
114
- readonly "shadow-black-slight": string;
115
- readonly "shadow-black-heavy": string;
116
112
  readonly "beige-100": "#FFF0E5";
117
113
  readonly "blue-0": "#F5FCFF";
118
114
  readonly "blue-100": "#D3F2FF";
@@ -182,8 +178,8 @@ export declare const platformTheme: Record<"breakpoints", {
182
178
  hover: "navy-200";
183
179
  };
184
180
  shadow: {
185
- opaque: "shadow-white-heavy";
186
- solid: "gray-200";
181
+ primary: "navy-800";
182
+ secondary: "navy-600";
187
183
  };
188
184
  primary: {
189
185
  _: "hyper-500";
@@ -230,8 +226,8 @@ export declare const platformTheme: Record<"breakpoints", {
230
226
  hover: "white-200";
231
227
  };
232
228
  shadow: {
233
- opaque: "shadow-black-heavy";
234
- solid: "black";
229
+ primary: "white";
230
+ secondary: "white-600";
235
231
  };
236
232
  primary: {
237
233
  _: "yellow-500";
@@ -275,10 +271,6 @@ export declare const platformTheme: Record<"breakpoints", {
275
271
  readonly yellow: "#FFD300";
276
272
  readonly black: "#000000";
277
273
  readonly white: "#ffffff";
278
- readonly "shadow-white-slight": string;
279
- readonly "shadow-white-heavy": string;
280
- readonly "shadow-black-slight": string;
281
- readonly "shadow-black-heavy": string;
282
274
  readonly "beige-100": "#FFF0E5";
283
275
  readonly "blue-0": "#F5FCFF";
284
276
  readonly "blue-100": "#D3F2FF";
@@ -349,8 +341,8 @@ export declare const platformTheme: Record<"breakpoints", {
349
341
  hover: "navy-200";
350
342
  };
351
343
  shadow: {
352
- opaque: "shadow-white-heavy";
353
- solid: "gray-200";
344
+ primary: "navy-800";
345
+ secondary: "navy-600";
354
346
  };
355
347
  primary: {
356
348
  _: "hyper-500";
@@ -398,8 +390,8 @@ export declare const platformTheme: Record<"breakpoints", {
398
390
  hover: "white-200";
399
391
  };
400
392
  shadow: {
401
- opaque: "shadow-black-heavy";
402
- solid: "black";
393
+ primary: "white";
394
+ secondary: "white-600";
403
395
  };
404
396
  primary: {
405
397
  _: "yellow-500";
@@ -446,10 +438,6 @@ export declare const platformTheme: Record<"breakpoints", {
446
438
  readonly yellow: "#FFD300";
447
439
  readonly black: "#000000";
448
440
  readonly white: "#ffffff";
449
- readonly "shadow-white-slight": string;
450
- readonly "shadow-white-heavy": string;
451
- readonly "shadow-black-slight": string;
452
- readonly "shadow-black-heavy": string;
453
441
  readonly "beige-100": "#FFF0E5";
454
442
  readonly "blue-0": "#F5FCFF";
455
443
  readonly "blue-100": "#D3F2FF";
@@ -591,10 +579,6 @@ export declare const platformTheme: Record<"breakpoints", {
591
579
  readonly yellow: "#FFD300";
592
580
  readonly black: "#000000";
593
581
  readonly white: "#ffffff";
594
- readonly "shadow-white-slight": string;
595
- readonly "shadow-white-heavy": string;
596
- readonly "shadow-black-slight": string;
597
- readonly "shadow-black-heavy": string;
598
582
  readonly "beige-100": "#FFF0E5";
599
583
  readonly "blue-0": "#F5FCFF";
600
584
  readonly "blue-100": "#D3F2FF";
@@ -663,8 +647,8 @@ export declare const platformTheme: Record<"breakpoints", {
663
647
  hover: "navy-200";
664
648
  };
665
649
  shadow: {
666
- opaque: "shadow-white-heavy";
667
- solid: "gray-200";
650
+ primary: "navy-800";
651
+ secondary: "navy-600";
668
652
  };
669
653
  primary: {
670
654
  _: "hyper-500";
@@ -711,8 +695,8 @@ export declare const platformTheme: Record<"breakpoints", {
711
695
  hover: "white-200";
712
696
  };
713
697
  shadow: {
714
- opaque: "shadow-black-heavy";
715
- solid: "black";
698
+ primary: "white";
699
+ secondary: "white-600";
716
700
  };
717
701
  primary: {
718
702
  _: "yellow-500";
@@ -756,10 +740,6 @@ export declare const platformTheme: Record<"breakpoints", {
756
740
  readonly yellow: "#FFD300";
757
741
  readonly black: "#000000";
758
742
  readonly white: "#ffffff";
759
- readonly "shadow-white-slight": string;
760
- readonly "shadow-white-heavy": string;
761
- readonly "shadow-black-slight": string;
762
- readonly "shadow-black-heavy": string;
763
743
  readonly "beige-100": "#FFF0E5";
764
744
  readonly "blue-0": "#F5FCFF";
765
745
  readonly "blue-100": "#D3F2FF";
@@ -841,8 +821,8 @@ export declare const platformTheme: Record<"breakpoints", {
841
821
  hover: "navy-200";
842
822
  };
843
823
  shadow: {
844
- opaque: "shadow-white-heavy";
845
- solid: "gray-200";
824
+ primary: "navy-800";
825
+ secondary: "navy-600";
846
826
  };
847
827
  primary: {
848
828
  _: "hyper-500";
@@ -890,8 +870,8 @@ export declare const platformTheme: Record<"breakpoints", {
890
870
  hover: "white-200";
891
871
  };
892
872
  shadow: {
893
- opaque: "shadow-black-heavy";
894
- solid: "black";
873
+ primary: "white";
874
+ secondary: "white-600";
895
875
  };
896
876
  primary: {
897
877
  _: "yellow-500";
@@ -1001,10 +981,6 @@ export declare const platformTheme: Record<"breakpoints", {
1001
981
  readonly yellow: "#FFD300";
1002
982
  readonly black: "#000000";
1003
983
  readonly white: "#ffffff";
1004
- readonly "shadow-white-slight": string;
1005
- readonly "shadow-white-heavy": string;
1006
- readonly "shadow-black-slight": string;
1007
- readonly "shadow-black-heavy": string;
1008
984
  readonly "beige-100": "#FFF0E5";
1009
985
  readonly "blue-0": "#F5FCFF";
1010
986
  readonly "blue-100": "#D3F2FF";
@@ -1051,7 +1027,7 @@ export declare const platformTheme: Record<"breakpoints", {
1051
1027
  readonly "white-200": string;
1052
1028
  readonly "white-600": string;
1053
1029
  readonly "white-700": string;
1054
- }, "-"> | "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" | "border-disabled" | "border-secondary" | "border-primary" | "border-tertiary" | import("@codecademy/variance").Path<{
1030
+ }, "-"> | "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-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" | import("@codecademy/variance").Path<{
1055
1031
  readonly lightBeige: "#FFFBF8";
1056
1032
  readonly gold: "#8A7300";
1057
1033
  readonly teal: "#027E97";
@@ -107,10 +107,6 @@ export declare const corePalette: {
107
107
  readonly yellow: "#FFD300";
108
108
  readonly black: "#000000";
109
109
  readonly white: "#ffffff";
110
- readonly "shadow-white-slight": string;
111
- readonly "shadow-white-heavy": string;
112
- readonly "shadow-black-slight": string;
113
- readonly "shadow-black-heavy": string;
114
110
  readonly "beige-100": "#FFF0E5";
115
111
  readonly "blue-0": "#F5FCFF";
116
112
  readonly "blue-100": "#D3F2FF";
@@ -181,6 +177,12 @@ export declare const platformSwatches: {
181
177
  readonly '300': "#B3CCFF";
182
178
  };
183
179
  };
180
+ export declare const truePlatformColors: {
181
+ readonly lightBeige: "#FFFBF8";
182
+ readonly gold: "#8A7300";
183
+ readonly teal: "#027E97";
184
+ readonly purple: "#B3CCFF";
185
+ };
184
186
  export declare const platformPalette: {
185
187
  readonly lightBeige: "#FFFBF8";
186
188
  readonly gold: "#8A7300";
@@ -193,3 +195,82 @@ export declare const platformPalette: {
193
195
  readonly "teal-500": "#027E97";
194
196
  readonly "purple-300": "#B3CCFF";
195
197
  };
198
+ /**
199
+ * LX Studio Colors
200
+ */
201
+ export declare const lxStudioColors: {
202
+ readonly lxStudioSuccess: "#06844F";
203
+ readonly lxStudioBgPrimary: "#FAFBFC";
204
+ readonly lxStudioPurple: "#5628FE";
205
+ readonly lxStudioPurpleHover: "#7955FC";
206
+ };
207
+ export declare const lxStudioPalette: {
208
+ lxStudioSuccess: "#06844F";
209
+ lxStudioBgPrimary: "#FAFBFC";
210
+ lxStudioPurple: "#5628FE";
211
+ lxStudioPurpleHover: "#7955FC";
212
+ beige: "#FFF0E5";
213
+ blue: "#1557FF";
214
+ green: "#008A27";
215
+ hyper: "#3A10E5";
216
+ lightBlue: "#66C4FF";
217
+ lightGreen: "#AEE938";
218
+ navy: "#10162F";
219
+ orange: "#FF8C00";
220
+ paleBlue: "#F5FCFF";
221
+ paleGreen: "#F5FFE3";
222
+ palePink: "#FFF5FF";
223
+ paleYellow: "#FFFAE5";
224
+ pink: "#F966FF";
225
+ paleRed: "#DC5879";
226
+ red: "#E91C11";
227
+ yellow: "#FFD300";
228
+ black: "#000000";
229
+ white: "#ffffff";
230
+ "beige-100": "#FFF0E5";
231
+ "blue-0": "#F5FCFF";
232
+ "blue-100": "#D3F2FF";
233
+ "blue-300": "#66C4FF";
234
+ "blue-400": "#3388FF";
235
+ "blue-500": "#1557FF";
236
+ "blue-800": "#1D2340";
237
+ "navy-100": string;
238
+ "navy-300": string;
239
+ "navy-400": string;
240
+ "navy-500": string;
241
+ "navy-800": "#10162F";
242
+ "navy-200": string;
243
+ "navy-600": string;
244
+ "navy-700": string;
245
+ "navy-900": "#0A0D1C";
246
+ "green-0": "#F5FFE3";
247
+ "green-100": "#EAFDC6";
248
+ "green-400": "#AEE938";
249
+ "green-700": "#008A27";
250
+ "yellow-0": "#FFFAE5";
251
+ "yellow-400": "#CCA900";
252
+ "yellow-500": "#FFD300";
253
+ "pink-0": "#FFF5FF";
254
+ "pink-400": "#F966FF";
255
+ "red-0": "#E85D7F";
256
+ "red-100": "#DC5879";
257
+ "red-500": "#E91C11";
258
+ "red-600": "#BE1809";
259
+ "orange-100": "#FFE8CC";
260
+ "orange-500": "#FF8C00";
261
+ "hyper-400": "#5533FF";
262
+ "hyper-500": "#3A10E5";
263
+ "gray-100": "#F5F5F5";
264
+ "gray-300": "#E0E0E0";
265
+ "gray-800": "#616161";
266
+ "gray-200": "#EEEEEE";
267
+ "gray-600": "#9E9E9E";
268
+ "gray-900": "#424242";
269
+ "white-100": string;
270
+ "white-300": string;
271
+ "white-400": string;
272
+ "white-500": string;
273
+ "white-200": string;
274
+ "white-600": string;
275
+ "white-700": string;
276
+ };
@@ -7,18 +7,6 @@ import { rgba } from 'polished';
7
7
  const black = '#000000';
8
8
  const white = '#ffffff';
9
9
  const navy = '#10162F';
10
- const effects = {
11
- shadow: {
12
- black: {
13
- slight: rgba(black, 0.15),
14
- heavy: rgba(black, 0.75)
15
- },
16
- white: {
17
- slight: rgba(white, 0.15),
18
- heavy: rgba(white, 0.95)
19
- }
20
- }
21
- };
22
10
  export const coreSwatches = {
23
11
  beige: {
24
12
  '100': '#FFF0E5'
@@ -35,7 +23,7 @@ export const coreSwatches = {
35
23
  '100': rgba(navy, 0.04),
36
24
  '200': rgba(navy, 0.12),
37
25
  '300': rgba(navy, 0.28),
38
- '400': rgba(navy, 0.45),
26
+ '400': rgba(navy, 0.47),
39
27
  '500': rgba(navy, 0.63),
40
28
  '600': rgba(navy, 0.75),
41
29
  '700': rgba(navy, 0.86),
@@ -83,7 +71,7 @@ export const coreSwatches = {
83
71
  '100': rgba(white, 0.04),
84
72
  '200': rgba(white, 0.09),
85
73
  '300': rgba(white, 0.2),
86
- '400': rgba(white, 0.33),
74
+ '400': rgba(white, 0.35),
87
75
  '500': rgba(white, 0.5),
88
76
  '600': rgba(white, 0.65),
89
77
  '700': rgba(white, 0.8)
@@ -111,7 +99,6 @@ export const trueColors = {
111
99
  };
112
100
  export const corePalette = {
113
101
  ...flattenScale(coreSwatches),
114
- ...flattenScale(effects),
115
102
  ...trueColors
116
103
  };
117
104
 
@@ -139,7 +126,7 @@ export const platformSwatches = {
139
126
  '300': '#B3CCFF'
140
127
  }
141
128
  };
142
- const truePlatformColors = {
129
+ export const truePlatformColors = {
143
130
  lightBeige: platformSwatches.beige[0],
144
131
  gold: platformSwatches.gold[800],
145
132
  teal: platformSwatches.teal[500],
@@ -148,4 +135,19 @@ const truePlatformColors = {
148
135
  export const platformPalette = {
149
136
  ...flattenScale(platformSwatches),
150
137
  ...truePlatformColors
138
+ };
139
+
140
+ /**
141
+ * LX Studio Colors
142
+ */
143
+
144
+ export const lxStudioColors = {
145
+ lxStudioSuccess: '#06844F',
146
+ lxStudioBgPrimary: '#FAFBFC',
147
+ lxStudioPurple: '#5628FE',
148
+ lxStudioPurpleHover: '#7955FC'
149
+ };
150
+ export const lxStudioPalette = {
151
+ ...corePalette,
152
+ ...lxStudioColors
151
153
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-styles",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "17.6.0-alpha.4fa030.0",
4
+ "version": "17.6.1-alpha.63a3d2.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/variance": "0.22.1",
@@ -25,6 +25,7 @@
25
25
  "@emotion/styled": "^11.3.0",
26
26
  "lodash": "^4.17.5",
27
27
  "react": "^17.0.2 || ^18.2.0",
28
+ "sass-embedded": "^1.83.4",
28
29
  "stylis": "^4.0.7"
29
30
  },
30
31
  "publishConfig": {
@@ -34,5 +35,5 @@
34
35
  "scripts": {
35
36
  "build": "nx build @codecademy/gamut-styles"
36
37
  },
37
- "gitHead": "846f035d72af2c3e1299f65cd8e7987e3a2354ab"
38
+ "gitHead": "b6c5147bd65a47d50b1b6b39a1237e14b41f5402"
38
39
  }