v5: Sass btn-primary color: #000 is incorrect when NPM RUN DEV or NPM RUN PRODUCTION
See original GitHub issueIf I do btn-dark, btn-secondary, etc… the color is white or #fff but when I do btn-primary the font is black.
I did:
npm install bootstrap@next
npm run dev or production
my app.scss
// Bootstrap
@import '~bootstrap/scss/bootstrap';
my index.html
<button type="submit" class="btn btn-primary">
Register
</button>
Issue Analytics
- State:
- Created 3 years ago
- Comments:24 (8 by maintainers)
Top Results From Across the Web
Wrong output on 'npm run prod' - css - Stack Overflow
I understand that it took the border-width , border-style and border-color parts of the variables and put them into a single property that...
Read more >@fishawack/core - npm
Bundles the app in production mode. npm run production. Deploy. Transfers the build to a server based on which branch you're currently on....
Read more >Getting Started with Bootstrap 5, React, and Sass - Designmodo
To use Bootstrap 5 with React JS, we need to install it via npm by running the command below on our terminal. npm...
Read more >Npm run start not working, No configuration provided for main ...
I've been working on a project for quite some time with sage 9.0.9 and it's been working great. A couple of days ago...
Read more >ASP.NET Core, Angular with Webpack and Visual Studio
"watch-webpack-dev" : "webpack --env=dev --watch --color" ,. "watch-webpack-production" : "npm run build-production --watch --color" ,.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well… you all are correct. I just started looking at the _variables.scss file in the node_modules directory vs in my app’s directory and that’s where the color changed happened. I overwrote the values in the app’s scss file and presto… back to normal bootstrap colors.
I’m using Laravel and not sure how those colors got whacked.
Thank you for hanging in there with me and showing me. That helped a bunch.
If I do NPM RUN DEVELOPMENT or PRODUCTION I am seeing this: