Skip to content

Commit 65e4f25

Browse files
committed
Use lib.deep-get instead of map.get
1 parent 981c984 commit 65e4f25

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/styles/partials/_variables.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@use "sass:list";
2-
@use "sass:map";
32

43
@use "lib";
54

@@ -8,7 +7,7 @@
87
@use "json:colors" as *;
98

109
@function color($color) {
11-
@return map.get($colors, $color);
10+
@return lib.deep-get($colors, $color);
1211
}
1312

1413
// Fonts
@@ -25,7 +24,7 @@ $_fonts: (
2524
);
2625

2726
@function font($font) {
28-
@return map.get($_fonts, $font);
27+
@return lib.deep-get($_fonts, $font);
2928
}
3029

3130
// Sizes
@@ -46,7 +45,7 @@ $_units: (
4645
);
4746

4847
@function size($size, $unit: "rem") {
49-
@return list.nth($_sizes, $size) + map.get($_units, $unit);
48+
@return list.nth($_sizes, $size) + lib.deep-get($_units, $unit);
5049
}
5150

5251
// Constants

0 commit comments

Comments
 (0)