import{hexToRgb as o,isDark as t,getContrastRatio as n}from"../color.js";const r=["red","green","yellow","blue","magenta","cyan"];function c(c){const a=o(c.background),e=function(o){const t=[...r,o?"white":"black"];return[...t,...t.map((o=>`bright-${o}`))]}(t(a)),l=e.length;let s=0,i=0;const g={};return e.forEach((t=>{const r=n(a,o(c[t])),e=r>=4.5;e&&i++,s+=r,g[t]={ratio:r,compliant:e}})),{totalColors:l,compliantColors:i,contrastAvg:s/l,contrasts:g}}export{c as analyzePalette};
//# sourceMappingURL=ansi-palette-analyser.js.map
