export type TVSCode =
| 'dark-plus'
| 'light-plus'
| 'monokai'
| 'solarized-dark'
| 'solarized-light'
export type TMaterial =
| 'material-theme-darker'
| 'material-theme-default'
| 'material-theme-lighter'
| 'material-theme-ocean'
| 'material-theme-palenight'
export type TNice = 'nord' | 'min-light' | 'min-dark'
export type TTheme = TVSCode | TMaterial | TNice
const shiki = require('shiki')
const t = shiki.loadTheme('./my-theme.json')
shiki.getHighlighter({
theme: t
})
First, please open an issue to discuss including a new theme.
Here are the places you need to change:
- /scripts/pullThemesFromGitHub.js
yarn update:themes
- ./src/index.ts
- ./src/types.ts
- Literal Values