{"version":3,"sources":["colorFromToken.ts"],"sourcesContent":["import { Color } from \"framer\"\n\nexport function colorFromToken(color: string) {\n    if (color.startsWith(\"var(--token-\"))\n        return \"rgb\" + color.split(\") /*\")[0].split(\", rgb\")[1]\n\n    return color\n}\n\nexport function colorTokentoValue(color: string): string {\n    return Color(colorFromToken(color)).toValue()\n}\n"],"names":[],"mappings":"SAAS,KAAK,SAAQ,MAAQ;gBAEd,cAAc,CAAC,KAAa,EAAE,CAAC;IAC3C,EAAE,EAAE,KAAK,CAAC,UAAU,EAAC,YAAc,YACxB,GAAK,IAAG,KAAK,CAAC,KAAK,EAAC,IAAM,GAAE,CAAC,EAAE,KAAK,EAAC,KAAO,GAAE,CAAC;WAEnD,KAAK;AAChB,CAAC;gBAEe,iBAAiB,CAAC,KAAa,EAAU,CAAC;WAC/C,KAAK,CAAC,cAAc,CAAC,KAAK,GAAG,OAAO;AAC/C,CAAC"}