@@ -41,8 +41,8 @@ const variantOutline = defineStyle((props) => {
41
41
const color = isGrayTheme ? mode ( 'blackAlpha.800' , 'whiteAlpha.800' ) ( props ) : mode ( `${ c } .600` , `${ c } .300` ) ( props ) ;
42
42
const borderColor = isGrayTheme ? mode ( 'gray.200' , 'gray.600' ) ( props ) : mode ( `${ c } .600` , `${ c } .300` ) ( props ) ;
43
43
44
- const selectedBg = isGrayTheme ? mode ( 'blue .50' , 'gray.600' ) ( props ) : mode ( `${ c } .50` , 'gray.600' ) ( props ) ;
45
- const selectedColor = mode ( 'blue .600' , 'gray.50' ) ( props ) ;
44
+ const selectedBg = isGrayTheme ? mode ( 'brand .50' , 'gray.600' ) ( props ) : mode ( `${ c } .50` , 'gray.600' ) ( props ) ;
45
+ const selectedColor = mode ( 'brand .600' , 'gray.50' ) ( props ) ;
46
46
47
47
return {
48
48
color,
@@ -154,35 +154,33 @@ const variantSubtle = defineStyle((props) => {
154
154
155
155
// for buttons in the hero banner
156
156
const variantHero = defineStyle ( ( props ) => {
157
-
158
- const buttonConfig = config . UI . homepage . heroBanner ?. button ;
159
157
return {
160
158
bg : mode (
161
- buttonConfig ?. _default ?. background ?. [ 0 ] || 'blue .600' ,
162
- buttonConfig ?. _default ?. background ?. [ 1 ] || buttonConfig ?. _default ?. background ?. [ 0 ] || 'blue .600' ,
159
+ config . UI . homepage . heroBanner ?. button ?. _default ?. background ?. [ 0 ] || 'brand .600' ,
160
+ config . UI . homepage . heroBanner ?. button ?. _default ?. background ?. [ 1 ] || 'brand .600' ,
163
161
) ( props ) ,
164
162
color : mode (
165
- buttonConfig ?. _default ?. text_color ?. [ 0 ] || 'white' ,
166
- buttonConfig ?. _default ?. text_color ?. [ 1 ] || buttonConfig ?. _default ?. text_color ?. [ 0 ] || 'white' ,
163
+ config . UI . homepage . heroBanner ?. button ?. _default ?. text_color ?. [ 0 ] || 'white' ,
164
+ config . UI . homepage . heroBanner ?. button ?. _default ?. text_color ?. [ 1 ] || 'white' ,
167
165
) ( props ) ,
168
166
_hover : {
169
167
bg : mode (
170
- buttonConfig ?. _hover ?. background ?. [ 0 ] || 'blue .400' ,
171
- buttonConfig ?. _hover ?. background ?. [ 1 ] || buttonConfig ?. _hover ?. background ?. [ 0 ] || 'blue .400' ,
168
+ config . UI . homepage . heroBanner ?. button ?. _hover ?. background ?. [ 0 ] || 'brand .400' ,
169
+ config . UI . homepage . heroBanner ?. button ?. _hover ?. background ?. [ 1 ] || 'brand .400' ,
172
170
) ( props ) ,
173
171
color : mode (
174
- buttonConfig ?. _hover ?. text_color ?. [ 0 ] || 'white' ,
175
- buttonConfig ?. _hover ?. text_color ?. [ 1 ] || buttonConfig ?. _hover ?. text_color ?. [ 0 ] || 'white' ,
172
+ config . UI . homepage . heroBanner ?. button ?. _hover ?. text_color ?. [ 0 ] || 'white' ,
173
+ config . UI . homepage . heroBanner ?. button ?. _hover ?. text_color ?. [ 1 ] || 'white' ,
176
174
) ( props ) ,
177
175
} ,
178
176
'&[data-selected=true]' : {
179
177
bg : mode (
180
- buttonConfig ?. _selected ?. background ?. [ 0 ] || 'blue .50' ,
181
- buttonConfig ?. _selected ?. background ?. [ 1 ] || buttonConfig ?. _selected ?. background ?. [ 0 ] || 'blue .50' ,
178
+ config . UI . homepage . heroBanner ?. button ?. _selected ?. background ?. [ 0 ] || 'brand .50' ,
179
+ config . UI . homepage . heroBanner ?. button ?. _selected ?. background ?. [ 1 ] || 'brand .50' ,
182
180
) ( props ) ,
183
181
color : mode (
184
- buttonConfig ?. _selected ?. text_color ?. [ 0 ] || 'blackAlpha.800' ,
185
- buttonConfig ?. _selected ?. text_color ?. [ 1 ] || buttonConfig ?. _selected ?. text_color ?. [ 0 ] || 'blackAlpha.800' ,
182
+ config . UI . homepage . heroBanner ?. button ?. _selected ?. text_color ?. [ 0 ] || 'blackAlpha.800' ,
183
+ config . UI . homepage . heroBanner ?. button ?. _selected ?. text_color ?. [ 1 ] || 'blackAlpha.800' ,
186
184
) ( props ) ,
187
185
} ,
188
186
} ;
@@ -269,7 +267,7 @@ const Button = defineStyleConfig({
269
267
defaultProps : {
270
268
variant : 'solid' ,
271
269
size : 'md' ,
272
- colorScheme : 'blue ' ,
270
+ colorScheme : 'brand ' ,
273
271
} ,
274
272
} ) ;
275
273
0 commit comments