@codecademy/gamut-styles 17.6.5-alpha.fed1a2.0 → 17.7.0-alpha.1dc930.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/themes/admin.d.ts +40 -73
- package/dist/themes/core.d.ts +22 -36
- package/dist/themes/core.js +10 -13
- package/dist/themes/lxStudio.d.ts +42 -79
- package/dist/themes/platform.d.ts +81 -115
- package/dist/themes/platform.js +15 -18
- package/dist/variables/colors.d.ts +10 -22
- package/dist/variables/colors.js +7 -11
- package/dist/variables/responsive.d.ts +8 -0
- package/dist/variables/responsive.js +8 -0
- package/package.json +3 -3
|
@@ -26,25 +26,21 @@ export declare const coreSwatches: {
|
|
|
26
26
|
readonly '100': "#EAFDC6";
|
|
27
27
|
readonly '400': "#AEE938";
|
|
28
28
|
readonly '700': "#008A27";
|
|
29
|
-
readonly '900': "#151C07";
|
|
30
29
|
};
|
|
31
30
|
readonly yellow: {
|
|
32
31
|
readonly '0': "#FFFAE5";
|
|
33
32
|
readonly '400': "#CCA900";
|
|
34
33
|
readonly '500': "#FFD300";
|
|
35
|
-
readonly '900': "#211B00";
|
|
36
34
|
};
|
|
37
35
|
readonly pink: {
|
|
38
36
|
readonly '0': "#FFF5FF";
|
|
39
37
|
readonly '400': "#F966FF";
|
|
40
38
|
};
|
|
41
39
|
readonly red: {
|
|
42
|
-
readonly '0': "#
|
|
43
|
-
readonly '
|
|
44
|
-
readonly '400': "#DC5879";
|
|
40
|
+
readonly '0': "#E85D7F";
|
|
41
|
+
readonly '100': "#DC5879";
|
|
45
42
|
readonly '500': "#E91C11";
|
|
46
43
|
readonly '600': "#BE1809";
|
|
47
|
-
readonly '900': "#280503";
|
|
48
44
|
};
|
|
49
45
|
readonly orange: {
|
|
50
46
|
readonly '100': "#FFE8CC";
|
|
@@ -131,19 +127,15 @@ export declare const corePalette: {
|
|
|
131
127
|
readonly "green-100": "#EAFDC6";
|
|
132
128
|
readonly "green-400": "#AEE938";
|
|
133
129
|
readonly "green-700": "#008A27";
|
|
134
|
-
readonly "green-900": "#151C07";
|
|
135
130
|
readonly "yellow-0": "#FFFAE5";
|
|
136
131
|
readonly "yellow-400": "#CCA900";
|
|
137
132
|
readonly "yellow-500": "#FFD300";
|
|
138
|
-
readonly "yellow-900": "#211B00";
|
|
139
133
|
readonly "pink-0": "#FFF5FF";
|
|
140
134
|
readonly "pink-400": "#F966FF";
|
|
141
|
-
readonly "red-0": "#
|
|
142
|
-
readonly "red-
|
|
143
|
-
readonly "red-400": "#DC5879";
|
|
135
|
+
readonly "red-0": "#E85D7F";
|
|
136
|
+
readonly "red-100": "#DC5879";
|
|
144
137
|
readonly "red-500": "#E91C11";
|
|
145
138
|
readonly "red-600": "#BE1809";
|
|
146
|
-
readonly "red-900": "#280503";
|
|
147
139
|
readonly "orange-100": "#FFE8CC";
|
|
148
140
|
readonly "orange-500": "#FF8C00";
|
|
149
141
|
readonly "hyper-400": "#5533FF";
|
|
@@ -179,7 +171,7 @@ export declare const platformSwatches: {
|
|
|
179
171
|
readonly '800': "#CA00D1";
|
|
180
172
|
};
|
|
181
173
|
readonly teal: {
|
|
182
|
-
readonly '500': "#
|
|
174
|
+
readonly '500': "#027E97";
|
|
183
175
|
};
|
|
184
176
|
readonly purple: {
|
|
185
177
|
readonly '300': "#B3CCFF";
|
|
@@ -188,19 +180,19 @@ export declare const platformSwatches: {
|
|
|
188
180
|
export declare const truePlatformColors: {
|
|
189
181
|
readonly lightBeige: "#FFFBF8";
|
|
190
182
|
readonly gold: "#8A7300";
|
|
191
|
-
readonly teal: "#
|
|
183
|
+
readonly teal: "#027E97";
|
|
192
184
|
readonly purple: "#B3CCFF";
|
|
193
185
|
};
|
|
194
186
|
export declare const platformPalette: {
|
|
195
187
|
readonly lightBeige: "#FFFBF8";
|
|
196
188
|
readonly gold: "#8A7300";
|
|
197
|
-
readonly teal: "#
|
|
189
|
+
readonly teal: "#027E97";
|
|
198
190
|
readonly purple: "#B3CCFF";
|
|
199
191
|
readonly "beige-0": "#FFFBF8";
|
|
200
192
|
readonly "pink-800": "#CA00D1";
|
|
201
193
|
readonly "orange-800": "#D14900";
|
|
202
194
|
readonly "gold-800": "#8A7300";
|
|
203
|
-
readonly "teal-500": "#
|
|
195
|
+
readonly "teal-500": "#027E97";
|
|
204
196
|
readonly "purple-300": "#B3CCFF";
|
|
205
197
|
};
|
|
206
198
|
/**
|
|
@@ -255,19 +247,15 @@ export declare const lxStudioPalette: {
|
|
|
255
247
|
"green-100": "#EAFDC6";
|
|
256
248
|
"green-400": "#AEE938";
|
|
257
249
|
"green-700": "#008A27";
|
|
258
|
-
"green-900": "#151C07";
|
|
259
250
|
"yellow-0": "#FFFAE5";
|
|
260
251
|
"yellow-400": "#CCA900";
|
|
261
252
|
"yellow-500": "#FFD300";
|
|
262
|
-
"yellow-900": "#211B00";
|
|
263
253
|
"pink-0": "#FFF5FF";
|
|
264
254
|
"pink-400": "#F966FF";
|
|
265
|
-
"red-0": "#
|
|
266
|
-
"red-
|
|
267
|
-
"red-400": "#DC5879";
|
|
255
|
+
"red-0": "#E85D7F";
|
|
256
|
+
"red-100": "#DC5879";
|
|
268
257
|
"red-500": "#E91C11";
|
|
269
258
|
"red-600": "#BE1809";
|
|
270
|
-
"red-900": "#280503";
|
|
271
259
|
"orange-100": "#FFE8CC";
|
|
272
260
|
"orange-500": "#FF8C00";
|
|
273
261
|
"hyper-400": "#5533FF";
|
package/dist/variables/colors.js
CHANGED
|
@@ -34,26 +34,22 @@ export const coreSwatches = {
|
|
|
34
34
|
'0': '#F5FFE3',
|
|
35
35
|
'100': '#EAFDC6',
|
|
36
36
|
'400': '#AEE938',
|
|
37
|
-
'700': '#008A27'
|
|
38
|
-
'900': '#151C07'
|
|
37
|
+
'700': '#008A27'
|
|
39
38
|
},
|
|
40
39
|
yellow: {
|
|
41
40
|
'0': '#FFFAE5',
|
|
42
41
|
'400': '#CCA900',
|
|
43
|
-
'500': '#FFD300'
|
|
44
|
-
'900': '#211B00'
|
|
42
|
+
'500': '#FFD300'
|
|
45
43
|
},
|
|
46
44
|
pink: {
|
|
47
45
|
'0': '#FFF5FF',
|
|
48
46
|
'400': '#F966FF'
|
|
49
47
|
},
|
|
50
48
|
red: {
|
|
51
|
-
'0': '#
|
|
52
|
-
'
|
|
53
|
-
'400': '#DC5879',
|
|
49
|
+
'0': '#E85D7F',
|
|
50
|
+
'100': '#DC5879',
|
|
54
51
|
'500': '#E91C11',
|
|
55
|
-
'600': '#BE1809'
|
|
56
|
-
'900': '#280503'
|
|
52
|
+
'600': '#BE1809'
|
|
57
53
|
},
|
|
58
54
|
orange: {
|
|
59
55
|
'100': '#FFE8CC',
|
|
@@ -95,7 +91,7 @@ export const trueColors = {
|
|
|
95
91
|
palePink: coreSwatches.pink[0],
|
|
96
92
|
paleYellow: coreSwatches.yellow[0],
|
|
97
93
|
pink: coreSwatches.pink[400],
|
|
98
|
-
paleRed: coreSwatches.red[
|
|
94
|
+
paleRed: coreSwatches.red[100],
|
|
99
95
|
red: coreSwatches.red[500],
|
|
100
96
|
yellow: coreSwatches.yellow[500],
|
|
101
97
|
black,
|
|
@@ -124,7 +120,7 @@ export const platformSwatches = {
|
|
|
124
120
|
'800': '#CA00D1'
|
|
125
121
|
},
|
|
126
122
|
teal: {
|
|
127
|
-
'500': '#
|
|
123
|
+
'500': '#027E97'
|
|
128
124
|
},
|
|
129
125
|
purple: {
|
|
130
126
|
'300': '#B3CCFF'
|
|
@@ -6,6 +6,7 @@ export declare const breakpoints: {
|
|
|
6
6
|
readonly xl: "1440px";
|
|
7
7
|
};
|
|
8
8
|
export type MediaSize = keyof typeof breakpoints;
|
|
9
|
+
export type ContainerSize = keyof typeof containerQueries;
|
|
9
10
|
export declare const mediaQueries: {
|
|
10
11
|
xs: string;
|
|
11
12
|
sm: string;
|
|
@@ -13,6 +14,13 @@ export declare const mediaQueries: {
|
|
|
13
14
|
lg: string;
|
|
14
15
|
xl: string;
|
|
15
16
|
};
|
|
17
|
+
export declare const containerQueries: {
|
|
18
|
+
c_xs: string;
|
|
19
|
+
c_sm: string;
|
|
20
|
+
c_md: string;
|
|
21
|
+
c_lg: string;
|
|
22
|
+
c_xl: string;
|
|
23
|
+
};
|
|
16
24
|
export declare const contentWidths: {
|
|
17
25
|
md: "1200px";
|
|
18
26
|
max: "1440px";
|
|
@@ -6,6 +6,7 @@ export const breakpoints = {
|
|
|
6
6
|
xl: '1440px'
|
|
7
7
|
};
|
|
8
8
|
const createMediaQuery = (size, direction) => `@media only screen and (${direction}-width: ${breakpoints[size]})`;
|
|
9
|
+
const createContainerQuery = (size, direction) => `@container (${direction}-width: ${breakpoints[size]})`;
|
|
9
10
|
export const mediaQueries = {
|
|
10
11
|
xs: createMediaQuery('xs', 'min'),
|
|
11
12
|
sm: createMediaQuery('sm', 'min'),
|
|
@@ -13,6 +14,13 @@ export const mediaQueries = {
|
|
|
13
14
|
lg: createMediaQuery('lg', 'min'),
|
|
14
15
|
xl: createMediaQuery('xl', 'min')
|
|
15
16
|
};
|
|
17
|
+
export const containerQueries = {
|
|
18
|
+
c_xs: createContainerQuery('xs', 'min'),
|
|
19
|
+
c_sm: createContainerQuery('sm', 'min'),
|
|
20
|
+
c_md: createContainerQuery('md', 'min'),
|
|
21
|
+
c_lg: createContainerQuery('lg', 'min'),
|
|
22
|
+
c_xl: createContainerQuery('xl', 'min')
|
|
23
|
+
};
|
|
16
24
|
export const contentWidths = {
|
|
17
25
|
md: breakpoints.lg,
|
|
18
26
|
max: breakpoints.xl
|
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.
|
|
4
|
+
"version": "17.7.0-alpha.1dc930.0",
|
|
5
5
|
"author": "Jake Hiller <jake@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/variance": "0.
|
|
7
|
+
"@codecademy/variance": "0.23.0-alpha.1dc930.0",
|
|
8
8
|
"@emotion/is-prop-valid": "^1.1.0",
|
|
9
9
|
"polished": "^4.1.2"
|
|
10
10
|
},
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "nx build @codecademy/gamut-styles"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "a03042de4ba6e2bbfa9924659494a4ad0134afa7"
|
|
38
38
|
}
|