@codecademy/codebytes 2.2.0 → 2.3.0-alpha.18489c7d8.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.
@@ -3,17 +3,32 @@
3
3
  // We are working on a monaco package in client-modules that has more configuration around themes and languages
4
4
  // Monaco as a shared package RFC https://www.notion.so/codecademy/Monaco-editor-as-a-shared-package-1f4484db165b4abc8394c3556451ef6a
5
5
 
6
- import { colors, editorColors } from '@codecademy/gamut-styles';
6
+ import { trueColors } from '@codecademy/gamut-styles';
7
+
8
+ /**
9
+ * Deprecated Gamut Monaco syntax hexes (formerly `editorColors` in gamut-styles).
10
+ * Keep `deprecatedEditorSyntaxColors` in sync with: libs/le-shared/libs/src/monaco/theme/colorsDark.ts and libs/ui/components/src/CodeBlocks/ColorizedBlock/theme.tsx
11
+ */
12
+ const deprecatedEditorSyntaxColors = {
13
+ blue: '#83fff5',
14
+ deepPurple: '#cc7bc2',
15
+ gray: '#939598',
16
+ green: '#b4d353',
17
+ orange: '#ff8973',
18
+ purple: '#b3ccff',
19
+ red: '#ea6c8b',
20
+ yellow: '#ffe083'
21
+ };
7
22
  const darkTheme = {
8
- blue: editorColors.blue,
9
- deepPurple: editorColors.deepPurple,
10
- gray: editorColors.gray,
11
- green: editorColors.green,
12
- orange: editorColors.orange,
13
- purple: editorColors.purple,
14
- red: editorColors.red,
15
- white: colors.white,
16
- yellow: editorColors.yellow
23
+ blue: deprecatedEditorSyntaxColors.blue,
24
+ deepPurple: deprecatedEditorSyntaxColors.deepPurple,
25
+ gray: deprecatedEditorSyntaxColors.gray,
26
+ green: deprecatedEditorSyntaxColors.green,
27
+ orange: deprecatedEditorSyntaxColors.orange,
28
+ purple: deprecatedEditorSyntaxColors.purple,
29
+ red: deprecatedEditorSyntaxColors.red,
30
+ white: trueColors.white,
31
+ yellow: deprecatedEditorSyntaxColors.yellow
17
32
  };
18
33
  export const syntax = {
19
34
  attribute: darkTheme.green,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codecademy/codebytes",
3
- "version": "2.2.0",
3
+ "version": "2.3.0-alpha.18489c7d8.0",
4
4
  "description": "Codebytes Editor",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:codecademy-engineering/mono.git",