import { defineConfig } from '@pandacss/dev' import { animationStyles } from './src/theme/animation-styles' import { conditions } from './src/theme/conditions' import { globalCss } from './src/theme/global-css' import { keyframes } from './src/theme/keyframes' import { layerStyles } from './src/theme/layer-styles' import { textStyles } from './src/theme/text-styles' import { colors } from './src/theme/tokens/colors' import { durations } from './src/theme/tokens/durations' import { shadows } from './src/theme/tokens/shadows' import { zIndex } from './src/theme/tokens/z-index' import { jade } from './src/theme/colors/jade' import { sage } from './src/theme/colors/sage' import { red } from './src/theme/colors/red' import { recipes, slotRecipes } from './src/theme/recipes' export default defineConfig({ preflight: true, include: ['./src/**/*.{ts,tsx,js,jsx}'], outdir: 'styled-system', jsxFramework: 'react', globalCss: globalCss.extend, conditions, staticCss: { recipes: { segmentGroup: [{ size: ['sm'] }], button: [{ variant: ['solid', 'outline', 'plain'], size: ['xs', 'sm', 'md'] }] }, }, plugins: [{ name: 'Remove Panda preset colors', hooks: { 'preset:resolved': ({ utils, preset, name }) => name === '@pandacss/preset-panda' ? utils.omit(preset, ['theme.tokens.colors', 'theme.semanticTokens.colors']) : preset, }, }], theme: { extend: { animationStyles, keyframes, layerStyles, recipes, slotRecipes, textStyles, tokens: { colors, durations, zIndex }, semanticTokens: { colors: { jade: { ...jade, solid: { bg: { DEFAULT: { value: { _light: '#176449', _dark: '#8cdbb4' } }, hover: { value: { _light: '#104f3a', _dark: '#abe7ca' } }, }, fg: { DEFAULT: { value: { _light: '#ffffff', _dark: '#12281e' } } }, }, }, gray: sage, red: { ...red, solid: { bg: { DEFAULT: { value: { _light: '#b12635', _dark: '#f48e97' } }, hover: { value: { _light: '#941d2a', _dark: '#ffadb4' } }, }, fg: { DEFAULT: { value: { _light: '#ffffff', _dark: '#321416' } } }, }, }, canvas: { value: 'var(--canvas)' }, fg: { DEFAULT: { value: '{colors.gray.12}' }, muted: { value: '{colors.gray.11}' }, subtle: { value: '{colors.gray.10}' }, }, border: { value: '{colors.gray.5}' }, error: { value: '{colors.red.11}' }, }, radii: { l1: { value: '6px' }, l2: { value: '9px' }, l3: { value: '12px' }, }, shadows, }, }, }, })