1+ @use " sass:map" ;
2+ @use " sass:list" ;
3+
14@use " ../variables/global" as * ;
25@use " ../functions/apply-utility" as * ;
36
4- $text-align-values : left , right , center , justify ;
7+ $text-align-values : start , end , center , justify ;
58@include apply-utility-classes (" text" , " text-align" , $text-align-values );
69
7- $text-transform-values : none , uppercase , lowercase , capitalize ;
8- @include apply-utility-classes (
9- " text-transform" ,
10- " text-transform" ,
11- $text-transform-values
12- );
10+ $text-transform-values : uppercase , lowercase , capitalize ;
11+ @include apply-utility-classes (" text" , " text-transform" , $text-transform-values );
1312
1413$text-decoration-values : none , underline , overline , line-through ;
1514@include apply-utility-classes (
@@ -48,9 +47,17 @@ $font-style-values: normal, italic, oblique;
4847$font-weight-values : 100 , 200 , 300 , 400 , 500 , 600 , 700 , 800 , 900 ;
4948@include apply-utility-classes (" fw" , " font-weight" , $font-weight-values , true);
5049
51- @each $property , $value in $font-sizes {
52- .fs-#{$property } {
53- font-size : var (--#{$prefix}font-size-#{$property} );
50+ @for $i from 1 through list .length (map .keys ($font-sizes )) {
51+ $key : list .nth (map .keys ($font-sizes ), $i );
52+
53+ .fs-#{$i } {
54+ font-size : var (--#{$prefix}font-size-#{$key} );
55+ }
56+ }
57+
58+ @each $property , $value in $line-heights {
59+ .lh-#{$property } {
60+ line-height : var (--#{$prefix}line-height-#{$property} );
5461 }
5562}
5663
@@ -59,3 +66,17 @@ $font-weight-values: 100, 200, 300, 400, 500, 600, 700, 800, 900;
5966 text-overflow : ellipsis ;
6067 white-space : nowrap ;
6168}
69+
70+ .text-reset {
71+ color : inherit !important ;
72+ }
73+
74+ @each $property , $value in $color-variations {
75+ .text- #{" " + $property } {
76+ color : var (--#{$prefix}#{$property}-bg-color );
77+ }
78+
79+ .text- #{" " + $property } -bg {
80+ color : var (--#{$prefix}#{$property}-text-color );
81+ }
82+ }
0 commit comments