libs/design/scss/theming/_configure-palette.scss
@use 'sass:map';
@use 'get-color';
// @docs
//
// Configures the default color of a palette. It will set the
// "default" to 60 if $hue isn't specified.
//
// @usage
// ```scss
// daff-configure-palette($daff-yellow, 50);
// ```
@function daff-configure-palette($color-palette, $hue: 60) {
@return map.merge(
$color-palette,
(
'default': get-color.daff-color($color-palette, $hue)
)
);
}