1010@use ' ../functions/tokens' ;
1111@use ' ../tokens/components' ;
1212
13- tokens .$default-map : components .$post-button ;
14-
1513@mixin reset-button {
1614 padding : 0 ;
1715 overflow : visible ;
@@ -40,13 +38,13 @@ tokens.$default-map: components.$post-button;
4038 max-width : 100% ;
4139 overflow : hidden ;
4240 transition : button .$btn-transition ;
43- border-width : tokens .get (' button-border-width' );
41+ border-width : tokens .get (' button-border-width' , components . $post-button );
4442 border-style : solid ;
45- border-radius : tokens .get (' button-border-radius-round' );
43+ border-radius : tokens .get (' button-border-radius-round' , components . $post-button );
4644 background-color : transparent ;
4745 box-shadow : none ;
4846 font-family : inherit ;
49- font-weight : tokens .get (' button-label-font-weight' );
47+ font-weight : tokens .get (' button-label-font-weight' , components . $post-button );
5048 text-decoration : none ;
5149 white-space : nowrap ; // Long content should never break in buttons
5250
@@ -55,7 +53,7 @@ tokens.$default-map: components.$post-button;
5553 }
5654
5755 & :disabled {
58- border-style : tokens .get (' button-border-style-disabled' );
56+ border-style : tokens .get (' button-border-style-disabled' , components . $post-button );
5957 }
6058
6159 @include utilities .focus-style ;
@@ -95,9 +93,9 @@ tokens.$default-map: components.$post-button;
9593}
9694
9795@mixin button-variant-def ($type , $color ) {
98- border-color : tokens .get (' button-#{$color } -#{$type } -stroke' );
99- background-color : tokens .get (' button-#{$color } -#{$type } -bg' );
100- color : tokens .get (' button-#{$color } -#{$type } -fg' );
96+ border-color : tokens .get (' button-#{$color } -#{$type } -stroke' , components . $post-button );
97+ background-color : tokens .get (' button-#{$color } -#{$type } -bg' , components . $post-button );
98+ color : tokens .get (' button-#{$color } -#{$type } -fg' , components . $post-button );
10199}
102100
103101@mixin button-color-variant ($name , $color ) {
0 commit comments