|
1 |
| -const prismPresetDictionary = { |
2 |
| - dracula: '@theme-ui/prism/presets/dracula.json', |
3 |
| - 'duotone-dark': '@theme-ui/prism/presets/duotone-dark.json', |
4 |
| - 'duotone-light': '@theme-ui/prism/presets/duotone-light.json', |
5 |
| - github: '@theme-ui/prism/presets/github.json', |
6 |
| - 'night-owl-light': '@theme-ui/prism/presets/night-owl-light.json', |
7 |
| - 'night-owl': '@theme-ui/prism/presets/night-owl.json', |
8 |
| - 'oceanic-next': '@theme-ui/prism/presets/oceanic-next.json', |
9 |
| - 'prism-coy': '@theme-ui/prism/presets/prism-coy.json', |
10 |
| - 'prism-dark': '@theme-ui/prism/presets/prism-dark.json', |
11 |
| - 'prism-funky': '@theme-ui/prism/presets/prism-funky.json', |
12 |
| - 'prism-solarizedlight': '@theme-ui/prism/presets/prism-solarizedlight.json', |
13 |
| - 'prism-tomorrow': '@theme-ui/prism/presets/prism-tomorrow.json', |
14 |
| - 'prism-twilight': '@theme-ui/prism/presets/prism-twilight.json', |
15 |
| - prism: '@theme-ui/prism/presets/prism.json', |
16 |
| - 'shades-of-purple': '@theme-ui/prism/presets/shades-of-purple.json', |
17 |
| - 'theme-ui': '@theme-ui/prism/presets/theme-ui.json', |
18 |
| - ultramin: '@theme-ui/prism/presets/ultramin.json', |
19 |
| - 'vs-dark': '@theme-ui/prism/presets/vs-dark.json', |
20 |
| -} |
| 1 | +const prismPresetDictionary = require(`./utils/preset-dictionary`) |
21 | 2 |
|
22 | 3 | exports.onPreInit = (__, options) => {
|
23 | 4 | if (prismPreset in prismPresetDictionary) {
|
|
0 commit comments