@@ -61,7 +61,7 @@ const generateStyle = (
6161 ) => {
6262 return `${ ( originalFontSize * originalScaler ) / newFontSize } em`
6363 }
64-
64+ console . log ( componentTheme )
6565 const sizeStyles = {
6666 auto : {
6767 fontSize : 'inherit' ,
@@ -157,29 +157,53 @@ const generateStyle = (
157157 background : componentTheme . accent1Background ,
158158 icon : componentTheme . accent1Icon
159159 } , // = brand
160- shamrock : componentTheme . colorShamrock ,
161- barney : componentTheme . colorBarney ,
162- crimson : componentTheme . colorCrimson ,
163- fire : componentTheme . colorFire ,
164- licorice : componentTheme . colorLicorice ,
165- ash : componentTheme . colorAsh ,
160+ shamrock : {
161+ text : componentTheme . accent2Text ,
162+ background : componentTheme . accent2Background ,
163+ icon : componentTheme . accent2Icon
164+ } ,
165+ barney : {
166+ text : componentTheme . accent3Text ,
167+ background : componentTheme . accent3Background ,
168+ icon : componentTheme . accent3Icon
169+ } ,
170+ crimson : {
171+ text : componentTheme . accent4Text ,
172+ background : componentTheme . accent4Background ,
173+ icon : componentTheme . accent4Icon
174+ } ,
175+ fire : {
176+ text : componentTheme . accent5Text ,
177+ background : componentTheme . accent5Background ,
178+ icon : componentTheme . accent5Icon
179+ } ,
180+ licorice : {
181+ text : componentTheme . accent6text ,
182+ background : componentTheme . accent6Background ,
183+ icon : componentTheme . accent6Icon
184+ } ,
185+ ash : {
186+ text : componentTheme . accent1Text ,
187+ background : componentTheme . accent1Background ,
188+ icon : componentTheme . accent1Icon
189+ } ,
166190 ai : `
167- linear-gradient(to bottom, ${ componentTheme . aiTopGradientColor } 0%, ${ componentTheme . aiBottomGradientColor } 100%) padding-box,
168- linear-gradient(to bottom right, ${ componentTheme . aiTopGradientColor } 0%, ${ componentTheme . aiBottomGradientColor } 100%) border-box`
191+ linear-gradient(to bottom, ${ componentTheme . aiTopGradient } 0%, ${ componentTheme . aiBottomGradient } 100%) padding-box,
192+ linear-gradient(to bottom right, ${ componentTheme . aiTopGradient } 0%, ${ componentTheme . aiBottomGradient } 100%) border-box`
169193 }
170194
171195 const background = ( ) => {
172196 if ( color === 'ai' ) {
173197 return {
174198 background : `
175- linear-gradient(to bottom, ${ componentTheme . aiTopGradientColor } 0%, ${ componentTheme . aiBottomGradientColor } 100%) padding-box,
176- linear-gradient(to bottom right, ${ componentTheme . aiTopGradientColor } 0%, ${ componentTheme . aiBottomGradientColor } 100%) border-box` ,
199+ linear-gradient(to bottom, ${ componentTheme . aiTopGradient } 0%, ${ componentTheme . aiBottomGradient } 100%) padding-box,
200+ linear-gradient(to bottom right, ${ componentTheme . aiTopGradient } 0%, ${ componentTheme . aiBottomGradient } 100%) border-box` ,
177201 border : 'solid transparent'
178202 }
179203 }
180204 return hasInverseColor
181205 ? {
182- backgroundColor : colorVariants [ color ! ] ,
206+ backgroundColor : colorVariants [ color ! ] . background ,
183207 backgroundClip : 'content-box'
184208 }
185209 : {
@@ -190,17 +214,19 @@ const generateStyle = (
190214
191215 const contentColor = ( ) => {
192216 if ( color === 'ai' ) {
193- return componentTheme . aiFontColor
217+ return componentTheme . aiFont
194218 }
195- return hasInverseColor ? componentTheme . background : colorVariants [ color ! ]
219+ return hasInverseColor
220+ ? componentTheme . background
221+ : colorVariants [ color ! ] . text
196222 }
197223
198224 return {
199225 avatar : {
200226 label : 'avatar' ,
201227 boxSizing : 'border-box' ,
202228 borderStyle : 'solid' ,
203- borderColor : componentTheme . borderColor ,
229+ borderColor : componentTheme . border ,
204230 ...background ( ) ,
205231 backgroundPosition : 'center' ,
206232 backgroundSize : 'cover' ,
@@ -216,7 +242,7 @@ const generateStyle = (
216242 ...( showBorder !== 'always' && {
217243 border : 0
218244 } ) ,
219- boxShadow : `inset 0 0 ${ componentTheme . boxShadowBlur } 0 ${ componentTheme . boxShadowColor } `
245+ boxShadow : `inset 0 0 ${ componentTheme . boxShadow . blur } 0 ${ componentTheme . boxShadow . color } `
220246 }
221247 : {
222248 backgroundImage : undefined ,
@@ -234,7 +260,6 @@ const generateStyle = (
234260 label : 'avatar__initials' ,
235261 color : contentColor ( ) ,
236262 lineHeight : '2.375em' ,
237- fontFamily : componentTheme . fontFamily ,
238263 fontWeight : componentTheme . fontWeight ,
239264 letterSpacing : '0.0313em' ,
240265 ...initialSizeStyles [ size ! ]
0 commit comments