Learn how to create and use custom themes in your projects.
theme()
use Phiki\Phiki; $phiki = (new Phiki) ->theme('my-theme', '/path/to/my-theme.json');
Theme::parse()
use Phiki\Phiki; use Phiki\Theme\Theme; $phiki = (new Phiki) ->theme('my-theme', Theme::parse([ 'name' => 'my-theme', 'colors' => [ // ... ], 'tokenColors' => [ // ... ] ]));
Phiki\Theme\Theme
$html = (new Phiki) ->theme('my-theme', '/path/to/my-theme.json') ->codeToHtml('Your code here...', Grammar::Php, 'my-theme') ->toString();