@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.
- package/dist/MonacoEditor/colorsDark.js +25 -10
- package/package.json +1 -1
|
@@ -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 {
|
|
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:
|
|
9
|
-
deepPurple:
|
|
10
|
-
gray:
|
|
11
|
-
green:
|
|
12
|
-
orange:
|
|
13
|
-
purple:
|
|
14
|
-
red:
|
|
15
|
-
white:
|
|
16
|
-
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,
|