@codecademy/gamut-styles 17.6.5-alpha.2ccc85.0 → 17.6.5-alpha.30169d.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/platform.d.ts +52 -26
- package/dist/themes/platform.js +11 -10
- package/dist/variables/colors.d.ts +22 -4
- package/dist/variables/colors.js +12 -1
- package/package.json +2 -2
|
@@ -76,10 +76,6 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
76
76
|
readonly 8: string;
|
|
77
77
|
readonly 12: string;
|
|
78
78
|
readonly 16: string;
|
|
79
|
-
/**
|
|
80
|
-
* @description This is an extended theme for the learning environment with an expanded set of tokens
|
|
81
|
-
* That are not needed for the rest of the application.
|
|
82
|
-
*/
|
|
83
79
|
readonly 24: string;
|
|
84
80
|
readonly 32: string;
|
|
85
81
|
readonly 40: string;
|
|
@@ -519,22 +515,33 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
519
515
|
}, "-">>>, import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"colors", import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
520
516
|
readonly lightBeige: "#FFFBF8";
|
|
521
517
|
readonly gold: "#8A7300";
|
|
522
|
-
readonly teal: "#
|
|
518
|
+
readonly teal: "#006d82";
|
|
523
519
|
readonly purple: "#B3CCFF";
|
|
520
|
+
readonly 'comment-light': "#686c7b";
|
|
521
|
+
readonly 'comment-dark': "#84868d";
|
|
522
|
+
readonly 'indent-active-light': "#bcbdc4";
|
|
523
|
+
readonly 'indent-active-dark': "#3b3d49";
|
|
524
|
+
readonly 'indent-inactive-light': "#8e919d";
|
|
525
|
+
readonly 'indent-inactive-dark': "#5f616b";
|
|
526
|
+
readonly 'line-number-light': "#686c7b";
|
|
527
|
+
readonly 'line-number-dark': "#84868d";
|
|
524
528
|
readonly "beige-0": "#FFFBF8";
|
|
525
529
|
readonly "pink-800": "#CA00D1";
|
|
526
530
|
readonly "orange-800": "#D14900";
|
|
527
531
|
readonly "gold-800": "#8A7300";
|
|
528
|
-
readonly "teal-500": "#
|
|
532
|
+
readonly "teal-500": "#006d82";
|
|
529
533
|
readonly "purple-300": "#B3CCFF";
|
|
530
534
|
}, "-">, "color">>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, {
|
|
531
535
|
colors: import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
536
|
+
background: {
|
|
537
|
+
primary: "blue-0";
|
|
538
|
+
};
|
|
532
539
|
editor: {
|
|
533
540
|
attribute: "green-700";
|
|
534
541
|
annotation: "red-500";
|
|
535
542
|
atom: "pink-800";
|
|
536
543
|
basic: "navy-800";
|
|
537
|
-
comment: "
|
|
544
|
+
comment: "comment-light";
|
|
538
545
|
constant: "orange-800";
|
|
539
546
|
decoration: "red-500";
|
|
540
547
|
invalid: "red-500";
|
|
@@ -553,9 +560,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
553
560
|
ui: {
|
|
554
561
|
background: "white";
|
|
555
562
|
text: "navy-800";
|
|
556
|
-
'indent-active': "
|
|
557
|
-
'indent-inactive': "
|
|
558
|
-
'line-number': "
|
|
563
|
+
'indent-active': "indent-active-light";
|
|
564
|
+
'indent-inactive': "indent-inactive-light";
|
|
565
|
+
'line-number': "line-number-light";
|
|
559
566
|
};
|
|
560
567
|
};
|
|
561
568
|
} | {
|
|
@@ -564,7 +571,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
564
571
|
annotation: "red-300";
|
|
565
572
|
atom: "pink-400";
|
|
566
573
|
basic: "white";
|
|
567
|
-
comment: "
|
|
574
|
+
comment: "comment-dark";
|
|
568
575
|
constant: "orange-500";
|
|
569
576
|
decoration: "red-300";
|
|
570
577
|
invalid: "red-300";
|
|
@@ -583,9 +590,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
583
590
|
ui: {
|
|
584
591
|
background: "navy-900";
|
|
585
592
|
text: "white";
|
|
586
|
-
'indent-active': "
|
|
587
|
-
'indent-inactive': "
|
|
588
|
-
'line-number': "
|
|
593
|
+
'indent-active': "indent-active-dark";
|
|
594
|
+
'indent-inactive': "indent-inactive-dark";
|
|
595
|
+
'line-number': "line-number-dark";
|
|
589
596
|
};
|
|
590
597
|
};
|
|
591
598
|
}, "-", "_">, "colors"> & import("@codecademy/variance/dist/createTheme/types").Assign<import("@codecademy/variance/dist/createTheme/types").Assign<import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
@@ -831,13 +838,21 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
831
838
|
}, "-">, "color">>, import("@codecademy/variance").KeyAsVariable<import("@codecademy/variance").LiteralPaths<{
|
|
832
839
|
readonly lightBeige: "#FFFBF8";
|
|
833
840
|
readonly gold: "#8A7300";
|
|
834
|
-
readonly teal: "#
|
|
841
|
+
readonly teal: "#006d82";
|
|
835
842
|
readonly purple: "#B3CCFF";
|
|
843
|
+
readonly 'comment-light': "#686c7b";
|
|
844
|
+
readonly 'comment-dark': "#84868d";
|
|
845
|
+
readonly 'indent-active-light': "#bcbdc4";
|
|
846
|
+
readonly 'indent-active-dark': "#3b3d49";
|
|
847
|
+
readonly 'indent-inactive-light': "#8e919d";
|
|
848
|
+
readonly 'indent-inactive-dark': "#5f616b";
|
|
849
|
+
readonly 'line-number-light': "#686c7b";
|
|
850
|
+
readonly 'line-number-dark': "#84868d";
|
|
836
851
|
readonly "beige-0": "#FFFBF8";
|
|
837
852
|
readonly "pink-800": "#CA00D1";
|
|
838
853
|
readonly "orange-800": "#D14900";
|
|
839
854
|
readonly "gold-800": "#8A7300";
|
|
840
|
-
readonly "teal-500": "#
|
|
855
|
+
readonly "teal-500": "#006d82";
|
|
841
856
|
readonly "purple-300": "#B3CCFF";
|
|
842
857
|
}, "-">, "color">>;
|
|
843
858
|
modes: import("@codecademy/variance/dist/createTheme/types").Merge<import("@codecademy/variance/dist/createTheme/types").Merge<unknown, {
|
|
@@ -947,12 +962,15 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
947
962
|
}, "-", "_">;
|
|
948
963
|
}>, {
|
|
949
964
|
light: import("@codecademy/variance").LiteralPaths<{
|
|
965
|
+
background: {
|
|
966
|
+
primary: "blue-0";
|
|
967
|
+
};
|
|
950
968
|
editor: {
|
|
951
969
|
attribute: "green-700";
|
|
952
970
|
annotation: "red-500";
|
|
953
971
|
atom: "pink-800";
|
|
954
972
|
basic: "navy-800";
|
|
955
|
-
comment: "
|
|
973
|
+
comment: "comment-light";
|
|
956
974
|
constant: "orange-800";
|
|
957
975
|
decoration: "red-500";
|
|
958
976
|
invalid: "red-500";
|
|
@@ -971,9 +989,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
971
989
|
ui: {
|
|
972
990
|
background: "white";
|
|
973
991
|
text: "navy-800";
|
|
974
|
-
'indent-active': "
|
|
975
|
-
'indent-inactive': "
|
|
976
|
-
'line-number': "
|
|
992
|
+
'indent-active': "indent-active-light";
|
|
993
|
+
'indent-inactive': "indent-inactive-light";
|
|
994
|
+
'line-number': "line-number-light";
|
|
977
995
|
};
|
|
978
996
|
};
|
|
979
997
|
}, "-", "_">;
|
|
@@ -983,7 +1001,7 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
983
1001
|
annotation: "red-300";
|
|
984
1002
|
atom: "pink-400";
|
|
985
1003
|
basic: "white";
|
|
986
|
-
comment: "
|
|
1004
|
+
comment: "comment-dark";
|
|
987
1005
|
constant: "orange-500";
|
|
988
1006
|
decoration: "red-300";
|
|
989
1007
|
invalid: "red-300";
|
|
@@ -1002,9 +1020,9 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
1002
1020
|
ui: {
|
|
1003
1021
|
background: "navy-900";
|
|
1004
1022
|
text: "white";
|
|
1005
|
-
'indent-active': "
|
|
1006
|
-
'indent-inactive': "
|
|
1007
|
-
'line-number': "
|
|
1023
|
+
'indent-active': "indent-active-dark";
|
|
1024
|
+
'indent-inactive': "indent-inactive-dark";
|
|
1025
|
+
'line-number': "line-number-dark";
|
|
1008
1026
|
};
|
|
1009
1027
|
};
|
|
1010
1028
|
}, "-", "_">;
|
|
@@ -1082,13 +1100,21 @@ export declare const platformTheme: Record<"breakpoints", {
|
|
|
1082
1100
|
}, "-"> | "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-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" | import("@codecademy/variance").Path<{
|
|
1083
1101
|
readonly lightBeige: "#FFFBF8";
|
|
1084
1102
|
readonly gold: "#8A7300";
|
|
1085
|
-
readonly teal: "#
|
|
1103
|
+
readonly teal: "#006d82";
|
|
1086
1104
|
readonly purple: "#B3CCFF";
|
|
1105
|
+
readonly 'comment-light': "#686c7b";
|
|
1106
|
+
readonly 'comment-dark': "#84868d";
|
|
1107
|
+
readonly 'indent-active-light': "#bcbdc4";
|
|
1108
|
+
readonly 'indent-active-dark': "#3b3d49";
|
|
1109
|
+
readonly 'indent-inactive-light': "#8e919d";
|
|
1110
|
+
readonly 'indent-inactive-dark': "#5f616b";
|
|
1111
|
+
readonly 'line-number-light': "#686c7b";
|
|
1112
|
+
readonly 'line-number-dark': "#84868d";
|
|
1087
1113
|
readonly "beige-0": "#FFFBF8";
|
|
1088
1114
|
readonly "pink-800": "#CA00D1";
|
|
1089
1115
|
readonly "orange-800": "#D14900";
|
|
1090
1116
|
readonly "gold-800": "#8A7300";
|
|
1091
|
-
readonly "teal-500": "#
|
|
1117
|
+
readonly "teal-500": "#006d82";
|
|
1092
1118
|
readonly "purple-300": "#B3CCFF";
|
|
1093
1119
|
}, "-">) => string;
|
|
1094
1120
|
}> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
|
package/dist/themes/platform.js
CHANGED
|
@@ -2,8 +2,6 @@ import { createTheme } from '@codecademy/variance';
|
|
|
2
2
|
import { platformPalette } from '../variables';
|
|
3
3
|
import { coreTheme } from './core';
|
|
4
4
|
|
|
5
|
-
// KENNY: main branch to update color tokens for core + platform themes
|
|
6
|
-
|
|
7
5
|
/**
|
|
8
6
|
* @description This is an extended theme for the learning environment with an expanded set of tokens
|
|
9
7
|
* That are not needed for the rest of the application.
|
|
@@ -11,12 +9,15 @@ import { coreTheme } from './core';
|
|
|
11
9
|
|
|
12
10
|
export const platformTheme = createTheme(coreTheme).addColors(platformPalette).addColorModes('dark', {
|
|
13
11
|
light: {
|
|
12
|
+
background: {
|
|
13
|
+
primary: 'blue-0'
|
|
14
|
+
},
|
|
14
15
|
editor: {
|
|
15
16
|
attribute: 'green-700',
|
|
16
17
|
annotation: 'red-500',
|
|
17
18
|
atom: 'pink-800',
|
|
18
19
|
basic: 'navy-800',
|
|
19
|
-
comment: '
|
|
20
|
+
comment: 'comment-light',
|
|
20
21
|
constant: 'orange-800',
|
|
21
22
|
decoration: 'red-500',
|
|
22
23
|
invalid: 'red-500',
|
|
@@ -35,9 +36,9 @@ export const platformTheme = createTheme(coreTheme).addColors(platformPalette).a
|
|
|
35
36
|
ui: {
|
|
36
37
|
background: 'white',
|
|
37
38
|
text: 'navy-800',
|
|
38
|
-
'indent-active': '
|
|
39
|
-
'indent-inactive': '
|
|
40
|
-
'line-number': '
|
|
39
|
+
'indent-active': 'indent-active-light',
|
|
40
|
+
'indent-inactive': 'indent-inactive-light',
|
|
41
|
+
'line-number': 'line-number-light'
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
},
|
|
@@ -47,7 +48,7 @@ export const platformTheme = createTheme(coreTheme).addColors(platformPalette).a
|
|
|
47
48
|
annotation: 'red-300',
|
|
48
49
|
atom: 'pink-400',
|
|
49
50
|
basic: 'white',
|
|
50
|
-
comment: '
|
|
51
|
+
comment: 'comment-dark',
|
|
51
52
|
constant: 'orange-500',
|
|
52
53
|
decoration: 'red-300',
|
|
53
54
|
invalid: 'red-300',
|
|
@@ -66,9 +67,9 @@ export const platformTheme = createTheme(coreTheme).addColors(platformPalette).a
|
|
|
66
67
|
ui: {
|
|
67
68
|
background: 'navy-900',
|
|
68
69
|
text: 'white',
|
|
69
|
-
'indent-active': '
|
|
70
|
-
'indent-inactive': '
|
|
71
|
-
'line-number': '
|
|
70
|
+
'indent-active': 'indent-active-dark',
|
|
71
|
+
'indent-inactive': 'indent-inactive-dark',
|
|
72
|
+
'line-number': 'line-number-dark'
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
}
|
|
@@ -179,7 +179,7 @@ export declare const platformSwatches: {
|
|
|
179
179
|
readonly '800': "#CA00D1";
|
|
180
180
|
};
|
|
181
181
|
readonly teal: {
|
|
182
|
-
readonly '500': "#
|
|
182
|
+
readonly '500': "#006d82";
|
|
183
183
|
};
|
|
184
184
|
readonly purple: {
|
|
185
185
|
readonly '300': "#B3CCFF";
|
|
@@ -188,19 +188,37 @@ export declare const platformSwatches: {
|
|
|
188
188
|
export declare const truePlatformColors: {
|
|
189
189
|
readonly lightBeige: "#FFFBF8";
|
|
190
190
|
readonly gold: "#8A7300";
|
|
191
|
-
readonly teal: "#
|
|
191
|
+
readonly teal: "#006d82";
|
|
192
192
|
readonly purple: "#B3CCFF";
|
|
193
193
|
};
|
|
194
|
+
export declare const platformEditorColors: {
|
|
195
|
+
readonly 'comment-light': "#686c7b";
|
|
196
|
+
readonly 'comment-dark': "#84868d";
|
|
197
|
+
readonly 'indent-active-light': "#bcbdc4";
|
|
198
|
+
readonly 'indent-active-dark': "#3b3d49";
|
|
199
|
+
readonly 'indent-inactive-light': "#8e919d";
|
|
200
|
+
readonly 'indent-inactive-dark': "#5f616b";
|
|
201
|
+
readonly 'line-number-light': "#686c7b";
|
|
202
|
+
readonly 'line-number-dark': "#84868d";
|
|
203
|
+
};
|
|
194
204
|
export declare const platformPalette: {
|
|
195
205
|
readonly lightBeige: "#FFFBF8";
|
|
196
206
|
readonly gold: "#8A7300";
|
|
197
|
-
readonly teal: "#
|
|
207
|
+
readonly teal: "#006d82";
|
|
198
208
|
readonly purple: "#B3CCFF";
|
|
209
|
+
readonly 'comment-light': "#686c7b";
|
|
210
|
+
readonly 'comment-dark': "#84868d";
|
|
211
|
+
readonly 'indent-active-light': "#bcbdc4";
|
|
212
|
+
readonly 'indent-active-dark': "#3b3d49";
|
|
213
|
+
readonly 'indent-inactive-light': "#8e919d";
|
|
214
|
+
readonly 'indent-inactive-dark': "#5f616b";
|
|
215
|
+
readonly 'line-number-light': "#686c7b";
|
|
216
|
+
readonly 'line-number-dark': "#84868d";
|
|
199
217
|
readonly "beige-0": "#FFFBF8";
|
|
200
218
|
readonly "pink-800": "#CA00D1";
|
|
201
219
|
readonly "orange-800": "#D14900";
|
|
202
220
|
readonly "gold-800": "#8A7300";
|
|
203
|
-
readonly "teal-500": "#
|
|
221
|
+
readonly "teal-500": "#006d82";
|
|
204
222
|
readonly "purple-300": "#B3CCFF";
|
|
205
223
|
};
|
|
206
224
|
/**
|
package/dist/variables/colors.js
CHANGED
|
@@ -124,7 +124,7 @@ export const platformSwatches = {
|
|
|
124
124
|
'800': '#CA00D1'
|
|
125
125
|
},
|
|
126
126
|
teal: {
|
|
127
|
-
'500': '#
|
|
127
|
+
'500': '#006d82'
|
|
128
128
|
},
|
|
129
129
|
purple: {
|
|
130
130
|
'300': '#B3CCFF'
|
|
@@ -136,8 +136,19 @@ export const truePlatformColors = {
|
|
|
136
136
|
teal: platformSwatches.teal[500],
|
|
137
137
|
purple: platformSwatches.purple[300]
|
|
138
138
|
};
|
|
139
|
+
export const platformEditorColors = {
|
|
140
|
+
'comment-light': '#686c7b',
|
|
141
|
+
'comment-dark': '#84868d',
|
|
142
|
+
'indent-active-light': '#bcbdc4',
|
|
143
|
+
'indent-active-dark': '#3b3d49',
|
|
144
|
+
'indent-inactive-light': '#8e919d',
|
|
145
|
+
'indent-inactive-dark': '#5f616b',
|
|
146
|
+
'line-number-light': '#686c7b',
|
|
147
|
+
'line-number-dark': '#84868d'
|
|
148
|
+
};
|
|
139
149
|
export const platformPalette = {
|
|
140
150
|
...flattenScale(platformSwatches),
|
|
151
|
+
...platformEditorColors,
|
|
141
152
|
...truePlatformColors
|
|
142
153
|
};
|
|
143
154
|
|
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.5-alpha.
|
|
4
|
+
"version": "17.6.5-alpha.30169d.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": "
|
|
37
|
+
"gitHead": "5fb8da41fe54d1adeacf7b44a45b794aa2313928"
|
|
38
38
|
}
|