Issues (576)

src/styles/functions.scss (5 issues)

Severity
1
/// Slightly lighten a color
2
/// @access public
3
/// @param {Color} $color - color to tint
4
/// @param {Number} $percentage - percentage of `$color` in returned color
5
/// @return {Color}
6
7
@function tint($color, $percentage) {
8
  @return mix(white, $color, $percentage);
0 ignored issues
show
Color literals like white should only be used in variable declarations; they should be referred to via variable everywhere else.
Loading history...
Color white should be written in hexadecimal form as #ffffff
Loading history...
9
}
10
11
/// Slightly darken a color
12
/// @access public
13
/// @param {Color} $color - color to shade
14
/// @param {Number} $percentage - percentage of `$color` in returned color
15
/// @return {Color}
16
17
@function shade($color, $percentage) {
18
  @return mix(black, $color, $percentage);
0 ignored issues
show
Color black should be written in hexadecimal form as #000000
Loading history...
Color literals like black should only be used in variable declarations; they should be referred to via variable everywhere else.
Loading history...
19
}
0 ignored issues
show
Files should end with a trailing newline
Loading history...