pengzhanbo / vuepress-theme-plume

Vuepress Theme. A simple, feature-rich, document & blog
https://theme-plume.vuejs.press
MIT License
48 stars 11 forks source link

Is Custom Styles Overriding Still Available? #87

Closed KrLite closed 4 weeks ago

KrLite commented 4 weeks ago

I wanted to override some default provided css styles (mainly the accent color like --vp-c-brand-X), but end up failing after these tries:

  1. Using a index.scss file at /docs/.vuepress/styles/index.scss as mentioned here (this document contains broken links).
  2. Using a palette.scss file at /docs/.vuepress/styles/palette.scss.
  3. Using a palette.styl file at /docs/.vuepress/styles/palette.styl as in VuePress 1.
  4. Using something similar to a custom.css file used in a regular Vue (Vite) app.

I wonder if the ability to introduce custom styles globally still available, and if there's a document I can refer to.

pengzhanbo commented 4 weeks ago

I am sorry for the errors and omissions in this section of the document. I have now updated the document, and you can refer to the new document for a custom style.

KrLite commented 4 weeks ago

I am sorry for the errors and omissions in this section of the document. I have now updated the document, and you can refer to the new document for a custom style.

Thanks for the quick response! The new document solves the problem.