{"version":3,"file":"index.cjs","sources":["../../../src/theme/tokens/index.ts"],"sourcesContent":["import {\r\n    darkColors,\r\n    darkEditorColors,\r\n    lightColors,\r\n    lightEditorColors,\r\n} from '@theme/colors/index.ts'\r\nimport { duration, easing } from '@theme/tokens/motion.ts'\r\nimport { radius } from '@theme/tokens/radii.ts'\r\nimport { lightShadows, darkShadows, lightDropShadows, darkDropShadows } from '@theme/tokens/shadows.ts'\r\nimport { space } from '@theme/tokens/spacing.ts'\r\nimport { fontFamily, fontSize, fontWeight, letterSpacing, lineHeight } from '@theme/tokens/typography.ts'\r\nimport { zIndex } from '@theme/tokens/zIndex.ts'\r\n\r\n/*\r\n * Theme assembly — combines every token category into the two complete theme\r\n * objects consumed by `contract.css.ts`.\r\n *\r\n * Theme-dependent categories (color, shadow) provide a light & dark variant;\r\n * everything else is shared. Both themes MUST be structurally identical: this\r\n * shape is the single source of truth for the typed CSS-variable contract.\r\n */\r\n\r\n/** Categories whose values are identical across themes. */\r\nconst sharedTokens = {\r\n    space,\r\n    radius,\r\n    fontFamily,\r\n    fontSize,\r\n    fontWeight,\r\n    lineHeight,\r\n    letterSpacing,\r\n    zIndex,\r\n    duration,\r\n    easing,\r\n}\r\n\r\nexport const lightTheme = {\r\n    color: lightColors,\r\n    editorColors: lightEditorColors,\r\n    shadow: lightShadows,\r\n    dropShadow: lightDropShadows,\r\n    ...sharedTokens,\r\n}\r\n\r\nexport const darkTheme = {\r\n    color: darkColors,\r\n    editorColors: darkEditorColors,\r\n    shadow: darkShadows,\r\n    dropShadow: darkDropShadows,\r\n    ...sharedTokens,\r\n}\r\n\r\n/** The canonical theme shape (light is the reference). */\r\nexport type Theme = typeof lightTheme\r\n\r\nexport { palette } from '@theme/tokens/palette.ts'\r\n"],"names":["sharedTokens","space","radius","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","zIndex","duration","easing","lightTheme","lightColors","lightEditorColors","lightShadows","lightDropShadows","darkTheme","darkColors","darkEditorColors","darkShadows","darkDropShadows"],"mappings":"wTAuBMA,EAAe,CAAA,MACjBC,EAAAA,MAAA,OACAC,EAAAA,OAAA,WACAC,EAAAA,WAAA,SACAC,EAAAA,SAAA,WACAC,EAAAA,WAAA,WACAC,EAAAA,WAAA,cACAC,EAAAA,cAAA,OACAC,EAAAA,OAAA,SACAC,EAAAA,SAAA,OACAC,EAAAA,MACJ,EAEaC,EAAa,CACtB,MAAOC,EAAAA,YACP,aAAcC,EAAAA,kBACd,OAAQC,EAAAA,aACR,WAAYC,EAAAA,iBACZ,GAAGf,CACP,EAEagB,EAAY,CACrB,MAAOC,EAAAA,WACP,aAAcC,EAAAA,iBACd,OAAQC,EAAAA,YACR,WAAYC,EAAAA,gBACZ,GAAGpB,CACP"}