Themes listed below are re-distributed via tm-themes
into the shiki
package.
Themes are covered by their repositories’ respective licenses, which are permissive (apache-2.0, mit, etc), and made available in this NOTICE.
For loading your custom themes, please reference to this guide.
You can set theme to none
to bypass highlighting. This is useful as the fallback when you receive user specified theme names that are not available. For example:
import { codeToHtml } from 'shiki'
const html = codeToHtml('console.log("Hello World")', {
lang: 'javascript',
theme: 'none', // [!code hl]
})