@codecademy/gamut-styles 17.5.1 → 17.5.2-alpha.76f80e.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,127 @@
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
+ light: {
30
+ text: {
31
+ _: 'navy-800',
32
+ accent: 'navy-900',
33
+ disabled: 'navy-500',
34
+ secondary: 'navy-600'
35
+ },
36
+ feedback: {
37
+ error: 'red-600',
38
+ success: 'lxStudioSuccess',
39
+ warning: 'yellow'
40
+ },
41
+ background: {
42
+ _: 'white',
43
+ contrast: 'white',
44
+ current: 'white',
45
+ primary: 'lxStudioBgPrimary',
46
+ selected: 'navy-100',
47
+ disabled: 'navy-200',
48
+ hover: 'navy-200'
49
+ },
50
+ shadow: {
51
+ primary: 'navy-200',
52
+ secondary: 'navy-600'
53
+ },
54
+ primary: {
55
+ _: 'lxStudioPurple',
56
+ hover: 'lxStudioPurpleHover',
57
+ inverse: 'yellow-500'
58
+ },
59
+ secondary: {
60
+ _: 'navy-800',
61
+ hover: 'navy-700'
62
+ },
63
+ danger: {
64
+ _: 'red-500',
65
+ hover: 'red-600'
66
+ },
67
+ interface: {
68
+ _: 'hyper-500',
69
+ hover: 'hyper-400'
70
+ },
71
+ border: {
72
+ primary: 'navy-400',
73
+ secondary: 'navy-600',
74
+ tertiary: 'navy-800',
75
+ disabled: 'navy-300'
76
+ }
77
+ },
78
+ dark: {
79
+ text: {
80
+ _: 'white',
81
+ accent: 'beige',
82
+ disabled: 'white-500',
83
+ secondary: 'white-600'
84
+ },
85
+ feedback: {
86
+ error: 'red-0',
87
+ success: 'green-400',
88
+ warning: 'yellow-0'
89
+ },
90
+ background: {
91
+ _: 'navy-800',
92
+ contrast: 'black',
93
+ current: 'navy-800',
94
+ primary: 'navy-900',
95
+ selected: 'white-100',
96
+ disabled: 'white-200',
97
+ hover: 'white-200'
98
+ },
99
+ shadow: {
100
+ primary: 'white',
101
+ secondary: 'white-600'
102
+ },
103
+ primary: {
104
+ _: 'yellow-500',
105
+ hover: 'yellow-400',
106
+ inverse: 'hyper-500'
107
+ },
108
+ secondary: {
109
+ _: 'white',
110
+ hover: 'white-700'
111
+ },
112
+ danger: {
113
+ _: 'red-0',
114
+ hover: 'red-100'
115
+ },
116
+ interface: {
117
+ _: 'yellow-500',
118
+ hover: 'yellow-400'
119
+ },
120
+ border: {
121
+ primary: 'white',
122
+ secondary: 'white-600',
123
+ tertiary: 'white-300',
124
+ disabled: 'white-500'
125
+ }
126
+ }
127
+ }).build();
@@ -177,6 +177,12 @@ export declare const platformSwatches: {
177
177
  readonly '300': "#B3CCFF";
178
178
  };
179
179
  };
180
+ export declare const truePlatformColors: {
181
+ readonly lightBeige: "#FFFBF8";
182
+ readonly gold: "#8A7300";
183
+ readonly teal: "#027E97";
184
+ readonly purple: "#B3CCFF";
185
+ };
180
186
  export declare const platformPalette: {
181
187
  readonly lightBeige: "#FFFBF8";
182
188
  readonly gold: "#8A7300";
@@ -189,3 +195,82 @@ export declare const platformPalette: {
189
195
  readonly "teal-500": "#027E97";
190
196
  readonly "purple-300": "#B3CCFF";
191
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
+ };
@@ -23,7 +23,7 @@ export const coreSwatches = {
23
23
  '100': rgba(navy, 0.04),
24
24
  '200': rgba(navy, 0.12),
25
25
  '300': rgba(navy, 0.28),
26
- '400': rgba(navy, 0.45),
26
+ '400': rgba(navy, 0.47),
27
27
  '500': rgba(navy, 0.63),
28
28
  '600': rgba(navy, 0.75),
29
29
  '700': rgba(navy, 0.86),
@@ -71,7 +71,7 @@ export const coreSwatches = {
71
71
  '100': rgba(white, 0.04),
72
72
  '200': rgba(white, 0.09),
73
73
  '300': rgba(white, 0.2),
74
- '400': rgba(white, 0.33),
74
+ '400': rgba(white, 0.35),
75
75
  '500': rgba(white, 0.5),
76
76
  '600': rgba(white, 0.65),
77
77
  '700': rgba(white, 0.8)
@@ -126,7 +126,7 @@ export const platformSwatches = {
126
126
  '300': '#B3CCFF'
127
127
  }
128
128
  };
129
- const truePlatformColors = {
129
+ export const truePlatformColors = {
130
130
  lightBeige: platformSwatches.beige[0],
131
131
  gold: platformSwatches.gold[800],
132
132
  teal: platformSwatches.teal[500],
@@ -135,4 +135,19 @@ const truePlatformColors = {
135
135
  export const platformPalette = {
136
136
  ...flattenScale(platformSwatches),
137
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
138
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.5.1",
4
+ "version": "17.5.2-alpha.76f80e.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/variance": "0.22.1",
@@ -34,5 +34,5 @@
34
34
  "scripts": {
35
35
  "build": "nx build @codecademy/gamut-styles"
36
36
  },
37
- "gitHead": "d6cc3657e862a5035076570bf9f29a3a0b936290"
37
+ "gitHead": "9e89504a1de6e7d245f10d4a6ca1aea0d9717c88"
38
38
  }