@codecademy/gamut-styles 17.7.0-alpha.d99e76.0 → 17.7.0-alpha.dd4a6f.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.
@@ -26,21 +26,25 @@ export declare const coreSwatches: {
26
26
  readonly '100': "#EAFDC6";
27
27
  readonly '400': "#AEE938";
28
28
  readonly '700': "#008A27";
29
+ readonly '900': "#151C07";
29
30
  };
30
31
  readonly yellow: {
31
32
  readonly '0': "#FFFAE5";
32
33
  readonly '400': "#CCA900";
33
34
  readonly '500': "#FFD300";
35
+ readonly '900': "#211B00";
34
36
  };
35
37
  readonly pink: {
36
38
  readonly '0': "#FFF5FF";
37
39
  readonly '400': "#F966FF";
38
40
  };
39
41
  readonly red: {
40
- readonly '0': "#E85D7F";
41
- readonly '100': "#DC5879";
42
+ readonly '0': "#FBF1F0";
43
+ readonly '300': "#E85D7F";
44
+ readonly '400': "#DC5879";
42
45
  readonly '500': "#E91C11";
43
46
  readonly '600': "#BE1809";
47
+ readonly '900': "#280503";
44
48
  };
45
49
  readonly orange: {
46
50
  readonly '100': "#FFE8CC";
@@ -127,15 +131,19 @@ export declare const corePalette: {
127
131
  readonly "green-100": "#EAFDC6";
128
132
  readonly "green-400": "#AEE938";
129
133
  readonly "green-700": "#008A27";
134
+ readonly "green-900": "#151C07";
130
135
  readonly "yellow-0": "#FFFAE5";
131
136
  readonly "yellow-400": "#CCA900";
132
137
  readonly "yellow-500": "#FFD300";
138
+ readonly "yellow-900": "#211B00";
133
139
  readonly "pink-0": "#FFF5FF";
134
140
  readonly "pink-400": "#F966FF";
135
- readonly "red-0": "#E85D7F";
136
- readonly "red-100": "#DC5879";
141
+ readonly "red-0": "#FBF1F0";
142
+ readonly "red-300": "#E85D7F";
143
+ readonly "red-400": "#DC5879";
137
144
  readonly "red-500": "#E91C11";
138
145
  readonly "red-600": "#BE1809";
146
+ readonly "red-900": "#280503";
139
147
  readonly "orange-100": "#FFE8CC";
140
148
  readonly "orange-500": "#FF8C00";
141
149
  readonly "hyper-400": "#5533FF";
@@ -171,7 +179,7 @@ export declare const platformSwatches: {
171
179
  readonly '800': "#CA00D1";
172
180
  };
173
181
  readonly teal: {
174
- readonly '500': "#027E97";
182
+ readonly '500': "#006D82";
175
183
  };
176
184
  readonly purple: {
177
185
  readonly '300': "#B3CCFF";
@@ -180,19 +188,41 @@ export declare const platformSwatches: {
180
188
  export declare const truePlatformColors: {
181
189
  readonly lightBeige: "#FFFBF8";
182
190
  readonly gold: "#8A7300";
183
- readonly teal: "#027E97";
191
+ readonly teal: "#006D82";
184
192
  readonly purple: "#B3CCFF";
185
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-active-light': "#31374C";
202
+ readonly 'line-number-active-dark': "#CECFD2";
203
+ readonly 'line-number-inactive-light': "#686C7B";
204
+ readonly 'line-number-inactive-dark': "#84868D";
205
+ };
186
206
  export declare const platformPalette: {
187
207
  readonly lightBeige: "#FFFBF8";
188
208
  readonly gold: "#8A7300";
189
- readonly teal: "#027E97";
209
+ readonly teal: "#006D82";
190
210
  readonly purple: "#B3CCFF";
211
+ readonly 'comment-light': "#686C7B";
212
+ readonly 'comment-dark': "#84868D";
213
+ readonly 'indent-active-light': "#BCBDC4";
214
+ readonly 'indent-active-dark': "#3B3D49";
215
+ readonly 'indent-inactive-light': "#8E919D";
216
+ readonly 'indent-inactive-dark': "#5F616B";
217
+ readonly 'line-number-active-light': "#31374C";
218
+ readonly 'line-number-active-dark': "#CECFD2";
219
+ readonly 'line-number-inactive-light': "#686C7B";
220
+ readonly 'line-number-inactive-dark': "#84868D";
191
221
  readonly "beige-0": "#FFFBF8";
192
222
  readonly "pink-800": "#CA00D1";
193
223
  readonly "orange-800": "#D14900";
194
224
  readonly "gold-800": "#8A7300";
195
- readonly "teal-500": "#027E97";
225
+ readonly "teal-500": "#006D82";
196
226
  readonly "purple-300": "#B3CCFF";
197
227
  };
198
228
  /**
@@ -247,15 +277,19 @@ export declare const lxStudioPalette: {
247
277
  "green-100": "#EAFDC6";
248
278
  "green-400": "#AEE938";
249
279
  "green-700": "#008A27";
280
+ "green-900": "#151C07";
250
281
  "yellow-0": "#FFFAE5";
251
282
  "yellow-400": "#CCA900";
252
283
  "yellow-500": "#FFD300";
284
+ "yellow-900": "#211B00";
253
285
  "pink-0": "#FFF5FF";
254
286
  "pink-400": "#F966FF";
255
- "red-0": "#E85D7F";
256
- "red-100": "#DC5879";
287
+ "red-0": "#FBF1F0";
288
+ "red-300": "#E85D7F";
289
+ "red-400": "#DC5879";
257
290
  "red-500": "#E91C11";
258
291
  "red-600": "#BE1809";
292
+ "red-900": "#280503";
259
293
  "orange-100": "#FFE8CC";
260
294
  "orange-500": "#FF8C00";
261
295
  "hyper-400": "#5533FF";
@@ -34,22 +34,26 @@ export const coreSwatches = {
34
34
  '0': '#F5FFE3',
35
35
  '100': '#EAFDC6',
36
36
  '400': '#AEE938',
37
- '700': '#008A27'
37
+ '700': '#008A27',
38
+ '900': '#151C07'
38
39
  },
39
40
  yellow: {
40
41
  '0': '#FFFAE5',
41
42
  '400': '#CCA900',
42
- '500': '#FFD300'
43
+ '500': '#FFD300',
44
+ '900': '#211B00'
43
45
  },
44
46
  pink: {
45
47
  '0': '#FFF5FF',
46
48
  '400': '#F966FF'
47
49
  },
48
50
  red: {
49
- '0': '#E85D7F',
50
- '100': '#DC5879',
51
+ '0': '#FBF1F0',
52
+ '300': '#E85D7F',
53
+ '400': '#DC5879',
51
54
  '500': '#E91C11',
52
- '600': '#BE1809'
55
+ '600': '#BE1809',
56
+ '900': '#280503'
53
57
  },
54
58
  orange: {
55
59
  '100': '#FFE8CC',
@@ -91,7 +95,7 @@ export const trueColors = {
91
95
  palePink: coreSwatches.pink[0],
92
96
  paleYellow: coreSwatches.yellow[0],
93
97
  pink: coreSwatches.pink[400],
94
- paleRed: coreSwatches.red[100],
98
+ paleRed: coreSwatches.red[400],
95
99
  red: coreSwatches.red[500],
96
100
  yellow: coreSwatches.yellow[500],
97
101
  black,
@@ -120,7 +124,7 @@ export const platformSwatches = {
120
124
  '800': '#CA00D1'
121
125
  },
122
126
  teal: {
123
- '500': '#027E97'
127
+ '500': '#006D82'
124
128
  },
125
129
  purple: {
126
130
  '300': '#B3CCFF'
@@ -132,8 +136,21 @@ export const truePlatformColors = {
132
136
  teal: platformSwatches.teal[500],
133
137
  purple: platformSwatches.purple[300]
134
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-active-light': '#31374C',
147
+ 'line-number-active-dark': '#CECFD2',
148
+ 'line-number-inactive-light': '#686C7B',
149
+ 'line-number-inactive-dark': '#84868D'
150
+ };
135
151
  export const platformPalette = {
136
152
  ...flattenScale(platformSwatches),
153
+ ...platformEditorColors,
137
154
  ...truePlatformColors
138
155
  };
139
156
 
@@ -372,6 +372,9 @@ export declare const layout: {
372
372
  readonly gridArea: {
373
373
  readonly property: "gridArea";
374
374
  };
375
+ readonly containerType: {
376
+ readonly property: "containerType";
377
+ };
375
378
  readonly display: {
376
379
  readonly property: "display";
377
380
  };
@@ -848,6 +851,9 @@ export declare const all: {
848
851
  gridArea: {
849
852
  readonly property: "gridArea";
850
853
  };
854
+ containerType: {
855
+ readonly property: "containerType";
856
+ };
851
857
  display: {
852
858
  readonly property: "display";
853
859
  };
@@ -330,6 +330,9 @@ export const shadows = {
330
330
  }
331
331
  };
332
332
  export const layout = {
333
+ containerType: {
334
+ property: 'containerType'
335
+ },
333
336
  display: {
334
337
  property: 'display'
335
338
  },
@@ -190,6 +190,9 @@ export declare const layout: import("@codecademy/variance/dist/types/config").Pa
190
190
  readonly gridArea: {
191
191
  readonly property: "gridArea";
192
192
  };
193
+ readonly containerType: {
194
+ readonly property: "containerType";
195
+ };
193
196
  readonly display: {
194
197
  readonly property: "display";
195
198
  };
@@ -851,6 +854,9 @@ export declare const css: import("@codecademy/variance/dist/types/config").CSS<i
851
854
  gridArea: {
852
855
  readonly property: "gridArea";
853
856
  };
857
+ containerType: {
858
+ readonly property: "containerType";
859
+ };
854
860
  display: {
855
861
  readonly property: "display";
856
862
  };
@@ -1302,6 +1308,9 @@ export declare const variant: import("@codecademy/variance/dist/types/config").V
1302
1308
  gridArea: {
1303
1309
  readonly property: "gridArea";
1304
1310
  };
1311
+ containerType: {
1312
+ readonly property: "containerType";
1313
+ };
1305
1314
  display: {
1306
1315
  readonly property: "display";
1307
1316
  };
@@ -1753,6 +1762,9 @@ export declare const states: import("@codecademy/variance/dist/types/config").St
1753
1762
  gridArea: {
1754
1763
  readonly property: "gridArea";
1755
1764
  };
1765
+ containerType: {
1766
+ readonly property: "containerType";
1767
+ };
1756
1768
  display: {
1757
1769
  readonly property: "display";
1758
1770
  };
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { ThemeProps } from '@codecademy/variance';
3
- declare const allPropnames: ["mode", "variant", "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "border" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "overflow" | "textDecoration" | "dimensions" | "textColor" | "bg" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom"];
3
+ declare const allPropnames: ["mode", "variant", "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "border" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "containerType" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "overflow" | "textDecoration" | "dimensions" | "textColor" | "bg" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom"];
4
4
  export type SystemPropNames = (typeof allPropnames)[number];
5
5
  export type ElementOrProps = keyof JSX.IntrinsicElements | ThemeProps;
6
6
  export type ForwardableProps<El extends ElementOrProps, Additional> = Exclude<El extends keyof JSX.IntrinsicElements ? keyof JSX.IntrinsicElements[El] : keyof Element, Additional | SystemPropNames>;
7
7
  export declare function createStyledOptions<El extends ElementOrProps = 'div', Additional extends string = never>(additional?: readonly Additional[]): {
8
- shouldForwardProp: (prop: PropertyKey) => prop is Exclude<El extends keyof JSX.IntrinsicElements ? keyof JSX.IntrinsicElements[El] : keyof Element, "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "border" | "mode" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "overflow" | "textDecoration" | "dimensions" | "textColor" | "bg" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom" | "variant" | Additional>;
8
+ shouldForwardProp: (prop: PropertyKey) => prop is Exclude<El extends keyof JSX.IntrinsicElements ? keyof JSX.IntrinsicElements[El] : keyof Element, "p" | "fontSize" | "fontFamily" | "lineHeight" | "fontWeight" | "color" | "background" | "border" | "mode" | "alignContent" | "alignItems" | "alignSelf" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "bottom" | "boxShadow" | "columnGap" | "containerType" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "listStyleImage" | "listStylePosition" | "listStyleType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "position" | "right" | "rowGap" | "textAlign" | "textShadow" | "textTransform" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "backgroundPosition" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "inset" | "listStyle" | "overflow" | "textDecoration" | "dimensions" | "textColor" | "bg" | "borderColorX" | "borderColorY" | "borderColorLeft" | "borderColorRight" | "borderColorTop" | "borderColorBottom" | "px" | "py" | "pt" | "pb" | "pr" | "pl" | "m" | "mx" | "my" | "mt" | "mb" | "mr" | "ml" | "borderX" | "borderY" | "borderWidthX" | "borderWidthY" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "borderWidthBottom" | "borderRadiusLeft" | "borderRadiusTop" | "borderRadiusBottom" | "borderRadiusRight" | "borderRadiusTopLeft" | "borderRadiusTopRight" | "borderRadiusBottomRight" | "borderRadiusBottomLeft" | "borderStyleX" | "borderStyleY" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "borderStyleBottom" | "variant" | Additional>;
9
9
  };
10
10
  /**
11
11
  * @description
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.7.0-alpha.d99e76.0",
4
+ "version": "17.7.0-alpha.dd4a6f.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
- "@codecademy/variance": "0.23.0-alpha.d99e76.0",
7
+ "@codecademy/variance": "0.23.0-alpha.dd4a6f.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": "724efb772364d19f9c707f95f359ef504633667d"
37
+ "gitHead": "71b4929afb69be636ef16df393e102f8c9bf1b2c"
38
38
  }