{"version":3,"file":"tailwindPreset.cjs","sources":["../../../src/tailwind/tailwindPreset.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\nimport tokens from \"../tokens.js\";\nimport { jokulTypographyPlugin } from \"./plugins/jokulTypographyPlugin.js\";\n\nconst DEFAULT_COLOR_VARIANT_KEY = \"@\";\n\nfunction createTailwindColors() {\n    const { [DEFAULT_COLOR_VARIANT_KEY]: defaultColors, ...semanticColors } =\n        tokens.color;\n\n    return {\n        ...defaultColors,\n        ...semanticColors,\n    };\n}\n\nexport const jokulPreset: Partial<Config> = {\n    theme: {\n        colors: createTailwindColors(),\n        spacing: tokens.spacing,\n        fontWeight: tokens.font.weight,\n        fontSize: tokens.font.size,\n        lineHeight: tokens.lineHeight,\n        borderRadius: tokens.border.radius,\n        borderWidth: tokens.border.width,\n        screens: {\n            sm: tokens.breakpoint.medium,\n            md: tokens.breakpoint.large,\n            lg: tokens.breakpoint.xl,\n        },\n    },\n    plugins: [jokulTypographyPlugin],\n};\n"],"names":["DEFAULT_COLOR_VARIANT_KEY","jokulPreset","theme","colors","i","defaultColors","semanticColors","tokens","color","createTailwindColors","spacing","fontWeight","font","weight","fontSize","size","lineHeight","borderRadius","border","radius","borderWidth","width","screens","sm","breakpoint","medium","md","large","lg","xl","plugins","jokulTypographyPlugin"],"mappings":"kKAIMA,EAA4B,IAY3B,MAAMC,EAA+B,CACxCC,MAAO,CACHC,OAZR,WACI,MAAQC,CAACJ,GAA4BK,KAAkBC,GACnDC,EAAOC,MAEX,MAAO,IACAH,KACAC,EAEX,CAIgBG,GACRC,QAASH,EAAOG,QAChBC,WAAYJ,EAAOK,KAAKC,OACxBC,SAAUP,EAAOK,KAAKG,KACtBC,WAAYT,EAAOS,WACnBC,aAAcV,EAAOW,OAAOC,OAC5BC,YAAab,EAAOW,OAAOG,MAC3BC,QAAS,CACLC,GAAIhB,EAAOiB,WAAWC,OACtBC,GAAInB,EAAOiB,WAAWG,MACtBC,GAAIrB,EAAOiB,WAAWK,KAG9BC,QAAS,CAACC,EAAAA"}