@uiw/codemirror-theme-sublime 4.9.4 → 4.9.5
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/README.md +4 -0
- package/cjs/index.js +7 -6
- package/cjs/index.js.map +8 -4
- package/esm/index.js +7 -6
- package/esm/index.js.map +8 -4
- package/package.json +2 -2
- package/src/index.ts +4 -3
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@uiw/codemirror-theme-sublime)
|
|
8
8
|
|
|
9
|
+
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/sublime">
|
|
10
|
+
<img width="436" alt="codemirror-theme-sublime" src="https://user-images.githubusercontent.com/1680273/176572314-cc296f81-0763-485c-8fa2-7d61b24ad09b.png">
|
|
11
|
+
</a>
|
|
12
|
+
|
|
9
13
|
## Install
|
|
10
14
|
|
|
11
15
|
```bash
|
package/cjs/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var sublime = (0, _codemirrorThemes.createTheme)({
|
|
|
22
22
|
lineHighlight: '#00000059'
|
|
23
23
|
},
|
|
24
24
|
styles: [{
|
|
25
|
-
tag: _highlight.tags.comment,
|
|
25
|
+
tag: [_highlight.tags.meta, _highlight.tags.comment],
|
|
26
26
|
color: '#A2A9B5'
|
|
27
27
|
}, {
|
|
28
28
|
tag: [_highlight.tags.attributeName, _highlight.tags.keyword],
|
|
@@ -30,24 +30,25 @@ var sublime = (0, _codemirrorThemes.createTheme)({
|
|
|
30
30
|
}, {
|
|
31
31
|
tag: _highlight.tags["function"](_highlight.tags.variableName),
|
|
32
32
|
color: '#5AB0B0'
|
|
33
|
-
}, {
|
|
34
|
-
tag: _highlight.tags.typeOperator,
|
|
35
|
-
color: 'red'
|
|
36
33
|
}, {
|
|
37
34
|
tag: [_highlight.tags.string, _highlight.tags.regexp, _highlight.tags.attributeValue],
|
|
38
35
|
color: '#99C592'
|
|
39
36
|
}, {
|
|
40
37
|
tag: _highlight.tags.operator,
|
|
41
38
|
color: '#f47954'
|
|
42
|
-
}, {
|
|
39
|
+
}, // { tag: t.moduleKeyword, color: 'red' },
|
|
40
|
+
{
|
|
43
41
|
tag: [_highlight.tags.propertyName, _highlight.tags.typeName],
|
|
44
42
|
color: '#629ccd'
|
|
45
43
|
}, {
|
|
46
|
-
tag: [_highlight.tags.tagName],
|
|
44
|
+
tag: [_highlight.tags.tagName, _highlight.tags.modifier],
|
|
47
45
|
color: '#E35F63'
|
|
48
46
|
}, {
|
|
49
47
|
tag: [_highlight.tags.number, _highlight.tags.definition(_highlight.tags.tagName), _highlight.tags.className, _highlight.tags.definition(_highlight.tags.variableName)],
|
|
50
48
|
color: '#fbac52'
|
|
49
|
+
}, {
|
|
50
|
+
tag: [_highlight.tags.atom, _highlight.tags.bool, _highlight.tags.special(_highlight.tags.variableName)],
|
|
51
|
+
color: '#E35F63'
|
|
51
52
|
}]
|
|
52
53
|
});
|
|
53
54
|
exports.sublime = sublime;
|
package/cjs/index.js.map
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"styles",
|
|
17
17
|
"tag",
|
|
18
18
|
"t",
|
|
19
|
+
"meta",
|
|
19
20
|
"comment",
|
|
20
21
|
"color",
|
|
21
22
|
"attributeName",
|
|
22
23
|
"keyword",
|
|
23
24
|
"variableName",
|
|
24
|
-
"typeOperator",
|
|
25
25
|
"string",
|
|
26
26
|
"regexp",
|
|
27
27
|
"attributeValue",
|
|
@@ -29,15 +29,19 @@
|
|
|
29
29
|
"propertyName",
|
|
30
30
|
"typeName",
|
|
31
31
|
"tagName",
|
|
32
|
+
"modifier",
|
|
32
33
|
"number",
|
|
33
34
|
"definition",
|
|
34
|
-
"className"
|
|
35
|
+
"className",
|
|
36
|
+
"atom",
|
|
37
|
+
"bool",
|
|
38
|
+
"special"
|
|
35
39
|
],
|
|
36
40
|
"sources": [
|
|
37
41
|
"../src/index.ts"
|
|
38
42
|
],
|
|
39
43
|
"sourcesContent": [
|
|
40
|
-
"import { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\n\nexport const sublime = createTheme({\n theme: 'dark',\n settings: {\n background: '#303841',\n foreground: '#FFFFFF',\n caret: '#FBAC52',\n selection: '#4C5964',\n selectionMatch: '#3A546E',\n gutterBackground: '#303841',\n gutterForeground: '#FFFFFF70',\n lineHighlight: '#00000059',\n },\n styles: [\n { tag: t.comment, color: '#A2A9B5' },\n { tag: [t.attributeName, t.keyword], color: '#B78FBA' },\n { tag: t.function(t.variableName), color: '#5AB0B0' },\n { tag: t.
|
|
44
|
+
"import { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\n\nexport const sublime = createTheme({\n theme: 'dark',\n settings: {\n background: '#303841',\n foreground: '#FFFFFF',\n caret: '#FBAC52',\n selection: '#4C5964',\n selectionMatch: '#3A546E',\n gutterBackground: '#303841',\n gutterForeground: '#FFFFFF70',\n lineHighlight: '#00000059',\n },\n styles: [\n { tag: [t.meta, t.comment], color: '#A2A9B5' },\n { tag: [t.attributeName, t.keyword], color: '#B78FBA' },\n { tag: t.function(t.variableName), color: '#5AB0B0' },\n { tag: [t.string, t.regexp, t.attributeValue], color: '#99C592' },\n { tag: t.operator, color: '#f47954' },\n // { tag: t.moduleKeyword, color: 'red' },\n { tag: [t.propertyName, t.typeName], color: '#629ccd' },\n { tag: [t.tagName, t.modifier], color: '#E35F63' },\n { tag: [t.number, t.definition(t.tagName), t.className, t.definition(t.variableName)], color: '#fbac52' },\n { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#E35F63' },\n ],\n});\n"
|
|
41
45
|
],
|
|
42
|
-
"mappings": ";;;;;;;AAAA;;AACA;;AAEO,IAAMA,OAAO,GAAG,IAAAC,6BAAA,EAAY;EACjCC,KAAK,EAAE,MAD0B;EAEjCC,QAAQ,EAAE;IACRC,UAAU,EAAE,SADJ;IAERC,UAAU,EAAE,SAFJ;IAGRC,KAAK,EAAE,SAHC;I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,GAAG,EAAE,CAACC,eAAA,CAAEa,OAAH,EAAYb,eAAA,CAAEc,QAAd,CAAP;IAAgCX,KAAK,EAAE;EAAvC,CARM,EASN;IAAEJ,GAAG,EAAE,CAACC,eAAA,CAAEe,MAAH,EAAWf,eAAA,CAAEgB,UAAF,CAAahB,eAAA,CAAEa,OAAf,CAAX,EAAoCb,eAAA,CAAEiB,SAAtC,EAAiDjB,eAAA,CAAEgB,UAAF,CAAahB,eAAA,CAAEM,YAAf,CAAjD,CAAP;IAAuFH,KAAK,EAAE;EAA9F,CATM,EAUN;IAAEJ,GAAG,EAAE,CAACC,eAAA,CAAEkB,IAAH,EAASlB,eAAA,CAAEmB,IAAX,EAAiBnB,eAAA,CAAEoB,OAAF,CAAUpB,eAAA,CAAEM,YAAZ,CAAjB,CAAP;IAAoDH,KAAK,EAAE;EAA3D,CAVM;AAZyB,CAAZ,CAAhB"
|
|
43
47
|
}
|
package/esm/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export var sublime = createTheme({
|
|
|
13
13
|
lineHighlight: '#00000059'
|
|
14
14
|
},
|
|
15
15
|
styles: [{
|
|
16
|
-
tag: t.comment,
|
|
16
|
+
tag: [t.meta, t.comment],
|
|
17
17
|
color: '#A2A9B5'
|
|
18
18
|
}, {
|
|
19
19
|
tag: [t.attributeName, t.keyword],
|
|
@@ -21,24 +21,25 @@ export var sublime = createTheme({
|
|
|
21
21
|
}, {
|
|
22
22
|
tag: t.function(t.variableName),
|
|
23
23
|
color: '#5AB0B0'
|
|
24
|
-
}, {
|
|
25
|
-
tag: t.typeOperator,
|
|
26
|
-
color: 'red'
|
|
27
24
|
}, {
|
|
28
25
|
tag: [t.string, t.regexp, t.attributeValue],
|
|
29
26
|
color: '#99C592'
|
|
30
27
|
}, {
|
|
31
28
|
tag: t.operator,
|
|
32
29
|
color: '#f47954'
|
|
33
|
-
}, {
|
|
30
|
+
}, // { tag: t.moduleKeyword, color: 'red' },
|
|
31
|
+
{
|
|
34
32
|
tag: [t.propertyName, t.typeName],
|
|
35
33
|
color: '#629ccd'
|
|
36
34
|
}, {
|
|
37
|
-
tag: [t.tagName],
|
|
35
|
+
tag: [t.tagName, t.modifier],
|
|
38
36
|
color: '#E35F63'
|
|
39
37
|
}, {
|
|
40
38
|
tag: [t.number, t.definition(t.tagName), t.className, t.definition(t.variableName)],
|
|
41
39
|
color: '#fbac52'
|
|
40
|
+
}, {
|
|
41
|
+
tag: [t.atom, t.bool, t.special(t.variableName)],
|
|
42
|
+
color: '#E35F63'
|
|
42
43
|
}]
|
|
43
44
|
});
|
|
44
45
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"lineHighlight",
|
|
18
18
|
"styles",
|
|
19
19
|
"tag",
|
|
20
|
+
"meta",
|
|
20
21
|
"comment",
|
|
21
22
|
"color",
|
|
22
23
|
"attributeName",
|
|
23
24
|
"keyword",
|
|
24
25
|
"function",
|
|
25
26
|
"variableName",
|
|
26
|
-
"typeOperator",
|
|
27
27
|
"string",
|
|
28
28
|
"regexp",
|
|
29
29
|
"attributeValue",
|
|
@@ -31,15 +31,19 @@
|
|
|
31
31
|
"propertyName",
|
|
32
32
|
"typeName",
|
|
33
33
|
"tagName",
|
|
34
|
+
"modifier",
|
|
34
35
|
"number",
|
|
35
36
|
"definition",
|
|
36
|
-
"className"
|
|
37
|
+
"className",
|
|
38
|
+
"atom",
|
|
39
|
+
"bool",
|
|
40
|
+
"special"
|
|
37
41
|
],
|
|
38
42
|
"sources": [
|
|
39
43
|
"../src/index.ts"
|
|
40
44
|
],
|
|
41
45
|
"sourcesContent": [
|
|
42
|
-
"import { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\n\nexport const sublime = createTheme({\n theme: 'dark',\n settings: {\n background: '#303841',\n foreground: '#FFFFFF',\n caret: '#FBAC52',\n selection: '#4C5964',\n selectionMatch: '#3A546E',\n gutterBackground: '#303841',\n gutterForeground: '#FFFFFF70',\n lineHighlight: '#00000059',\n },\n styles: [\n { tag: t.comment, color: '#A2A9B5' },\n { tag: [t.attributeName, t.keyword], color: '#B78FBA' },\n { tag: t.function(t.variableName), color: '#5AB0B0' },\n { tag: t.
|
|
46
|
+
"import { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\n\nexport const sublime = createTheme({\n theme: 'dark',\n settings: {\n background: '#303841',\n foreground: '#FFFFFF',\n caret: '#FBAC52',\n selection: '#4C5964',\n selectionMatch: '#3A546E',\n gutterBackground: '#303841',\n gutterForeground: '#FFFFFF70',\n lineHighlight: '#00000059',\n },\n styles: [\n { tag: [t.meta, t.comment], color: '#A2A9B5' },\n { tag: [t.attributeName, t.keyword], color: '#B78FBA' },\n { tag: t.function(t.variableName), color: '#5AB0B0' },\n { tag: [t.string, t.regexp, t.attributeValue], color: '#99C592' },\n { tag: t.operator, color: '#f47954' },\n // { tag: t.moduleKeyword, color: 'red' },\n { tag: [t.propertyName, t.typeName], color: '#629ccd' },\n { tag: [t.tagName, t.modifier], color: '#E35F63' },\n { tag: [t.number, t.definition(t.tagName), t.className, t.definition(t.variableName)], color: '#fbac52' },\n { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#E35F63' },\n ],\n});\n"
|
|
43
47
|
],
|
|
44
|
-
"mappings": "AAAA,SAASA,IAAI,IAAIC,CAAjB,QAA0B,kBAA1B;AACA,SAASC,WAAT,QAA4B,wBAA5B;AAEA,OAAO,IAAMC,OAAO,GAAGD,WAAW,CAAC;EACjCE,KAAK,EAAE,MAD0B;EAEjCC,QAAQ,EAAE;IACRC,UAAU,EAAE,SADJ;IAERC,UAAU,EAAE,SAFJ;IAGRC,KAAK,EAAE,SAHC;IAIRC,SAAS,EAAE,SAJH;IAKRC,cAAc,EAAE,SALR;IAMRC,gBAAgB,EAAE,SANV;IAORC,gBAAgB,EAAE,WAPV;IAQRC,aAAa,EAAE;EARP,CAFuB;EAYjCC,MAAM,EAAE,CACN;IAAEC,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AE;EAAvC,CARM,EASN;IAAEH,GAAG,EAAE,CAACd,CAAC,CAAC8B,MAAH,EAAW9B,CAAC,CAAC+B,UAAF,CAAa/B,CAAC,CAAC4B,OAAf,CAAX,EAAoC5B,CAAC,CAACgC,SAAtC,EAAiDhC,CAAC,CAAC+B,UAAF,CAAa/B,CAAC,CAACqB,YAAf,CAAjD,CAAP;IAAuFJ,KAAK,EAAE;EAA9F,CATM,EAUN;IAAEH,GAAG,EAAE,CAACd,CAAC,CAACiC,IAAH,EAASjC,CAAC,CAACkC,IAAX,EAAiBlC,CAAC,CAACmC,OAAF,CAAUnC,CAAC,CAACqB,YAAZ,CAAjB,CAAP;IAAoDJ,KAAK,EAAE;EAA3D,CAVM;AAZyB,CAAD,CAA3B"
|
|
45
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uiw/codemirror-theme-sublime",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.5",
|
|
4
4
|
"description": "Theme sublime for CodeMirror.",
|
|
5
5
|
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/sublime",
|
|
6
6
|
"author": "kenny wong <wowohoo@qq.com>",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"cjs"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@uiw/codemirror-themes": "4.9.
|
|
24
|
+
"@uiw/codemirror-themes": "4.9.5"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"codemirror",
|
package/src/index.ts
CHANGED
|
@@ -14,14 +14,15 @@ export const sublime = createTheme({
|
|
|
14
14
|
lineHighlight: '#00000059',
|
|
15
15
|
},
|
|
16
16
|
styles: [
|
|
17
|
-
{ tag: t.comment, color: '#A2A9B5' },
|
|
17
|
+
{ tag: [t.meta, t.comment], color: '#A2A9B5' },
|
|
18
18
|
{ tag: [t.attributeName, t.keyword], color: '#B78FBA' },
|
|
19
19
|
{ tag: t.function(t.variableName), color: '#5AB0B0' },
|
|
20
|
-
{ tag: t.typeOperator, color: 'red' },
|
|
21
20
|
{ tag: [t.string, t.regexp, t.attributeValue], color: '#99C592' },
|
|
22
21
|
{ tag: t.operator, color: '#f47954' },
|
|
22
|
+
// { tag: t.moduleKeyword, color: 'red' },
|
|
23
23
|
{ tag: [t.propertyName, t.typeName], color: '#629ccd' },
|
|
24
|
-
{ tag: [t.tagName], color: '#E35F63' },
|
|
24
|
+
{ tag: [t.tagName, t.modifier], color: '#E35F63' },
|
|
25
25
|
{ tag: [t.number, t.definition(t.tagName), t.className, t.definition(t.variableName)], color: '#fbac52' },
|
|
26
|
+
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#E35F63' },
|
|
26
27
|
],
|
|
27
28
|
});
|