import { defineConfig, presetUno, presetAttributify } from 'unocss'

/**
 * UnoCSS 配置 — 零食商城用户端
 * 与 Element Plus 协作，仅提供工具类辅助
 */
export default defineConfig({
  presets: [presetUno(), presetAttributify()],
  theme: {
    colors: {
      snack: {
        primary: '#F04E3E',
        'primary-dark': '#D93A2B',
        'primary-light': '#FFF0EA',
        secondary: '#F7B733',
        cta: '#FF8A4C',
        accent: '#2EC4B6',
        bg: '#FFF7F0',
        surface: '#FFFDF9',
        text: '#3A2E2A',
        'text-secondary': '#7A6A62',
        border: '#EEDDCB'
      }
    }
  },
  shortcuts: {
    'flex-center': 'flex items-center justify-center',
    'flex-between': 'flex items-center justify-between'
  }
})
