Skip to content

Commit

Permalink
Address deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Nov 8, 2024
1 parent cad3b06 commit bb29f5a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 22 deletions.
2 changes: 0 additions & 2 deletions scss/config/_abstracts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
/// Use `get-function()` to capture a first-class function,
/// or use a string to reference existing functions and alias-keys
$functions: (
'darken': meta.get-function('darken'),
'desaturate': meta.get-function('desaturate'),
'rgba': meta.get-function('rgba'),
'convert': '#convert-units',
);
Expand Down
12 changes: 9 additions & 3 deletions scss/config/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,23 @@ $neutral-colors: (
'light-gray': '#brand-blue'
(
'tint': 80%,
'desaturate': 80%,
'color.scale': (
'saturation': -80%,
),
),
'gray': '#brand-blue'
(
'desaturate': 80%,
'color.scale': (
'saturation': -80%,
),
),
'contrast-light': #fff,
'contrast-dark': '#brand-blue'
(
'shade': 30% #000,
'desaturate': 80%,
'color.scale': (
'saturation': -80%,
),
),
);

Expand Down
24 changes: 15 additions & 9 deletions scss/samples/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,22 @@ $demo-noncolors: (
'light-gray': '#brand-blue'
(
'tint': 80%,
'desaturate': 80%,
'color.scale': (
'saturation': -80%,
),
),
'gray': '#brand-blue'
(
'desaturate': 80%,
'color.scale': (
'saturation': -80%,
),
),
'contrast-dark': '#brand-blue'
(
'shade': 30% #000,
'desaturate': 80%,
'color.scale': (
'saturation': -80%,
),
),
);

Expand All @@ -225,9 +231,9 @@ $demo-noncolors: (
///
/// ```scss
/// $demo-noncolors: (
/// 'light-gray': '#brand-blue' ('tint': 80%, 'desaturate': 80%),
/// 'gray': '#brand-blue' ('desaturate': 80%),
/// 'contrast-dark': '#brand-blue' ('shade': 30% #000, 'desaturate': 80%),
/// 'light-gray': '#brand-blue' ('tint': 80%, 'color.scale': ('saturation': -80%),),
/// 'gray': '#brand-blue' ('color.scale': ('saturation': -80%),),
/// 'contrast-dark': '#brand-blue' ('shade': 30% #000, 'color.scale': ('saturation': -80%),),
/// );
/// ```
///
Expand All @@ -254,9 +260,9 @@ $demo-noncolors: (
///
/// herman.$herman: ();
/// $demo-noncolors: (
/// 'light-gray': '#brand-blue' ('tint': 80%, 'desaturate': 80%),
/// 'gray': '#brand-blue' ('desaturate': 80%),
/// 'black': '#brand-blue' ('shade': 30%, 'desaturate': 80%),
/// 'light-gray': '#brand-blue' ('tint': 80%, 'color.scale': ('saturation': -80%),),
/// 'gray': '#brand-blue' ('color.scale': ('saturation': -80%),),
/// 'black': '#brand-blue' ('shade': 30%, 'color.scale': ('saturation': -80%),),
/// );
///
/// $compiled: herman.each-key(
Expand Down
4 changes: 2 additions & 2 deletions scss/utilities/_maps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
/// herman.$herman: ();
/// $brand-colors: (
/// 'brand-blue': hsl(195, 85%, 35%),
/// 'light-gray': '#brand-blue' ('tint': 80%, 'desaturate': 80%),
/// 'light-gray': '#brand-blue' ('tint': 80%, 'color.scale': ('saturation': -80%),),
/// );
/// $brand-compiled: herman.each-key(
/// $brand-colors,
Expand Down Expand Up @@ -160,7 +160,7 @@
/// $brand-colors: (
/// 'brand-orange': hsl(24, 100%, 39%),
/// 'brand-blue': hsl(195, 85%, 35%),
/// 'light-gray': 'brand-blue' ('tint': 80%, 'desaturate': 80%),
/// 'light-gray': 'brand-blue' ('tint': 80%, 'color.scale': ('saturation': -80%),),
/// );
/// $compiled: herman.each-key($brand-colors, meta.get-function('color', $module: 'tools'));
///
Expand Down
7 changes: 1 addition & 6 deletions test/sass/utilities/_maps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
@use 'sass:map';
@use 'sass:meta';
@use 'pkg:sass-true' as true;
@use 'pkg:accoutrement' as tools with (
$functions: (
'darken': meta.get-function('darken'),
'desaturate': meta.get-function('desaturate'),
)
);
@use 'pkg:accoutrement' as tools;
@use '../../../scss/utilities/json-api' as *;
@use '../../../scss/utilities/maps' as *;

Expand Down

0 comments on commit bb29f5a

Please sign in to comment.