@codecademy/gamut-styles 16.1.2 → 16.1.3-alpha.187436.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/package.json +3 -7
- package/dist/AssetProvider.d.ts +0 -3
- package/dist/AssetProvider.js +0 -23
- package/dist/Background.d.ts +0 -6
- package/dist/Background.js +0 -86
- package/dist/ColorMode.d.ts +0 -1278
- package/dist/ColorMode.js +0 -145
- package/dist/GamutProvider.d.ts +0 -16
- package/dist/GamutProvider.js +0 -64
- package/dist/cache/createEmotionCache.d.ts +0 -4
- package/dist/cache/createEmotionCache.js +0 -40
- package/dist/cache/index.d.ts +0 -1
- package/dist/cache/index.js +0 -1
- package/dist/cache/stylisPlugins/focusVisible.d.ts +0 -2
- package/dist/cache/stylisPlugins/focusVisible.js +0 -9
- package/dist/cache/stylisPlugins/index.d.ts +0 -1
- package/dist/cache/stylisPlugins/index.js +0 -1
- package/dist/globals/Reboot.d.ts +0 -2
- package/dist/globals/Reboot.js +0 -9
- package/dist/globals/Typography.d.ts +0 -2
- package/dist/globals/Typography.js +0 -25
- package/dist/globals/Variables.d.ts +0 -5
- package/dist/globals/Variables.js +0 -31
- package/dist/globals/index.d.ts +0 -2
- package/dist/globals/index.js +0 -2
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -13
- package/dist/remoteAssets/fonts.d.ts +0 -26
- package/dist/remoteAssets/fonts.js +0 -31
- package/dist/styles/boxShadow.d.ts +0 -26
- package/dist/styles/boxShadow.js +0 -45
- package/dist/styles/fontSmoothing.d.ts +0 -29
- package/dist/styles/fontSmoothing.js +0 -29
- package/dist/styles/index.d.ts +0 -7
- package/dist/styles/index.js +0 -7
- package/dist/styles/noSelect.d.ts +0 -1
- package/dist/styles/noSelect.js +0 -11
- package/dist/styles/pxRem.d.ts +0 -1
- package/dist/styles/pxRem.js +0 -4
- package/dist/styles/responsive.d.ts +0 -6
- package/dist/styles/responsive.js +0 -14
- package/dist/styles/screenReaderOnly.d.ts +0 -2
- package/dist/styles/screenReaderOnly.js +0 -20
- package/dist/styles/transitionConcat.d.ts +0 -3
- package/dist/styles/transitionConcat.js +0 -7
- package/dist/themes/admin.d.ts +0 -874
- package/dist/themes/admin.js +0 -15
- package/dist/themes/core.d.ts +0 -472
- package/dist/themes/core.js +0 -111
- package/dist/themes/index.d.ts +0 -3
- package/dist/themes/index.js +0 -3
- package/dist/themes/platform.d.ts +0 -1019
- package/dist/themes/platform.js +0 -73
- package/dist/typings/theme.d.ts +0 -6
- package/dist/utilities/index.d.ts +0 -1
- package/dist/utilities/index.js +0 -1
- package/dist/utilities/themed.d.ts +0 -14
- package/dist/utilities/themed.js +0 -17
- package/dist/variables/colors.d.ts +0 -193
- package/dist/variables/colors.js +0 -149
- package/dist/variables/deprecated-colors.d.ts +0 -156
- package/dist/variables/deprecated-colors.js +0 -155
- package/dist/variables/elements.d.ts +0 -11
- package/dist/variables/elements.js +0 -11
- package/dist/variables/index.d.ts +0 -7
- package/dist/variables/index.js +0 -8
- package/dist/variables/responsive.d.ts +0 -19
- package/dist/variables/responsive.js +0 -21
- package/dist/variables/spacing.d.ts +0 -13
- package/dist/variables/spacing.js +0 -14
- package/dist/variables/timing.d.ts +0 -10
- package/dist/variables/timing.js +0 -10
- package/dist/variables/typography.d.ts +0 -32
- package/dist/variables/typography.js +0 -33
- package/dist/variance/config.d.ts +0 -1002
- package/dist/variance/config.js +0 -471
- package/dist/variance/index.d.ts +0 -3
- package/dist/variance/index.js +0 -4
- package/dist/variance/props.d.ts +0 -1865
- package/dist/variance/props.js +0 -23
- package/dist/variance/utils.d.ts +0 -29
- package/dist/variance/utils.js +0 -43
package/dist/themes/platform.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { createTheme } from '@codecademy/variance';
|
|
2
|
-
import { platformPalette } from '../variables';
|
|
3
|
-
import { coreTheme } from './core';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description This is an extended theme for the learning environment with an expanded set of tokens
|
|
7
|
-
* That are not needed for the rest of the application.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export var platformTheme = createTheme(coreTheme).addColors(platformPalette).addColorModes('dark', {
|
|
11
|
-
light: {
|
|
12
|
-
editor: {
|
|
13
|
-
attribute: 'green-700',
|
|
14
|
-
annotation: 'red-500',
|
|
15
|
-
atom: 'pink-800',
|
|
16
|
-
basic: 'navy-800',
|
|
17
|
-
comment: 'navy-300',
|
|
18
|
-
constant: 'orange-800',
|
|
19
|
-
decoration: 'red-500',
|
|
20
|
-
invalid: 'red-500',
|
|
21
|
-
key: 'teal-500',
|
|
22
|
-
keyword: 'blue-500',
|
|
23
|
-
number: 'red-500',
|
|
24
|
-
operator: 'red-500',
|
|
25
|
-
predefined: 'navy-800',
|
|
26
|
-
property: 'red-500',
|
|
27
|
-
regexp: 'green-700',
|
|
28
|
-
string: 'gold-800',
|
|
29
|
-
tag: 'red-500',
|
|
30
|
-
text: 'orange-800',
|
|
31
|
-
value: 'gold-800',
|
|
32
|
-
variable: 'green-700',
|
|
33
|
-
ui: {
|
|
34
|
-
background: 'white',
|
|
35
|
-
text: 'navy-800',
|
|
36
|
-
'indent-active': 'navy-900',
|
|
37
|
-
'indent-inactive': 'navy-600',
|
|
38
|
-
'line-number': 'navy-300'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
dark: {
|
|
43
|
-
editor: {
|
|
44
|
-
attribute: 'green-400',
|
|
45
|
-
annotation: 'red-0',
|
|
46
|
-
atom: 'pink-400',
|
|
47
|
-
basic: 'white',
|
|
48
|
-
comment: 'gray-600',
|
|
49
|
-
constant: 'orange-500',
|
|
50
|
-
decoration: 'red-0',
|
|
51
|
-
invalid: 'red-0',
|
|
52
|
-
key: 'blue-300',
|
|
53
|
-
keyword: 'purple-300',
|
|
54
|
-
number: 'red-0',
|
|
55
|
-
operator: 'red-0',
|
|
56
|
-
predefined: 'white',
|
|
57
|
-
property: 'red-0',
|
|
58
|
-
regexp: 'green-400',
|
|
59
|
-
string: 'yellow-500',
|
|
60
|
-
tag: 'red-0',
|
|
61
|
-
text: 'orange-500',
|
|
62
|
-
value: 'yellow-500',
|
|
63
|
-
variable: 'green-400',
|
|
64
|
-
ui: {
|
|
65
|
-
background: 'navy-900',
|
|
66
|
-
text: 'white',
|
|
67
|
-
'indent-active': 'gray-900',
|
|
68
|
-
'indent-inactive': 'gray-800',
|
|
69
|
-
'line-number': 'gray-600'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}).build();
|
package/dist/typings/theme.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './themed';
|
package/dist/utilities/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './themed';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Path, PathValue } from '@codecademy/variance';
|
|
2
|
-
import { Theme } from '@emotion/react';
|
|
3
|
-
/**
|
|
4
|
-
* Creates a function that will look up the a design token from the `theme` context of a
|
|
5
|
-
* tyled component or a component that accepts theme as a prop.
|
|
6
|
-
*
|
|
7
|
-
* @param path Valid path for current theme
|
|
8
|
-
* @returns A function that accepts an object with a keyof `theme` and looks up the
|
|
9
|
-
* value at supplied path parameter
|
|
10
|
-
*/
|
|
11
|
-
export declare type SafeThemeValues = Omit<Theme, '_variables' | '_tokens' | '_getColorValue' | 'modes'>;
|
|
12
|
-
export declare function themed<P extends Path<SafeThemeValues>>(path: P): (props: {
|
|
13
|
-
theme: Theme;
|
|
14
|
-
}) => PathValue<SafeThemeValues, P>;
|
package/dist/utilities/themed.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { get } from 'lodash';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a function that will look up the a design token from the `theme` context of a
|
|
5
|
-
* tyled component or a component that accepts theme as a prop.
|
|
6
|
-
*
|
|
7
|
-
* @param path Valid path for current theme
|
|
8
|
-
* @returns A function that accepts an object with a keyof `theme` and looks up the
|
|
9
|
-
* value at supplied path parameter
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export function themed(path) {
|
|
13
|
-
return function (_ref) {
|
|
14
|
-
var theme = _ref.theme;
|
|
15
|
-
return get(theme, path);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
export declare const coreSwatches: {
|
|
2
|
-
readonly beige: {
|
|
3
|
-
readonly '100': "#FFF0E5";
|
|
4
|
-
};
|
|
5
|
-
readonly blue: {
|
|
6
|
-
readonly '0': "#F5FCFF";
|
|
7
|
-
readonly '100': "#D3F2FF";
|
|
8
|
-
readonly '300': "#66C4FF";
|
|
9
|
-
readonly '400': "#3388FF";
|
|
10
|
-
readonly '500': "#1557FF";
|
|
11
|
-
readonly '800': "#1D2340";
|
|
12
|
-
};
|
|
13
|
-
readonly navy: {
|
|
14
|
-
readonly '100': string;
|
|
15
|
-
readonly '200': string;
|
|
16
|
-
readonly '300': string;
|
|
17
|
-
readonly '400': string;
|
|
18
|
-
readonly '500': string;
|
|
19
|
-
readonly '600': string;
|
|
20
|
-
readonly '700': string;
|
|
21
|
-
readonly '800': "#10162F";
|
|
22
|
-
readonly '900': "#0A0D1C";
|
|
23
|
-
};
|
|
24
|
-
readonly green: {
|
|
25
|
-
readonly '0': "#F5FFE3";
|
|
26
|
-
readonly '100': "#EAFDC6";
|
|
27
|
-
readonly '400': "#AEE938";
|
|
28
|
-
readonly '700': "#008A27";
|
|
29
|
-
};
|
|
30
|
-
readonly yellow: {
|
|
31
|
-
readonly '0': "#FFFAE5";
|
|
32
|
-
readonly '400': "#CCA900";
|
|
33
|
-
readonly '500': "#FFD300";
|
|
34
|
-
};
|
|
35
|
-
readonly pink: {
|
|
36
|
-
readonly '0': "#FFF5FF";
|
|
37
|
-
readonly '400': "#F966FF";
|
|
38
|
-
};
|
|
39
|
-
readonly red: {
|
|
40
|
-
readonly '0': "#E85D7F";
|
|
41
|
-
readonly '100': "#DC5879";
|
|
42
|
-
readonly '500': "#E91C11";
|
|
43
|
-
readonly '600': "#BE1809";
|
|
44
|
-
};
|
|
45
|
-
readonly orange: {
|
|
46
|
-
readonly '500': "#FF8C00";
|
|
47
|
-
};
|
|
48
|
-
readonly hyper: {
|
|
49
|
-
readonly '400': "#5533FF";
|
|
50
|
-
readonly '500': "#3A10E5";
|
|
51
|
-
};
|
|
52
|
-
readonly gray: {
|
|
53
|
-
readonly '100': "#F5F5F5";
|
|
54
|
-
readonly '200': "#EEEEEE";
|
|
55
|
-
readonly '300': "#E0E0E0";
|
|
56
|
-
readonly '600': "#9E9E9E";
|
|
57
|
-
readonly '800': "#616161";
|
|
58
|
-
readonly '900': "#424242";
|
|
59
|
-
};
|
|
60
|
-
readonly white: {
|
|
61
|
-
readonly '100': string;
|
|
62
|
-
readonly '200': string;
|
|
63
|
-
readonly '300': string;
|
|
64
|
-
readonly '400': string;
|
|
65
|
-
readonly '500': string;
|
|
66
|
-
readonly '600': string;
|
|
67
|
-
readonly '700': string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export declare const trueColors: {
|
|
71
|
-
readonly beige: "#FFF0E5";
|
|
72
|
-
readonly blue: "#1557FF";
|
|
73
|
-
readonly green: "#008A27";
|
|
74
|
-
readonly hyper: "#3A10E5";
|
|
75
|
-
readonly lightBlue: "#66C4FF";
|
|
76
|
-
readonly lightGreen: "#AEE938";
|
|
77
|
-
readonly navy: "#10162F";
|
|
78
|
-
readonly orange: "#FF8C00";
|
|
79
|
-
readonly paleBlue: "#F5FCFF";
|
|
80
|
-
readonly paleGreen: "#F5FFE3";
|
|
81
|
-
readonly palePink: "#FFF5FF";
|
|
82
|
-
readonly paleYellow: "#FFFAE5";
|
|
83
|
-
readonly pink: "#F966FF";
|
|
84
|
-
readonly paleRed: "#DC5879";
|
|
85
|
-
readonly red: "#E91C11";
|
|
86
|
-
readonly yellow: "#FFD300";
|
|
87
|
-
readonly black: "#000000";
|
|
88
|
-
readonly white: "#ffffff";
|
|
89
|
-
};
|
|
90
|
-
export declare const corePalette: {
|
|
91
|
-
readonly beige: "#FFF0E5";
|
|
92
|
-
readonly blue: "#1557FF";
|
|
93
|
-
readonly green: "#008A27";
|
|
94
|
-
readonly hyper: "#3A10E5";
|
|
95
|
-
readonly lightBlue: "#66C4FF";
|
|
96
|
-
readonly lightGreen: "#AEE938";
|
|
97
|
-
readonly navy: "#10162F";
|
|
98
|
-
readonly orange: "#FF8C00";
|
|
99
|
-
readonly paleBlue: "#F5FCFF";
|
|
100
|
-
readonly paleGreen: "#F5FFE3";
|
|
101
|
-
readonly palePink: "#FFF5FF";
|
|
102
|
-
readonly paleYellow: "#FFFAE5";
|
|
103
|
-
readonly pink: "#F966FF";
|
|
104
|
-
readonly paleRed: "#DC5879";
|
|
105
|
-
readonly red: "#E91C11";
|
|
106
|
-
readonly yellow: "#FFD300";
|
|
107
|
-
readonly black: "#000000";
|
|
108
|
-
readonly white: "#ffffff";
|
|
109
|
-
readonly "shadow-white-slight": string;
|
|
110
|
-
readonly "shadow-white-heavy": string;
|
|
111
|
-
readonly "shadow-black-slight": string;
|
|
112
|
-
readonly "shadow-black-heavy": string;
|
|
113
|
-
readonly "beige-100": "#FFF0E5";
|
|
114
|
-
readonly "blue-100": "#D3F2FF";
|
|
115
|
-
readonly "blue-0": "#F5FCFF";
|
|
116
|
-
readonly "blue-300": "#66C4FF";
|
|
117
|
-
readonly "blue-400": "#3388FF";
|
|
118
|
-
readonly "blue-500": "#1557FF";
|
|
119
|
-
readonly "blue-800": "#1D2340";
|
|
120
|
-
readonly "navy-100": string;
|
|
121
|
-
readonly "navy-300": string;
|
|
122
|
-
readonly "navy-400": string;
|
|
123
|
-
readonly "navy-500": string;
|
|
124
|
-
readonly "navy-800": "#10162F";
|
|
125
|
-
readonly "navy-200": string;
|
|
126
|
-
readonly "navy-600": string;
|
|
127
|
-
readonly "navy-700": string;
|
|
128
|
-
readonly "navy-900": "#0A0D1C";
|
|
129
|
-
readonly "green-100": "#EAFDC6";
|
|
130
|
-
readonly "green-0": "#F5FFE3";
|
|
131
|
-
readonly "green-400": "#AEE938";
|
|
132
|
-
readonly "green-700": "#008A27";
|
|
133
|
-
readonly "yellow-0": "#FFFAE5";
|
|
134
|
-
readonly "yellow-400": "#CCA900";
|
|
135
|
-
readonly "yellow-500": "#FFD300";
|
|
136
|
-
readonly "pink-0": "#FFF5FF";
|
|
137
|
-
readonly "pink-400": "#F966FF";
|
|
138
|
-
readonly "red-100": "#DC5879";
|
|
139
|
-
readonly "red-0": "#E85D7F";
|
|
140
|
-
readonly "red-500": "#E91C11";
|
|
141
|
-
readonly "red-600": "#BE1809";
|
|
142
|
-
readonly "orange-500": "#FF8C00";
|
|
143
|
-
readonly "hyper-400": "#5533FF";
|
|
144
|
-
readonly "hyper-500": "#3A10E5";
|
|
145
|
-
readonly "gray-100": "#F5F5F5";
|
|
146
|
-
readonly "gray-300": "#E0E0E0";
|
|
147
|
-
readonly "gray-800": "#616161";
|
|
148
|
-
readonly "gray-200": "#EEEEEE";
|
|
149
|
-
readonly "gray-600": "#9E9E9E";
|
|
150
|
-
readonly "gray-900": "#424242";
|
|
151
|
-
readonly "white-100": string;
|
|
152
|
-
readonly "white-300": string;
|
|
153
|
-
readonly "white-400": string;
|
|
154
|
-
readonly "white-500": string;
|
|
155
|
-
readonly "white-200": string;
|
|
156
|
-
readonly "white-600": string;
|
|
157
|
-
readonly "white-700": string;
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Platform Colors
|
|
161
|
-
*/
|
|
162
|
-
export declare const platformSwatches: {
|
|
163
|
-
readonly beige: {
|
|
164
|
-
readonly '0': "#FFFBF8";
|
|
165
|
-
};
|
|
166
|
-
readonly gold: {
|
|
167
|
-
readonly '800': "#8A7300";
|
|
168
|
-
};
|
|
169
|
-
readonly orange: {
|
|
170
|
-
readonly '800': "#D14900";
|
|
171
|
-
};
|
|
172
|
-
readonly pink: {
|
|
173
|
-
readonly '800': "#CA00D1";
|
|
174
|
-
};
|
|
175
|
-
readonly teal: {
|
|
176
|
-
readonly '500': "#027E97";
|
|
177
|
-
};
|
|
178
|
-
readonly purple: {
|
|
179
|
-
readonly '300': "#B3CCFF";
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
export declare const platformPalette: {
|
|
183
|
-
readonly lightBeige: "#FFFBF8";
|
|
184
|
-
readonly gold: "#8A7300";
|
|
185
|
-
readonly teal: "#027E97";
|
|
186
|
-
readonly purple: "#B3CCFF";
|
|
187
|
-
readonly "beige-0": "#FFFBF8";
|
|
188
|
-
readonly "pink-800": "#CA00D1";
|
|
189
|
-
readonly "orange-800": "#D14900";
|
|
190
|
-
readonly "gold-800": "#8A7300";
|
|
191
|
-
readonly "teal-500": "#027E97";
|
|
192
|
-
readonly "purple-300": "#B3CCFF";
|
|
193
|
-
};
|
package/dist/variables/colors.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { flattenScale } from '@codecademy/variance';
|
|
8
|
-
import { rgba } from 'polished';
|
|
9
|
-
/**
|
|
10
|
-
* Core Colors
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
var black = '#000000';
|
|
14
|
-
var white = '#ffffff';
|
|
15
|
-
var navy = '#10162F';
|
|
16
|
-
var effects = {
|
|
17
|
-
shadow: {
|
|
18
|
-
black: {
|
|
19
|
-
slight: rgba(black, 0.15),
|
|
20
|
-
heavy: rgba(black, 0.75)
|
|
21
|
-
},
|
|
22
|
-
white: {
|
|
23
|
-
slight: rgba(white, 0.15),
|
|
24
|
-
heavy: rgba(white, 0.95)
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export var coreSwatches = {
|
|
29
|
-
beige: {
|
|
30
|
-
'100': '#FFF0E5'
|
|
31
|
-
},
|
|
32
|
-
blue: {
|
|
33
|
-
'0': '#F5FCFF',
|
|
34
|
-
'100': '#D3F2FF',
|
|
35
|
-
'300': '#66C4FF',
|
|
36
|
-
'400': '#3388FF',
|
|
37
|
-
'500': '#1557FF',
|
|
38
|
-
'800': '#1D2340'
|
|
39
|
-
},
|
|
40
|
-
navy: {
|
|
41
|
-
'100': rgba(navy, 0.04),
|
|
42
|
-
'200': rgba(navy, 0.12),
|
|
43
|
-
'300': rgba(navy, 0.28),
|
|
44
|
-
'400': rgba(navy, 0.45),
|
|
45
|
-
'500': rgba(navy, 0.63),
|
|
46
|
-
'600': rgba(navy, 0.75),
|
|
47
|
-
'700': rgba(navy, 0.86),
|
|
48
|
-
'800': navy,
|
|
49
|
-
'900': '#0A0D1C'
|
|
50
|
-
},
|
|
51
|
-
green: {
|
|
52
|
-
'0': '#F5FFE3',
|
|
53
|
-
'100': '#EAFDC6',
|
|
54
|
-
'400': '#AEE938',
|
|
55
|
-
'700': '#008A27'
|
|
56
|
-
},
|
|
57
|
-
yellow: {
|
|
58
|
-
'0': '#FFFAE5',
|
|
59
|
-
'400': '#CCA900',
|
|
60
|
-
'500': '#FFD300'
|
|
61
|
-
},
|
|
62
|
-
pink: {
|
|
63
|
-
'0': '#FFF5FF',
|
|
64
|
-
'400': '#F966FF'
|
|
65
|
-
},
|
|
66
|
-
red: {
|
|
67
|
-
'0': '#E85D7F',
|
|
68
|
-
'100': '#DC5879',
|
|
69
|
-
'500': '#E91C11',
|
|
70
|
-
'600': '#BE1809'
|
|
71
|
-
},
|
|
72
|
-
orange: {
|
|
73
|
-
'500': '#FF8C00'
|
|
74
|
-
},
|
|
75
|
-
hyper: {
|
|
76
|
-
'400': '#5533FF',
|
|
77
|
-
'500': '#3A10E5'
|
|
78
|
-
},
|
|
79
|
-
gray: {
|
|
80
|
-
'100': '#F5F5F5',
|
|
81
|
-
'200': '#EEEEEE',
|
|
82
|
-
'300': '#E0E0E0',
|
|
83
|
-
'600': '#9E9E9E',
|
|
84
|
-
'800': '#616161',
|
|
85
|
-
'900': '#424242'
|
|
86
|
-
},
|
|
87
|
-
white: {
|
|
88
|
-
'100': rgba(white, 0.04),
|
|
89
|
-
'200': rgba(white, 0.09),
|
|
90
|
-
'300': rgba(white, 0.2),
|
|
91
|
-
'400': rgba(white, 0.33),
|
|
92
|
-
'500': rgba(white, 0.5),
|
|
93
|
-
'600': rgba(white, 0.65),
|
|
94
|
-
'700': rgba(white, 0.8)
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
export var trueColors = {
|
|
98
|
-
beige: coreSwatches.beige[100],
|
|
99
|
-
blue: coreSwatches.blue[500],
|
|
100
|
-
green: coreSwatches.green[700],
|
|
101
|
-
hyper: coreSwatches.hyper[500],
|
|
102
|
-
lightBlue: coreSwatches.blue[300],
|
|
103
|
-
lightGreen: coreSwatches.green[400],
|
|
104
|
-
navy: coreSwatches.navy[800],
|
|
105
|
-
orange: coreSwatches.orange[500],
|
|
106
|
-
paleBlue: coreSwatches.blue[0],
|
|
107
|
-
paleGreen: coreSwatches.green[0],
|
|
108
|
-
palePink: coreSwatches.pink[0],
|
|
109
|
-
paleYellow: coreSwatches.yellow[0],
|
|
110
|
-
pink: coreSwatches.pink[400],
|
|
111
|
-
paleRed: coreSwatches.red[100],
|
|
112
|
-
red: coreSwatches.red[500],
|
|
113
|
-
yellow: coreSwatches.yellow[500],
|
|
114
|
-
black: black,
|
|
115
|
-
white: white
|
|
116
|
-
};
|
|
117
|
-
export var corePalette = _objectSpread(_objectSpread(_objectSpread({}, flattenScale(coreSwatches)), flattenScale(effects)), trueColors);
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Platform Colors
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
export var platformSwatches = {
|
|
124
|
-
beige: {
|
|
125
|
-
'0': '#FFFBF8'
|
|
126
|
-
},
|
|
127
|
-
gold: {
|
|
128
|
-
'800': '#8A7300'
|
|
129
|
-
},
|
|
130
|
-
orange: {
|
|
131
|
-
'800': '#D14900'
|
|
132
|
-
},
|
|
133
|
-
pink: {
|
|
134
|
-
'800': '#CA00D1'
|
|
135
|
-
},
|
|
136
|
-
teal: {
|
|
137
|
-
'500': '#027E97'
|
|
138
|
-
},
|
|
139
|
-
purple: {
|
|
140
|
-
'300': '#B3CCFF'
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
var truePlatformColors = {
|
|
144
|
-
lightBeige: platformSwatches.beige[0],
|
|
145
|
-
gold: platformSwatches.gold[800],
|
|
146
|
-
teal: platformSwatches.teal[500],
|
|
147
|
-
purple: platformSwatches.purple[300]
|
|
148
|
-
};
|
|
149
|
-
export var platformPalette = _objectSpread(_objectSpread({}, flattenScale(platformSwatches)), truePlatformColors);
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated
|
|
3
|
-
* Using these variables directly is no longer supported.
|
|
4
|
-
*
|
|
5
|
-
* Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
|
|
6
|
-
*/
|
|
7
|
-
export declare const interactiveColors: {
|
|
8
|
-
readonly dark: "#3A10E5";
|
|
9
|
-
readonly light: "#FFD300";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* Using these variables directly is no longer supported.
|
|
14
|
-
*
|
|
15
|
-
* Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
|
|
16
|
-
*/
|
|
17
|
-
export declare const editorColors: {
|
|
18
|
-
readonly blue: "#83fff5";
|
|
19
|
-
readonly deepPurple: "#cc7bc2";
|
|
20
|
-
readonly gray: "#939598";
|
|
21
|
-
readonly green: "#b4d353";
|
|
22
|
-
readonly orange: "#ff8973";
|
|
23
|
-
readonly purple: "#b3ccff";
|
|
24
|
-
readonly red: "#ea6c8b";
|
|
25
|
-
readonly yellow: "#ffe083";
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated
|
|
29
|
-
* Using these variables directly is no longer supported.
|
|
30
|
-
*
|
|
31
|
-
* Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
|
|
32
|
-
*/
|
|
33
|
-
export declare const platformColors: {
|
|
34
|
-
readonly mint: {
|
|
35
|
-
readonly '500': "#37c3be";
|
|
36
|
-
readonly '600': "#2c9c98";
|
|
37
|
-
readonly '700': "#217572";
|
|
38
|
-
};
|
|
39
|
-
readonly purple: {
|
|
40
|
-
readonly '200': "#c3c1d7";
|
|
41
|
-
readonly '300': "#a5a1c2";
|
|
42
|
-
readonly '400': "#8782ae";
|
|
43
|
-
readonly '500': "#69639a";
|
|
44
|
-
readonly '600': "#544f7b";
|
|
45
|
-
readonly '700': "#3f3b5c";
|
|
46
|
-
readonly '800': "#2a283e";
|
|
47
|
-
readonly '900': "#15141f";
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated
|
|
52
|
-
* Using these variables directly is no longer supported.
|
|
53
|
-
*
|
|
54
|
-
* Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
|
|
55
|
-
*/
|
|
56
|
-
export declare const swatches: {
|
|
57
|
-
readonly beige: {
|
|
58
|
-
readonly '0': "#FFF0E5";
|
|
59
|
-
};
|
|
60
|
-
readonly blue: {
|
|
61
|
-
readonly '0': "#F5FCFF";
|
|
62
|
-
readonly '300': "#66C4FF";
|
|
63
|
-
readonly '500': "#1557FF";
|
|
64
|
-
readonly '800': "#1D2340";
|
|
65
|
-
readonly '900': "#10162f";
|
|
66
|
-
};
|
|
67
|
-
readonly green: {
|
|
68
|
-
readonly '0': "#F5FFE3";
|
|
69
|
-
readonly '400': "#AEE938";
|
|
70
|
-
readonly '700': "#008A27";
|
|
71
|
-
};
|
|
72
|
-
readonly yellow: {
|
|
73
|
-
readonly '0': "#FFFAE5";
|
|
74
|
-
readonly '400': "#CCA900";
|
|
75
|
-
readonly '500': "#FFD300";
|
|
76
|
-
};
|
|
77
|
-
readonly pink: {
|
|
78
|
-
readonly '0': "#FFF5FF";
|
|
79
|
-
readonly '400': "#F966FF";
|
|
80
|
-
};
|
|
81
|
-
readonly red: {
|
|
82
|
-
readonly '500': "#E91C11";
|
|
83
|
-
};
|
|
84
|
-
readonly orange: {
|
|
85
|
-
readonly '500': "#FF8C00";
|
|
86
|
-
};
|
|
87
|
-
readonly hyper: {
|
|
88
|
-
readonly '400': "#5533FF";
|
|
89
|
-
readonly '500': "#3A10E5";
|
|
90
|
-
};
|
|
91
|
-
readonly gray: {
|
|
92
|
-
readonly '0': "#ffffff";
|
|
93
|
-
readonly '100': "#f6f5fa";
|
|
94
|
-
readonly '200': "#dddce0";
|
|
95
|
-
readonly '300': "#c4c3c7";
|
|
96
|
-
readonly '400': "#a2a2a6";
|
|
97
|
-
readonly '500': "#828285";
|
|
98
|
-
readonly '600': "#646466";
|
|
99
|
-
readonly '700': "#4b4b4d";
|
|
100
|
-
readonly '800': "#323233";
|
|
101
|
-
readonly '900': "#19191a";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* @deprecated
|
|
106
|
-
* Using these variables directly is no longer supported.
|
|
107
|
-
*
|
|
108
|
-
* Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
|
|
109
|
-
*/
|
|
110
|
-
export declare const colors: {
|
|
111
|
-
readonly beige: "#FFF0E5";
|
|
112
|
-
readonly blue: "#1557FF";
|
|
113
|
-
readonly green: "#008A27";
|
|
114
|
-
readonly hyper: "#3A10E5";
|
|
115
|
-
readonly lightBlue: "#66C4FF";
|
|
116
|
-
readonly lightGreen: "#AEE938";
|
|
117
|
-
readonly navy: "#10162f";
|
|
118
|
-
readonly orange: "#FF8C00";
|
|
119
|
-
readonly paleBlue: "#F5FCFF";
|
|
120
|
-
readonly paleGreen: "#F5FFE3";
|
|
121
|
-
readonly palePink: "#FFF5FF";
|
|
122
|
-
readonly paleYellow: "#FFFAE5";
|
|
123
|
-
readonly pink: "#F966FF";
|
|
124
|
-
readonly red: "#E91C11";
|
|
125
|
-
readonly yellow: "#FFD300";
|
|
126
|
-
readonly black: "#000000";
|
|
127
|
-
readonly white: "#ffffff";
|
|
128
|
-
readonly "blue-0": "#F5FCFF";
|
|
129
|
-
readonly "blue-300": "#66C4FF";
|
|
130
|
-
readonly "blue-500": "#1557FF";
|
|
131
|
-
readonly "blue-800": "#1D2340";
|
|
132
|
-
readonly "green-0": "#F5FFE3";
|
|
133
|
-
readonly "green-400": "#AEE938";
|
|
134
|
-
readonly "green-700": "#008A27";
|
|
135
|
-
readonly "yellow-0": "#FFFAE5";
|
|
136
|
-
readonly "yellow-400": "#CCA900";
|
|
137
|
-
readonly "yellow-500": "#FFD300";
|
|
138
|
-
readonly "pink-0": "#FFF5FF";
|
|
139
|
-
readonly "pink-400": "#F966FF";
|
|
140
|
-
readonly "red-500": "#E91C11";
|
|
141
|
-
readonly "orange-500": "#FF8C00";
|
|
142
|
-
readonly "hyper-400": "#5533FF";
|
|
143
|
-
readonly "hyper-500": "#3A10E5";
|
|
144
|
-
readonly "gray-100": "#f6f5fa";
|
|
145
|
-
readonly "gray-300": "#c4c3c7";
|
|
146
|
-
readonly "gray-800": "#323233";
|
|
147
|
-
readonly "gray-200": "#dddce0";
|
|
148
|
-
readonly "gray-600": "#646466";
|
|
149
|
-
readonly "gray-900": "#19191a";
|
|
150
|
-
readonly "beige-0": "#FFF0E5";
|
|
151
|
-
readonly "blue-900": "#10162f";
|
|
152
|
-
readonly "gray-0": "#ffffff";
|
|
153
|
-
readonly "gray-400": "#a2a2a6";
|
|
154
|
-
readonly "gray-500": "#828285";
|
|
155
|
-
readonly "gray-700": "#4b4b4d";
|
|
156
|
-
};
|