V4.beta Argument `$color` of `darken($color, $amount)` must be a color
See original GitHub issueI have update bootstrap to 4.0.0-beta, and i get this error while compiling:
$link-hover-color: darken($link-color, 15%) !default;
^
Argument $color
of darken($color, $amount)
must be a color
Backtrace:
node_modules/bootstrap/scss/_variables.scss:168, in function darken
node_modules/bootstrap/scss/_variables.scss:168
Issue Analytics
- State:
- Created 6 years ago
- Reactions:21
- Comments:30 (5 by maintainers)
Top Results From Across the Web
Argument `$color` of `darken($color, $amount)` must be a ...
I hit this issue. All that was required was to import functions before my other imports: @import '../.
Read more >Argument `$color` of `darken($color, $amount)` must be a ...
Argument `$color` of `darken($color, $amount)` must be a color Bootstrap 4 Angular 6. Attempting to use Bootstrap 4 a la carte in my...
Read more >Error with sass - Argument `$color` of `darken($color, $amount ...
Error with sass - Argument `$color` of `darken($color, $amount)` must be a color. I've moved my colour variables into the $colors map within ......
Read more >Brighten or darken colormap - MATLAB brighten - MathWorks
The colors brighten when beta is between 0 and 1 , and they darken when beta is between -1 and 0 . The...
Read more >CSS Color Module Level 4 - W3C
Opacity in CSS is typically represented using the <alpha-value> syntax, for example in the opacity property or as the alpha component in a...
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 Free
Top 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
@derkjn you need to import the functions scss before variables
@maxkorz I was working on splitting out my styles and the vendor styles when this started happening. I couldn’t figure out for a while why it was suddenly complaining, but after following the stack trace carefully, I think I found the culprit.
My app.scss just pulls in the Bootstrap variables so I can use them in my own styles for the time being, so I had to make sure I was pulling the functions in first then my own stuff, like so:
Then in my vendor stylesheet, I just pulled in Bootstrap like normal: