forked from shikijs/shiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththemeSources.ts
106 lines (102 loc) · 3.81 KB
/
themeSources.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/**
* All themes in vscode are copied over, with some transformations
*/
/**
* Remove these themes bundled in vscode
*/
export const vscodeThemesToRemove = [
// Included in dark_plus
'dark_vs',
// Included in light_plus
'light_vs',
'Red-color-theme',
'dimmed-monokai-color-theme',
'kimbie-dark-color-theme',
'quietlight-color-theme',
'abyss-color-theme',
'hc_black',
'tomorrow-night-blue-color-theme'
]
/**
* Rename these themes bundled in vscode
*/
export const vscodeThemesToRename = {
dark_plus: 'dark-plus',
light_plus: 'light-plus',
'monokai-color-theme': 'monokai',
'solarized-dark-color-theme': 'solarized-dark',
'solarized-light-color-theme': 'solarized-light'
}
/**
* All theme sources on github.com.
*
* To add one:
* - Add the URL to the end
* - Run `yarn update:themes`, examine the changes
*
* The theme id is normalized from the `name` key of the theme json file.
* When the theme provides an undesirable name (or no `name` key), for example `Slack Theme Dark Mode` at
* https://github.com/slack-theme/visual-studio-code/blob/f4c3c57d35b89874de3c96df551d6809a30a82d7/themes/dark-mode.json#L2
* provide an array like `['slack-dark', '<url>']` to name the theme `slack-dark`
*/
export const githubThemeSources: (string | [string, string])[] = [
[
'nord',
'https://github.com/arcticicestudio/nord-visual-studio-code/blob/develop/themes/nord-color-theme.json'
],
'https://github.com/misolori/min-theme/blob/master/themes/min-light.json',
'https://github.com/misolori/min-theme/blob/master/themes/min-dark.json',
[
'slack-ochin',
'https://github.com/slack-theme/visual-studio-code/blob/master/themes/ochin.json'
],
[
'slack-dark',
'https://github.com/slack-theme/visual-studio-code/blob/master/themes/dark-mode.json'
],
[
'poimandres',
'https://github.com/drcmda/poimandres-theme/blob/main/themes/poimandres-color-theme.json'
],
[
'minimus',
'https://github.com/spaceinvadev/minimus-vscode-theme/blob/main/themes/minimus-color-theme.json'
],
[
'alternight',
'https://github.com/spaceinvadev/alternight-vscode-theme/blob/main/themes/alternight-color-theme.json'
]
]
/**
* Themes from VS Code marketplace
* Some themes have compilation step and do not include the built theme on GitHub,
* so pull from VS Code marketplace instead.
*
* Key is publisher + extId
* Value is a list. Each item represents a file to extract from the downloaded VSIX.
* If given a single path `extension/foo/bar.json`, extract `bar.json` to `tmp/themes/bar.json`
* If given ['baz.json', `extension/foo/bar.json`], extract `bar.json` to `tmp/themes/baz.json`
*/
export const marketplaceThemeSources: { [extPublisherAndId: string]: (string | string[])[] } = {
'equinusocio.vsc-material-theme': [
['material-darker.json', 'extension/build/themes/Material-Theme-Darker.json'],
['material-default.json', 'extension/build/themes/Material-Theme-Default.json'],
['material-lighter.json', 'extension/build/themes/Material-Theme-Lighter.json'],
['material-ocean.json', 'extension/build/themes/Material-Theme-Ocean.json'],
['material-palenight.json', 'extension/build/themes/Material-Theme-Palenight.json']
],
'dracula-theme.theme-dracula': [
['dracula.json', 'extension/theme/dracula.json'],
['dracula-soft.json', 'extension/theme/dracula-soft.json']
],
'GitHub.github-vscode-theme': [
['github-dark-dimmed.json', 'extension/themes/dark-dimmed.json'],
['github-dark.json', 'extension/themes/dark-default.json'],
['github-light.json', 'extension/themes/light-default.json']
],
'antfu.theme-vitesse': [
['vitesse-dark.json', 'extension/themes/vitesse-dark.json'],
['vitesse-light.json', 'extension/themes/vitesse-light.json']
],
'zhuangtongfa.material-theme': [['one-dark-pro.json', 'extension/themes/OneDark-Pro.json']]
}