shikiphp

Themes

shikiphp bundles the full Shiki theme set — all 65 VS Code themes from tm-themes. Popular ids include github-dark, github-light, nord, dracula, vitesse-dark, vitesse-light, one-dark-pro, monokai, solarized-dark, and the catppuccin-* and material-theme-* families.

Use a single theme with the theme option, or two (or more) with themes for light/dark CSS-variable output. See Getting Started.

Listing the bundled themes

From PHP:

use Shikiphp\Shikiphp;

$highlighter = Shikiphp::highlighter();

$highlighter->bundledThemes(); // list<string> — ids shipped in the box
$highlighter->loadedThemes();  // list<string> — bundled plus any you registered

Or from the command line:

vendor/bin/shikiphp themes

Adding your own

Register a custom VS Code theme JSON with loadTheme. See Custom languages and themes.

On this page