Skip to content

Commit 84980d3

Browse files
committed
reduce debug messages for SCSS palette creation
1 parent c41aae2 commit 84980d3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/configuration/_palettes.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
@error "Need at least 1 color to create color tints.";
2020
}
2121

22-
@debug "Got only #{$count-colors} tints: #{$colorset}";
22+
// we asume that it correct to give only start and end of tint weights
23+
// only echo debug message if we have a 1, 3 or 4 color values
24+
@if $count-colors != 2 {
25+
@debug "Got only #{$count-colors} tints: #{$colorset}";
26+
}
2327

2428
$color-tint-start: rgb(
2529
color.red(list.nth($colorset, 1)),
@@ -45,7 +49,10 @@
4549

4650
$colorset-fallback: list.append($colorset-fallback, $color-tint-end);
4751

48-
@debug "Create fallback with #{$colorset-steps} tints: #{$colorset-fallback}";
52+
@if $count-colors != 2 {
53+
@debug "Create fallback with #{$colorset-steps} tints: #{$colorset-fallback}";
54+
}
55+
4956
@return $colorset-fallback;
5057
}
5158

0 commit comments

Comments
 (0)