myst729 / Vuelog

A backend-free blog system built on top of Vue.js
https://vuelog.js.org/
MIT License
266 stars 39 forks source link

Prismjs with color theme option #30

Closed ocampogeric closed 5 years ago

ocampogeric commented 6 years ago

Hi @myst729, I'm trying to add multi theme support in Vuelog by defined database.js attribute, but I can't get it work.

I tried with import css, and doesn't work. Can you say me, where you define de default theme? I can't understand :cry:

P.S. I notice you change highlight to prismjs, I use in my personal site 2.11.1 and in that case I change styles directly, but now I want add this option by attribute.

ocampogeric commented 6 years ago

I read about babel-plugin-prismjs but I can't get it work. :(

myst729 commented 6 years ago

Code highlighting styles are hard-coded.

https://github.com/myst729/Vuelog/blob/master/src/assets/styles/highlight.styl

I didn't think of making it themable in the beginning. This might be a good amount of work.