In my current application, I am utilizing bootstrap and aiming to solely customize the primary color in the provided scss file below:
// Custom.scss
$theme-colors: (
"primary": #243B55
);
// Option A: Include all of Bootstrap
@import "../node_modules/bootstrap/scss/bootstrap";
My intention is to keep the standard customizations offered by bootstrap while only changing the primary color. However, importing the entire bootstrap library using the last line will result in a CSS file with unnecessary code, potentially slowing down my application. To address this, I am considering importing only essential components to override the primary color and including the rest of the bootstrap library via a CDN (
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
). However, I am unsure of the specific elements that need to be imported in my scss file for this purpose (referencing https://getbootstrap.com/docs/4.0/getting-started/theming/ provides a list but lacks clarity). If this approach is indeed effective in optimizing the application's performance, what would be required to import in the scss file at the bottom to ensure only the primary color is customized?