Themes
Bundled Themes
Themes listed below are re-distributed via tm-themes
into the shikiji
package.
Name | ID | Preview |
---|---|---|
Vitesse Dark | vitesse-dark |
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.
Special Themes
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:
ts
import { codeToHtml } from 'shikiji'
const html = codeToHtml('console.log("Hello World")', {
lang: 'javascript',
theme: 'none',
})