import e from"../foundations/sizes.js";import{randomColor as r,isDark as t}from"../../../../theme-tools/dist/esm/color.js";import{mode as o}from"../../../../theme-tools/dist/esm/component.js";function l(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:o("white","gray.800")(e)}}function i(e){return{bg:o("gray.200","whiteAlpha.400")(e)}}function n(e){var{name:l,theme:i}=e,n=l?r({string:l}):"gray.400",a="white";return t(n)(i)||(a="gray.800"),{bg:n,color:a,borderColor:o("white","gray.800")(e),verticalAlign:"top"}}function a(r){var t=e[r];return{container:{width:r,height:r,fontSize:"calc("+(null!=t?t:r)+" / 2.5)"},excessLabel:{width:r,height:r},label:{fontSize:"calc("+(null!=t?t:r)+" / 2.5)",lineHeight:"100%"!==r?null!=t?t:r:void 0}}}var s={parts:["container","excessLabel","badge","label"],baseStyle:e=>({badge:l(e),excessLabel:i(e),container:n(e)}),sizes:{"2xs":a("4"),xs:a("6"),sm:a("8"),md:a("12"),lg:a("16"),xl:a("24"),"2xl":a("32"),full:a("100%")},defaultProps:{size:"md"}};export default s;
//# sourceMappingURL=avatar.js.map
