{"version":3,"file":"register.cjs","sources":["../../../../../src/core/tokens/style-dictionary/register.ts"],"sourcesContent":["import StyleDictionary from \"style-dictionary\";\n\nimport {\n    javascriptEsmFormat,\n    cssThemeVariablesFormat,\n    scssThemeVariablesFormat,\n    tailwindCssColorsFormat,\n    cssDynamicColorVariablesFormat,\n} from \"./formats/index.js\";\n\nimport { stripLightDarkTransform } from \"./transforms/index.js\";\n\nimport { isColor, isSpacing } from \"./filters/index.js\";\n\n// Formats\nStyleDictionary.registerFormat(javascriptEsmFormat);\nStyleDictionary.registerFormat(cssThemeVariablesFormat);\nStyleDictionary.registerFormat(scssThemeVariablesFormat);\nStyleDictionary.registerFormat(tailwindCssColorsFormat);\nStyleDictionary.registerFormat(cssDynamicColorVariablesFormat);\n\n// Transforms\nStyleDictionary.registerTransform(stripLightDarkTransform);\n\n// Filters\nStyleDictionary.registerFilter(isColor);\nStyleDictionary.registerFilter(isSpacing);\n\nStyleDictionary.registerTransformGroup({\n    name: \"typescript\",\n    transforms: [\"name/camel\"],\n});\n\nStyleDictionary.registerTransformGroup({\n    name: \"css\",\n    transforms: [\n        ...StyleDictionary.hooks.transformGroups.css,\n        \"strip/light-dark\",\n    ],\n});\n\nStyleDictionary.registerTransformGroup({\n    name: \"scss\",\n    transforms: [\n        ...StyleDictionary.hooks.transformGroups.scss,\n        \"strip/light-dark\",\n    ],\n});\n"],"names":["StyleDictionary","registerFormat","javascriptEsmFormat","cssThemeVariablesFormat","scssThemeVariablesFormat","tailwindCssColorsFormat","cssDynamicColorVariablesFormat","registerTransform","stripLightDarkTransform","registerFilter","isColor","isSpacing","registerTransformGroup","name","transforms","hooks","transformGroups","css","scss"],"mappings":"+WAeAA,EAAgBC,eAAeC,GAC/BF,EAAgBC,eAAeE,GAC/BH,EAAgBC,eAAeG,GAC/BJ,EAAgBC,eAAeI,GAC/BL,EAAgBC,eAAeK,GAG/BN,EAAgBO,kBAAkBC,GAGlCR,EAAgBS,eAAeC,EAAAA,SAC/BV,EAAgBS,eAAeE,EAAAA,WAE/BX,EAAgBY,uBAAuB,CACnCC,KAAM,aACNC,WAAY,CAAC,gBAGjBd,EAAgBY,uBAAuB,CACnCC,KAAM,MACNC,WAAY,IACLd,EAAgBe,MAAMC,gBAAgBC,IACzC,sBAIRjB,EAAgBY,uBAAuB,CACnCC,KAAM,OACNC,WAAY,IACLd,EAAgBe,MAAMC,gBAAgBE,KACzC"}