@live-codes/browser-compilers 0.17.1 → 0.18.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.
@@ -0,0 +1,135 @@
1
+ code[class*="language-"],
2
+ pre[class*="language-"] {
3
+ color: #cdd6f4;
4
+ }
5
+
6
+ :not(pre) > code[class*="language-"],
7
+ pre[class*="language-"] {
8
+ background: #181825;
9
+ }
10
+
11
+ /* https://prismjs.com/tokens.html */
12
+
13
+ .token.keyword {
14
+ color: #cba6f7;
15
+ }
16
+
17
+ .token.builtin {
18
+ color: #f38ba8;
19
+ }
20
+
21
+ .token.class-name {
22
+ color: #f9e2af;
23
+ }
24
+
25
+ .token.function {
26
+ color: #89b4fa;
27
+ }
28
+
29
+ .token.boolean,
30
+ .token.number {
31
+ color: #fab387;
32
+ }
33
+
34
+ .token.string,
35
+ .token.char {
36
+ color: #a6e3a1;
37
+ }
38
+
39
+ .token.symbol {
40
+ color: #f9e2af;
41
+ }
42
+
43
+ .token.regex {
44
+ color: #f5c2e7;
45
+ }
46
+
47
+ .token.url {
48
+ color: #a6e3a1;
49
+ }
50
+
51
+ .token.operator {
52
+ color: #89dceb;
53
+ }
54
+
55
+ .token.variable {
56
+ color: #cdd6f4;
57
+ }
58
+
59
+ .token.constant {
60
+ color: #fab387;
61
+ }
62
+
63
+ .token.property {
64
+ color: #89b4fa;
65
+ }
66
+
67
+ .token.punctuation {
68
+ color: #9399b2;
69
+ }
70
+
71
+ .token.important {
72
+ color: #cba6f7;
73
+ }
74
+
75
+ .token.comment {
76
+ color: #9399b2;
77
+ }
78
+
79
+ .token.tag {
80
+ color: #89b4fa;
81
+ }
82
+
83
+ .token.attr-name {
84
+ color: #f9e2af;
85
+ }
86
+
87
+ .token.attr-value {
88
+ color: #a6e3a1;
89
+ }
90
+
91
+ .token.namespace {
92
+ color: #f9e2af;
93
+ }
94
+
95
+ .token.prolog,
96
+ .token.doctype {
97
+ color: #cba6f7;
98
+ }
99
+
100
+ .token.cdata {
101
+ color: #94e2d5;
102
+ }
103
+
104
+ .token.entity {
105
+ color: #f38ba8;
106
+ }
107
+
108
+ .token.atrule {
109
+ color: #cba6f7;
110
+ }
111
+
112
+ .token.selector {
113
+ color: #89b4fa;
114
+ }
115
+
116
+ /* Diff */
117
+
118
+ .token.deleted {
119
+ color: #f38ba8;
120
+ }
121
+
122
+ .token.inserted {
123
+ color: #a6e3a1
124
+ }
125
+
126
+ /* Other */
127
+
128
+ .token.important,
129
+ .token.bold {
130
+ font-weight: bold;
131
+ }
132
+ .token.italic {
133
+ font-style: italic;
134
+ }
135
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-codes/browser-compilers",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "Compilers that run in the browser, for use in livecodes.io",
5
5
  "author": "Hatem Hosny",
6
6
  "license": "MIT",
@@ -564,11 +564,49 @@ esbuild.build({
564
564
  ],
565
565
  });
566
566
 
567
- // codemirror-theme-catppuccin
568
- esbuild.build({
569
- ...baseOptions,
570
- entryPoints: ['vendor_modules/imports/codemirror-theme-catppuccin.js'],
571
- outfile: 'dist/codemirror-theme-catppuccin/codemirror-theme-catppuccin.js',
572
- format: 'esm',
573
- external: ['@codemirror/view', '@codemirror/language', '@lezer/highlight'],
574
- });
567
+ // catppuccin
568
+ esbuild
569
+ .build({
570
+ ...baseOptions,
571
+ entryPoints: ['vendor_modules/imports/codemirror-theme-catppuccin.js'],
572
+ outfile: 'dist/catppuccin/codemirror/codemirror-theme-catppuccin.js',
573
+ format: 'esm',
574
+ external: ['@codemirror/view', '@codemirror/language', '@lezer/highlight'],
575
+ })
576
+ .then(() => {
577
+ mkdirp(targetDir + '/catppuccin/monaco');
578
+ fs.copyFileSync(
579
+ path.resolve(vendor_modules_src + '/catppuccin/monaco/latte.json'),
580
+ path.resolve(targetDir + '/catppuccin/monaco/latte.json'),
581
+ );
582
+ fs.copyFileSync(
583
+ path.resolve(vendor_modules_src + '/catppuccin/monaco/frappe.json'),
584
+ path.resolve(targetDir + '/catppuccin/monaco/frappe.json'),
585
+ );
586
+ fs.copyFileSync(
587
+ path.resolve(vendor_modules_src + '/catppuccin/monaco/macchiato.json'),
588
+ path.resolve(targetDir + '/catppuccin/monaco/macchiato.json'),
589
+ );
590
+ fs.copyFileSync(
591
+ path.resolve(vendor_modules_src + '/catppuccin/monaco/mocha.json'),
592
+ path.resolve(targetDir + '/catppuccin/monaco/mocha.json'),
593
+ );
594
+
595
+ mkdirp(targetDir + '/catppuccin/prism');
596
+ fs.copyFileSync(
597
+ path.resolve(vendor_modules_src + '/catppuccin/prism/latte.css'),
598
+ path.resolve(targetDir + '/catppuccin/prism/latte.css'),
599
+ );
600
+ fs.copyFileSync(
601
+ path.resolve(vendor_modules_src + '/catppuccin/prism/frappe.css'),
602
+ path.resolve(targetDir + '/catppuccin/prism/frappe.css'),
603
+ );
604
+ fs.copyFileSync(
605
+ path.resolve(vendor_modules_src + '/catppuccin/prism/macchiato.css'),
606
+ path.resolve(targetDir + '/catppuccin/prism/macchiato.css'),
607
+ );
608
+ fs.copyFileSync(
609
+ path.resolve(vendor_modules_src + '/catppuccin/prism/mocha.css'),
610
+ path.resolve(targetDir + '/catppuccin/prism/mocha.css'),
611
+ );
612
+ });
@@ -12,10 +12,14 @@ babel-plugin-react-compiler: [MIT License](https://github.com/facebook/react/blo
12
12
 
13
13
  BBob: [MIT License](https://github.com/JiLiZART/BBob/blob/17edb9e3e6572e72ab9cb042d86e2215c60afa86/LICENSE)
14
14
 
15
+ catppuccin-prismjs: [MIT License](https://github.com/catppuccin/prismjs/blob/de071c500dba91a73e40a9df1747a4aa1113fb80/LICENSE)
16
+
15
17
  Civet: [MIT License](https://github.com/DanielXMoore/Civet/blob/9b28e3a351d130ce031c7b28b50bcb6d2a499315/LICENSE)
16
18
 
17
19
  clientside-haml-js: [MIT License](https://github.com/uglyog/clientside-haml-js/blob/d814d16f46e1629c149c18d7692ba16f249f436b/LICENSE)
18
20
 
21
+ codemirror-theme-catppuccin: [Apache License 2.0](https://github.com/ahdinosaur/codemirror-theme-catppuccin/blob/cc6ff908c4c69f8a2bb4e17d273d1fbd95437e74/package.json#L27)
22
+
19
23
  CoffeeScript: [MIT License](https://github.com/jashkenas/coffeescript/tree/07f644c39223e016aceedd2cd71b5941579b5659)
20
24
 
21
25
  dart-sass: [MIT License](https://github.com/sass/dart-sass/blob/e3bf3eb3a3a8708877a86a08c7e3bee92160ac1f/LICENSE)
@@ -0,0 +1,52 @@
1
+ {
2
+ "base": "vs-dark",
3
+ "inherit": true,
4
+ "rules": [
5
+ { "token": "", "foreground": "#c6d0f5" },
6
+ { "token": "keyword", "foreground": "#ca9ee6" },
7
+ { "token": "string", "foreground": "#a6d189" },
8
+ { "token": "number", "foreground": "#ef9f76" },
9
+ { "token": "comment", "foreground": "#737994" },
10
+ { "token": "type", "foreground": "#8caaee" },
11
+ { "token": "function", "foreground": "#99d1db" },
12
+ { "token": "variable", "foreground": "#c6d0f5" },
13
+ { "token": "constant", "foreground": "#ef9f76" },
14
+ { "token": "parameter", "foreground": "#f4b8e4" },
15
+ { "token": "class", "foreground": "#e5c890" },
16
+ { "token": "operator", "foreground": "#99d1db" }
17
+ ],
18
+ "colors": {
19
+ "editor.background": "#303446",
20
+ "editor.foreground": "#c6d0f5",
21
+ "editor.lineHighlightBackground": "#414559",
22
+ "editor.selectionBackground": "#51576d",
23
+ "editor.inactiveSelectionBackground": "#414559",
24
+
25
+ "editorWidget.background": "#292c3c",
26
+ "editorWidget.border": "#414559",
27
+
28
+ "sideBar.background": "#292c3c",
29
+ "sideBar.foreground": "#c6d0f5",
30
+
31
+ "editorBracketHighlight.foreground1": "#f2d5cf",
32
+ "editorBracketHighlight.foreground2": "#babbf1",
33
+ "editorBracketHighlight.foreground3": "#ca9ee6",
34
+ "editorBracketHighlight.foreground4": "#e5c890",
35
+ "editorBracketHighlight.foreground5": "#f4b8e4",
36
+ "editorBracketHighlight.foreground6": "#81c8be",
37
+ "editorBracketHighlight.unexpectedBracket.foreground": "#e78284",
38
+
39
+ "editorGutter.background": "#303446",
40
+ "editorGutter.modifiedBackground": "#8caaee",
41
+ "editorGutter.addedBackground": "#a6d189",
42
+ "editorGutter.deletedBackground": "#e78284",
43
+
44
+ "editorLineNumber.foreground": "#737994",
45
+ "editorLineNumber.activeForeground": "#c6d0f5",
46
+
47
+ "editorCursor.foreground": "#f2d5cf",
48
+
49
+ "diffEditor.insertedTextBackground": "#a6d18933",
50
+ "diffEditor.removedTextBackground": "#e7828433"
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "base": "vs",
3
+ "inherit": true,
4
+ "rules": [
5
+ { "token": "", "foreground": "#4c4f69" },
6
+ { "token": "keyword", "foreground": "#8839ef" },
7
+ { "token": "string", "foreground": "#40a02b" },
8
+ { "token": "number", "foreground": "#fe640b" },
9
+ { "token": "comment", "foreground": "#9ca0b0" },
10
+ { "token": "type", "foreground": "#1e66f5" },
11
+ { "token": "function", "foreground": "#04a5e5" },
12
+ { "token": "variable", "foreground": "#4c4f69" },
13
+ { "token": "constant", "foreground": "#fe640b" },
14
+ { "token": "parameter", "foreground": "#ea76cb" },
15
+ { "token": "class", "foreground": "#df8e1d" },
16
+ { "token": "operator", "foreground": "#04a5e5" }
17
+ ],
18
+ "colors": {
19
+ "editor.background": "#eff1f5",
20
+ "editor.foreground": "#4c4f69",
21
+ "editor.lineHighlightBackground": "#ccd0da",
22
+ "editor.selectionBackground": "#acb0be",
23
+ "editor.inactiveSelectionBackground": "#ccd0da",
24
+
25
+ "editorWidget.background": "#dce0e8",
26
+ "editorWidget.border": "#ccd0da",
27
+
28
+ "sideBar.background": "#dce0e8",
29
+ "sideBar.foreground": "#4c4f69",
30
+
31
+ "editorBracketHighlight.foreground1": "#dc8a78",
32
+ "editorBracketHighlight.foreground2": "#7287fd",
33
+ "editorBracketHighlight.foreground3": "#8839ef",
34
+ "editorBracketHighlight.foreground4": "#df8e1d",
35
+ "editorBracketHighlight.foreground5": "#ea76cb",
36
+ "editorBracketHighlight.foreground6": "#179299",
37
+ "editorBracketHighlight.unexpectedBracket.foreground": "#d20f39",
38
+
39
+ "editorGutter.background": "#eff1f5",
40
+ "editorGutter.modifiedBackground": "#1e66f5",
41
+ "editorGutter.addedBackground": "#40a02b",
42
+ "editorGutter.deletedBackground": "#d20f39",
43
+
44
+ "editorLineNumber.foreground": "#9ca0b0",
45
+ "editorLineNumber.activeForeground": "#4c4f69",
46
+
47
+ "editorCursor.foreground": "#dc8a78",
48
+
49
+ "diffEditor.insertedTextBackground": "#40a02b33",
50
+ "diffEditor.removedTextBackground": "#d20f3933"
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "base": "vs-dark",
3
+ "inherit": true,
4
+ "rules": [
5
+ { "token": "", "foreground": "#cad3f5" },
6
+ { "token": "keyword", "foreground": "#c6a0f6" },
7
+ { "token": "string", "foreground": "#a6da95" },
8
+ { "token": "number", "foreground": "#f5a97f" },
9
+ { "token": "comment", "foreground": "#6e738d" },
10
+ { "token": "type", "foreground": "#8aadf4" },
11
+ { "token": "function", "foreground": "#91d7e3" },
12
+ { "token": "variable", "foreground": "#cad3f5" },
13
+ { "token": "constant", "foreground": "#f5a97f" },
14
+ { "token": "parameter", "foreground": "#f5bde6" },
15
+ { "token": "class", "foreground": "#eed49f" },
16
+ { "token": "operator", "foreground": "#91d7e3" }
17
+ ],
18
+ "colors": {
19
+ "editor.background": "#24273a",
20
+ "editor.foreground": "#cad3f5",
21
+ "editor.lineHighlightBackground": "#363a4f",
22
+ "editor.selectionBackground": "#494d64",
23
+ "editor.inactiveSelectionBackground": "#363a4f",
24
+
25
+ "editorWidget.background": "#181926",
26
+ "editorWidget.border": "#363a4f",
27
+
28
+ "sideBar.background": "#181926",
29
+ "sideBar.foreground": "#cad3f5",
30
+
31
+ "editorBracketHighlight.foreground1": "#f4dbd6",
32
+ "editorBracketHighlight.foreground2": "#b7bdf8",
33
+ "editorBracketHighlight.foreground3": "#c6a0f6",
34
+ "editorBracketHighlight.foreground4": "#eed49f",
35
+ "editorBracketHighlight.foreground5": "#f5bde6",
36
+ "editorBracketHighlight.foreground6": "#8bd5ca",
37
+ "editorBracketHighlight.unexpectedBracket.foreground": "#ed8796",
38
+
39
+ "editorGutter.background": "#24273a",
40
+ "editorGutter.modifiedBackground": "#8aadf4",
41
+ "editorGutter.addedBackground": "#a6da95",
42
+ "editorGutter.deletedBackground": "#ed8796",
43
+
44
+ "editorLineNumber.foreground": "#6e738d",
45
+ "editorLineNumber.activeForeground": "#cad3f5",
46
+
47
+ "editorCursor.foreground": "#f4dbd6",
48
+
49
+ "diffEditor.insertedTextBackground": "#a6da9533",
50
+ "diffEditor.removedTextBackground": "#ed879633"
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "base": "vs-dark",
3
+ "inherit": true,
4
+ "rules": [
5
+ { "token": "", "foreground": "#cdd6f4" },
6
+ { "token": "keyword", "foreground": "#cba6f7" },
7
+ { "token": "string", "foreground": "#a6e3a1" },
8
+ { "token": "number", "foreground": "#fab387" },
9
+ { "token": "comment", "foreground": "#6c7086" },
10
+ { "token": "type", "foreground": "#89b4fa" },
11
+ { "token": "function", "foreground": "#89dceb" },
12
+ { "token": "variable", "foreground": "#cdd6f4" },
13
+ { "token": "constant", "foreground": "#fab387" },
14
+ { "token": "parameter", "foreground": "#f5c2e7" },
15
+ { "token": "class", "foreground": "#f9e2af" },
16
+ { "token": "operator", "foreground": "#89dceb" }
17
+ ],
18
+ "colors": {
19
+ "editor.background": "#1e1e2e",
20
+ "editor.foreground": "#cdd6f4",
21
+ "editor.lineHighlightBackground": "#313244",
22
+ "editor.selectionBackground": "#45475a",
23
+ "editor.inactiveSelectionBackground": "#313244",
24
+
25
+ "editorWidget.background": "#181825",
26
+ "editorWidget.border": "#313244",
27
+
28
+ "sideBar.background": "#181825",
29
+ "sideBar.foreground": "#cdd6f4",
30
+
31
+ "editorBracketHighlight.foreground1": "#f5e0dc",
32
+ "editorBracketHighlight.foreground2": "#b4befe",
33
+ "editorBracketHighlight.foreground3": "#cba6f7",
34
+ "editorBracketHighlight.foreground4": "#f9e2af",
35
+ "editorBracketHighlight.foreground5": "#f5c2e7",
36
+ "editorBracketHighlight.foreground6": "#94e2d5",
37
+ "editorBracketHighlight.unexpectedBracket.foreground": "#f38ba8",
38
+
39
+ "editorGutter.background": "#1e1e2e",
40
+ "editorGutter.modifiedBackground": "#89b4fa",
41
+ "editorGutter.addedBackground": "#a6e3a1",
42
+ "editorGutter.deletedBackground": "#f38ba8",
43
+
44
+ "editorLineNumber.foreground": "#6c7086",
45
+ "editorLineNumber.activeForeground": "#cdd6f4",
46
+
47
+ "editorCursor.foreground": "#f5e0dc",
48
+
49
+ "diffEditor.insertedTextBackground": "#a6e3a133",
50
+ "diffEditor.removedTextBackground": "#f38ba833"
51
+ }
52
+ }
@@ -0,0 +1,3 @@
1
+ Color Themes from https://catppuccin.com/palette
2
+
3
+ by Shlok-Bhakta (https://github.com/Shlok-Bhakta)
@@ -0,0 +1,135 @@
1
+ code[class*="language-"],
2
+ pre[class*="language-"] {
3
+ color: #c6d0f5;
4
+ }
5
+
6
+ :not(pre) > code[class*="language-"],
7
+ pre[class*="language-"] {
8
+ background: #292c3c;
9
+ }
10
+
11
+ /* https://prismjs.com/tokens.html */
12
+
13
+ .token.keyword {
14
+ color: #ca9ee6;
15
+ }
16
+
17
+ .token.builtin {
18
+ color: #e78284;
19
+ }
20
+
21
+ .token.class-name {
22
+ color: #e5c890;
23
+ }
24
+
25
+ .token.function {
26
+ color: #8caaee;
27
+ }
28
+
29
+ .token.boolean,
30
+ .token.number {
31
+ color: #ef9f76;
32
+ }
33
+
34
+ .token.string,
35
+ .token.char {
36
+ color: #a6d189;
37
+ }
38
+
39
+ .token.symbol {
40
+ color: #e5c890;
41
+ }
42
+
43
+ .token.regex {
44
+ color: #f4b8e4;
45
+ }
46
+
47
+ .token.url {
48
+ color: #a6d189;
49
+ }
50
+
51
+ .token.operator {
52
+ color: #99d1db;
53
+ }
54
+
55
+ .token.variable {
56
+ color: #c6d0f5;
57
+ }
58
+
59
+ .token.constant {
60
+ color: #ef9f76;
61
+ }
62
+
63
+ .token.property {
64
+ color: #8caaee;
65
+ }
66
+
67
+ .token.punctuation {
68
+ color: #949cbb;
69
+ }
70
+
71
+ .token.important {
72
+ color: #ca9ee6;
73
+ }
74
+
75
+ .token.comment {
76
+ color: #949cbb;
77
+ }
78
+
79
+ .token.tag {
80
+ color: #8caaee;
81
+ }
82
+
83
+ .token.attr-name {
84
+ color: #e5c890;
85
+ }
86
+
87
+ .token.attr-value {
88
+ color: #a6d189;
89
+ }
90
+
91
+ .token.namespace {
92
+ color: #e5c890;
93
+ }
94
+
95
+ .token.prolog,
96
+ .token.doctype {
97
+ color: #ca9ee6;
98
+ }
99
+
100
+ .token.cdata {
101
+ color: #81c8be;
102
+ }
103
+
104
+ .token.entity {
105
+ color: #e78284;
106
+ }
107
+
108
+ .token.atrule {
109
+ color: #ca9ee6;
110
+ }
111
+
112
+ .token.selector {
113
+ color: #8caaee;
114
+ }
115
+
116
+ /* Diff */
117
+
118
+ .token.deleted {
119
+ color: #e78284;
120
+ }
121
+
122
+ .token.inserted {
123
+ color: #a6d189
124
+ }
125
+
126
+ /* Other */
127
+
128
+ .token.important,
129
+ .token.bold {
130
+ font-weight: bold;
131
+ }
132
+ .token.italic {
133
+ font-style: italic;
134
+ }
135
+
@@ -0,0 +1,134 @@
1
+ code[class*='language-'],
2
+ pre[class*='language-'] {
3
+ color: #4c4f69;
4
+ }
5
+
6
+ :not(pre) > code[class*='language-'],
7
+ pre[class*='language-'] {
8
+ background: #e6e9ef;
9
+ }
10
+
11
+ /* https://prismjs.com/tokens.html */
12
+
13
+ .token.keyword {
14
+ color: #8839ef;
15
+ }
16
+
17
+ .token.builtin {
18
+ color: #d20f39;
19
+ }
20
+
21
+ .token.class-name {
22
+ color: #df8e1d;
23
+ }
24
+
25
+ .token.function {
26
+ color: #1e66f5;
27
+ }
28
+
29
+ .token.boolean,
30
+ .token.number {
31
+ color: #fe640b;
32
+ }
33
+
34
+ .token.string,
35
+ .token.char {
36
+ color: #40a02b;
37
+ }
38
+
39
+ .token.symbol {
40
+ color: #df8e1d;
41
+ }
42
+
43
+ .token.regex {
44
+ color: #ea76cb;
45
+ }
46
+
47
+ .token.url {
48
+ color: #40a02b;
49
+ }
50
+
51
+ .token.operator {
52
+ color: #04a5e5;
53
+ }
54
+
55
+ .token.variable {
56
+ color: #4c4f69;
57
+ }
58
+
59
+ .token.constant {
60
+ color: #fe640b;
61
+ }
62
+
63
+ .token.property {
64
+ color: #1e66f5;
65
+ }
66
+
67
+ .token.punctuation {
68
+ color: #7c7f93;
69
+ }
70
+
71
+ .token.important {
72
+ color: #8839ef;
73
+ }
74
+
75
+ .token.comment {
76
+ color: #7c7f93;
77
+ }
78
+
79
+ .token.tag {
80
+ color: #1e66f5;
81
+ }
82
+
83
+ .token.attr-name {
84
+ color: #df8e1d;
85
+ }
86
+
87
+ .token.attr-value {
88
+ color: #40a02b;
89
+ }
90
+
91
+ .token.namespace {
92
+ color: #df8e1d;
93
+ }
94
+
95
+ .token.prolog,
96
+ .token.doctype {
97
+ color: #8839ef;
98
+ }
99
+
100
+ .token.cdata {
101
+ color: #179299;
102
+ }
103
+
104
+ .token.entity {
105
+ color: #d20f39;
106
+ }
107
+
108
+ .token.atrule {
109
+ color: #8839ef;
110
+ }
111
+
112
+ .token.selector {
113
+ color: #1e66f5;
114
+ }
115
+
116
+ /* Diff */
117
+
118
+ .token.deleted {
119
+ color: #d20f39;
120
+ }
121
+
122
+ .token.inserted {
123
+ color: #40a02b;
124
+ }
125
+
126
+ /* Other */
127
+
128
+ .token.important,
129
+ .token.bold {
130
+ font-weight: bold;
131
+ }
132
+ .token.italic {
133
+ font-style: italic;
134
+ }