987 B
987 B
gitbook-plugin-prism-themes
This repository is gitbook plugin for prism-themes.
It provides additional themes when using gitbook-plugin-prism。
Usage
-
Add the plugin to your
book.json
, and disable default GitBook code highlighting:{ "plugins": ["-highlight", "prism", "prism-themes"] }
-
Install the plugins
gitbook install
-
Update
gitbook-plugin-prism
's configuration, override default styles:"pluginsConfig": { "prism": { "css": [ "prism-themes/themes/prism-duotone-dark.css" ] } }
All css files must reside in the same folder. The css file's root path is
${yourBookDir}/node_modules/
. The NPM moduleprism-themes
is an dependency of this plugin.
License
Apache 2