Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 897 Bytes

themes.md

File metadata and controls

25 lines (15 loc) · 897 Bytes

Themes

Bundled Themes

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.

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:

import { codeToHtml } from 'shiki'

const html = codeToHtml('console.log("Hello World")', {
  lang: 'javascript',
  theme: 'none', // [!code hl]
})