VuePress Import Bootstrap Scss Change Primary Color (Theme)

Install Sass

yarn add -D sass-loader node-sass

Edit docs/.vuepress/styles/index.scss.

$theme-colors: (  "primary": #AAD6C1);// Bootstrap and its default variables@import "node_modules/bootstrap/scss/bootstrap";

Edit docs/.vuepress/enhanceApp.js.

import './styles/index.scss';export default ({  Vue, // the version of Vue being used in the VuePress app  options, // the options for the root Vue instance  router, // the router instance for the app  siteData // site metadata}) => {}

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.