-1

I am working onto a page using sass and Bootstrap 4 but then the css is not being applied.

My folder structure:

scss 
   styles.scss
   styles.css
   styles.css.map
node_modules 
   all sass n bootstrap files
layout.html
package-lock

In my styles.scss I have the following:

$primary: #3498db;
$secondary: #e67e22;
$success: #2eeeff;
$danger: #e74c3c;

@import "../node_modules/bootstrap/scss/bootstrap.scss";

/*# sourceMappingURL=styles.css.map */

On my layouts I have:

<link href="scss/styles.scss" rel="stylesheet" />

or

<link href="scss/styles.css" rel="stylesheet" />

My button code:

<div class="col-md-auto col-4">
   <button class="btn btn-lg btn-primary mr-1">Primary</button>
</div>
<div class="col-md-auto col-4">
   <button class="btn btn-lg .btn-success">Primary Outline</button>
</div>
<div class="col-md-auto col-4">
   <button class="btn btn-lg .btn-danger">Primary Active</button>
</div>

But my styles.scss is not applied to any of my buttons.

If I use:

<link href="scss/styles.css" rel="stylesheet" />

Then it applies only the Bootstrap, not the .scss stylings. Any help is appreciated, please let me know where I am going wrong.

Arkellys
  • 5,562
  • 2
  • 16
  • 40
Tested
  • 761
  • 4
  • 16
  • 38

1 Answers1

-1

thanks everyone for your great help the following worked cheers :)

 $body-bg: #e2322e;
 $body-color: #111;
 $theme-colors: (
"primary": #ffffff,
"success": #000000
);
Tested
  • 761
  • 4
  • 16
  • 38