feat: Resolve all deprecation warnings for sass
- Replace @import with @use and @forward - Only color function is used in _basic.scss for now - Change _all.scss to _index.scss - Modules use direct dependencies - Move @include from _config.scss to _common.scss, this was a long term mistake - Remove $color_list - Change basic_color()
This commit is contained in:
parent
867e96ea0a
commit
4e4f8814d3
26 changed files with 476 additions and 420 deletions
|
|
@ -1,3 +0,0 @@
|
|||
@import "color";
|
||||
@import "shade";
|
||||
@import "tint";
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
@use "sass:map";
|
||||
@use "sass:color";
|
||||
|
||||
@use "../global/config";
|
||||
|
||||
@function createColorMap($color, $percentage, $opacity) {
|
||||
$map: (
|
||||
base: $color,
|
||||
|
|
@ -11,6 +13,6 @@
|
|||
@return $map;
|
||||
}
|
||||
|
||||
@function basic_color($key: 'alpha') {
|
||||
@return map.get($color_palette, $key);
|
||||
@function basic_color($key: 'alpha', $map: config.$color_palette) {
|
||||
@return map.get($map, $key);
|
||||
}
|
||||
|
|
|
|||
3
functions/_index.scss
Normal file
3
functions/_index.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@use "color" as *;
|
||||
@use "shade";
|
||||
@use "tint";
|
||||
Loading…
Add table
Add a link
Reference in a new issue