{"version":3,"sources":["../src/index.ts"],"names":["brown","blue","green","wood"],"mappings":";;;;;;;;AAoCO,IAAM,MAAA,GAAS,OAAO,MAAA,CAAO;AAAA,SAClCA,uBAAA;AAAA,QACAC,sBAAA;AAAA,SACAC,uBAAA;AAAA,QACAC;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"index.cjs","sourcesContent":["/**\n * `@ultrachess/themes` — CSS-variable-only board themes.\n *\n * Each theme ships as a frozen record of CSS custom-property pairs that the\n * React layer writes inline on the board container at first paint. Themes\n * are CSS-only and carry zero runtime cost beyond the one-time variable\n * assignment.\n *\n * Import sub-paths to keep bundles minimal:\n *\n * ```tsx\n * import { brown } from \"@ultrachess/themes/brown\";\n * import { green } from \"@ultrachess/themes/green\";  // chess.com default\n * import { blue }  from \"@ultrachess/themes/blue\";\n * import { wood }  from \"@ultrachess/themes/wood\";\n * ```\n *\n * Or pull the full set from the package root (convenient for theme pickers,\n * at a marginally larger bundle cost):\n *\n * ```tsx\n * import { brown, green, blue, wood } from \"@ultrachess/themes\";\n * ```\n */\n\nimport { blue } from \"./blue.js\";\nimport { brown } from \"./brown.js\";\nimport { green } from \"./green.js\";\nimport { wood } from \"./wood.js\";\n\n/** Shape of a board theme: CSS custom-property pairs. */\nexport type Theme = Readonly<Record<string, string>>;\n\nexport { blue, brown, green, wood };\n\n/** Registry mapping a theme name to its theme object. */\nexport const themes = Object.freeze({\n  brown,\n  blue,\n  green,\n  wood,\n}) satisfies Readonly<Record<string, Theme>>;\n\n/** Union of the built-in theme names. */\nexport type ThemeName = keyof typeof themes;\n\nexport const PACKAGE_VERSION = \"0.1.0-alpha\";\n"]}