11@use ' sass:map' ;
22@use ' sass:string' ;
3+ @use ' sass:color' ;
34
45$j-globals : (
56 ' font-family' : ' Arial, sans-serif' ,
@@ -34,15 +35,15 @@ $tokens: (
3435 ' j-default' : (
3536 ' font-family' : map .get ($j-globals , ' font-family' ),
3637 ' accent' : map .get ($j-globals , ' accent' ),
37- ' accent-alt' : mix (map .get ($j-globals , ' accent' ), #000 , 90% ),
38+ ' accent-alt' : color . mix (map .get ($j-globals , ' accent' ), #000 , 90% ),
3839 ' info' : map .get ($j-globals , ' blue' ),
39- ' info-alt' : mix (map .get ($j-globals , ' blue' ), #000 , 90% ),
40+ ' info-alt' : color . mix (map .get ($j-globals , ' blue' ), #000 , 90% ),
4041 ' error' : map .get ($j-globals , ' red' ),
41- ' error-alt' : mix (map .get ($j-globals , ' red' ), #000 , 90% ),
42+ ' error-alt' : color . mix (map .get ($j-globals , ' red' ), #000 , 90% ),
4243 ' warning' : map .get ($j-globals , ' yellow' ),
43- ' warning-alt' : mix (map .get ($j-globals , ' yellow' ), #000 , 90% ),
44+ ' warning-alt' : color . mix (map .get ($j-globals , ' yellow' ), #000 , 90% ),
4445 ' success' : map .get ($j-globals , ' green' ),
45- ' success-alt' : mix (map .get ($j-globals , ' green' ), #000 , 90% ),
46+ ' success-alt' : color . mix (map .get ($j-globals , ' green' ), #000 , 90% ),
4647 ' bg' : map .get ($j-globals , ' grey-50' ),
4748 ' bg1' : map .get ($j-globals , ' grey-75' ),
4849 ' bg2' : map .get ($j-globals , ' grey-100' ),
@@ -60,15 +61,15 @@ $tokens: (
6061 ' j-dark' : (
6162 ' font-family' : map .get ($j-globals , ' font-family' ),
6263 ' accent' : map .get ($j-globals , ' accent' ),
63- ' accent-alt' : mix (map .get ($j-globals , ' accent' ), #fff , 90% ),
64+ ' accent-alt' : color . mix (map .get ($j-globals , ' accent' ), #fff , 90% ),
6465 ' info' : map .get ($j-globals , ' blue' ),
65- ' info-alt' : mix (map .get ($j-globals , ' blue' ), #fff , 90% ),
66+ ' info-alt' : color . mix (map .get ($j-globals , ' blue' ), #fff , 90% ),
6667 ' error' : map .get ($j-globals , ' red' ),
67- ' error-alt' : mix (map .get ($j-globals , ' red' ), #fff , 90% ),
68+ ' error-alt' : color . mix (map .get ($j-globals , ' red' ), #fff , 90% ),
6869 ' warning' : map .get ($j-globals , ' yellow' ),
69- ' warning-alt' : mix (map .get ($j-globals , ' yellow' ), #fff , 90% ),
70+ ' warning-alt' : color . mix (map .get ($j-globals , ' yellow' ), #fff , 90% ),
7071 ' success' : map .get ($j-globals , ' green' ),
71- ' success-alt' : mix (map .get ($j-globals , ' green' ), #fff , 90% ),
72+ ' success-alt' : color . mix (map .get ($j-globals , ' green' ), #fff , 90% ),
7273 ' bg' : map .get ($j-globals , ' grey-900' ),
7374 ' bg1' : map .get ($j-globals , ' grey-800' ),
7475 ' bg2' : map .get ($j-globals , ' grey-700' ),
@@ -89,7 +90,7 @@ $tokens: (
8990 $index : string .index ($string , $search );
9091
9192 @if $index {
92- @return str- slice ($string , 1 , $index - 1 ) + $replace +
93+ @return string . slice ($string , 1 , $index - 1 ) + $replace +
9394 str-replace (
9495 string .slice ($string , $index + string .length ($search )),
9596 $search ,
@@ -102,7 +103,7 @@ $tokens: (
102103
103104@each $theme , $map in $tokens {
104105 // If using default built-in tokens, then include global tokens as CSS properties
105- @if str- index ($theme , ' j-' ) {
106+ @if string . index ($theme , ' j-' ) {
106107 @if str-replace ($theme , ' j-' , ' ' ) == ' default' {
107108 :root {
108109 @each $key , $value in $j-globals {
0 commit comments