Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a theme #28

Open
sunningoo opened this issue Aug 8, 2017 · 3 comments
Open

How to add a theme #28

sunningoo opened this issue Aug 8, 2017 · 3 comments

Comments

@sunningoo
Copy link

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.

@Terry-bear
Copy link

Terry-bear commented Aug 14, 2017

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

@gadfly3173
Copy link

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.

@Terry-bear
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants