tolking / vuepress-theme-default-prefers-color-scheme

add prefers-color-scheme for vuepress default theme
https://tolking.github.io/vuepress-theme-default-prefers-color-scheme
MIT License
50 stars 8 forks source link

Missing variables #17

Closed jrappen closed 4 years ago

jrappen commented 4 years ago

Hello @tolking,

could you add some variables (for me) to your theme?

Found these missing while looking at @vuepress/core/lib/client/style/config.styl:

Found these missing while testing your theme and looking at styles/palette.styl:

Thanks!

tolking commented 4 years ago

add

about

modify in this way

// .vuepress -> styles -> index.styl
:root
  --lighten10AccentColor #ff0000
  --lighten10TextColor #777777
  //...
  @media (prefers-color-scheme dark)
    --lighten10AccentColor #ffff00
    --lighten10TextColor #aaaaaa
    //...