33@import ' ../../utilityFunctions/map-deep-get' ;
44@import ' ../../utilityVariables/cssNamespace' ;
55
6- $body-sizes : (' default' , ' lg' , ' sm' , ' xs' , ' 2xs' );
6+ $body-sizes : (' default' , ' default-emphasized ' , ' lg' , ' lg-emphasized ' , ' sm' , ' sm-emphasized ' , ' xs' , ' xs-emphasized ' , ' 2xs' , ' 2xs-emphasized ' );
77
88// Generate CSS custom properties for Body
99@mixin generate-body-css-vars ($theme-config ) {
1010 -- #{$css-ns } -body-family : #{map-get ($theme-config , ' family' )} ;
1111 -- #{$css-ns } -body-family-fallback : #{map-get ($theme-config , ' familyFallback' )} ;
12- -- #{$css-ns } -body-weight : #{map-get ($theme-config , ' weight' )} ;
1312 -- #{$css-ns } -body-letter-spacing : #{map-get ($theme-config , ' letter-spacing' )} ;
1413
1514 @each $size in $body-sizes {
15+ -- #{$css-ns } -body- #{$size } -weight : #{auro_map-deep-get ($theme-config , ' sizes' , $size , ' weight' )} ;
1616 -- #{$css-ns } -body- #{$size } -font-size : #{auro_map-deep-get ($theme-config , ' sizes' , $size , ' font-size' )} ;
1717 -- #{$css-ns } -body- #{$size } -line-height : #{auro_map-deep-get ($theme-config , ' sizes' , $size , ' line-height' )} ;
1818 }
@@ -25,13 +25,13 @@ $body-sizes: ('default', 'lg', 'sm', 'xs', '2xs');
2525 @if $use-fallback and $fallback-config != null {
2626 // Use CSS fallback
2727 font-family : var (--#{$css-ns}-body-family , auro_map-deep-get ($fallback-config , ' family' )), auro_map-deep-get ($fallback-config , ' familyFallback' );
28- font-weight : var (--#{$css-ns}-body-weight , auro_map-deep-get ($fallback-config , ' weight' ));
28+ font-weight : var (--#{$css-ns}-body-#{$size}- weight , auro_map-deep-get ($fallback-config , ' weight' ));
2929 letter-spacing : var (--#{$css-ns}-body-letter-spacing , auro_map-deep-get ($fallback-config , ' letter-spacing' ));
3030 font-size : var (--#{$css-ns}-body-#{$size}-font-size , auro_map-deep-get ($fallback-config , ' sizes' , $size , ' font-size' ));
3131 line-height : var (--#{$css-ns}-body-#{$size}-line-height , auro_map-deep-get ($fallback-config , ' sizes' , $size , ' line-height' ));
3232 } @else {
3333 font-family : var (--#{$css-ns}-body-family ), var (--#{$css-ns}-body-family-fallback );
34- font-weight : var (--#{$css-ns}-body-weight );
34+ font-weight : var (--#{$css-ns}-body-#{$size}- weight );
3535 letter-spacing : var (--#{$css-ns}-body-letter-spacing );
3636 font-size : var (--#{$css-ns}-body-#{$size}-font-size );
3737 line-height : var (--#{$css-ns}-body-#{$size}-line-height );
0 commit comments