Skip to content

Commit

Permalink
Merge pull request #708 from oddbird/sass-colors
Browse files Browse the repository at this point in the history
Fix sass color errors
  • Loading branch information
mirisuzanne committed Sep 30, 2024
2 parents a0ccec1 + dc9e24f commit 781211c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/scss/config/color/_config.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
@use '../tools';
@use 'brand';

@function _hsl-hue-number($color) {
@return math.div(color.channel($color, 'hue', $space: hsl), 1deg);
}

/// ## Color Config
/// ---------------
/// Accoutrement maps for storing global color tokens,
Expand All @@ -23,9 +27,9 @@
/// @access private
/// @group config-color
$_hues: (
'prime': math.div(color.hue(brand.$brand-blue), 1deg),
'accent': math.div(color.hue(brand.$brand-pink), 1deg),
'special': math.div(color.hue(brand.$brand-orange), 1deg),
'prime': _hsl-hue-number(brand.$brand-blue),
'accent': _hsl-hue-number(brand.$brand-pink),
'special': _hsl-hue-number(brand.$brand-orange),
'neutral': null,
);

Expand Down

0 comments on commit 781211c

Please sign in to comment.