hexo-prism-plugin icon indicating copy to clipboard operation
hexo-prism-plugin copied to clipboard

How to add a theme

Open sunningoo opened this issue 7 years ago • 3 comments

I want to add a style sheet, I new a css file named "prism-sub-dark.css" and change some colors, and then I changed "_config.yml" like below:

prism_plugin: mode: 'preprocess' # realtime/preprocess theme: 'sub-dark' line_number: false

but it didn't works, if I need change another settings? Thank you.

sunningoo avatar Aug 08 '17 04:08 sunningoo

我在config里面配置了markdown主题样式,但是显示不出来。 config的配置是没有问题的,静态页面用的是```+``` 的形式。

Terry-bear avatar Aug 14 '17 10:08 Terry-bear

Maybe this is a too late reply. You can use yarn or npm add a package named 'prism-themes'.It has many themes can be used in this plugin.And you can also make your own customized theme with its guide.

gadfly3173 avatar Apr 08 '20 16:04 gadfly3173

@gadfly3173 It's been solved. It's really too late reply😹

Terry-bear avatar Apr 09 '20 02:04 Terry-bear