/** @type {import('tailwindcss').Config} */
export default {
  darkMode: ["class"],
  content: [
    "./index.html",
    "./src/**/*.{vue,js,ts,jsx,tsx}",
  ],
  theme: {
    container: {
      center: true,
      padding: "2rem",
      screens: {
        "2xl": "1400px",
      },
    },
    extend: {
      colors: {
        border: "var(--border)",
        input: "var(--input)",
        ring: "var(--ring)",
        background: "var(--background)",
        foreground: "var(--foreground)",
        primary: {
          DEFAULT: "var(--primary)",
          foreground: "var(--primary-foreground)",
        },
        secondary: {
          DEFAULT: "var(--secondary)",
          foreground: "var(--secondary-foreground)",
        },
        destructive: {
          DEFAULT: "var(--destructive)",
          foreground: "var(--destructive-foreground)",
        },
        muted: {
          DEFAULT: "var(--muted)",
          foreground: "var(--muted-foreground)",
        },
        accent: {
          DEFAULT: "var(--accent)",
          foreground: "var(--accent-foreground)",
        },
        popover: {
          DEFAULT: "var(--popover)",
          foreground: "var(--popover-foreground)",
        },
        card: {
          DEFAULT: "var(--card)",
          foreground: "var(--card-foreground)",
        },
        // Claude 配色
        slate: {
          dark: "var(--slate-dark)",
          medium: "var(--slate-medium)",
          light: "var(--slate-light)",
        },
        cloud: {
          dark: "var(--cloud-dark)",
          medium: "var(--cloud-medium)",
          light: "var(--cloud-light)",
        },
        ivory: {
          dark: "var(--ivory-dark)",
          medium: "var(--ivory-medium)",
          light: "var(--ivory-light)",
        },
        "book-cloth": "var(--book-cloth)",
        kraft: "var(--kraft)",
        manilla: "var(--manilla)",
      },
      fontFamily: {
        sans: ["var(--sans-serif)", "system-ui", "-apple-system", "BlinkMacSystemFont", "PingFang SC", "sans-serif"],
        serif: ["var(--serif)", "Songti SC", "STSong", "serif"],
        mono: ["var(--monospace)", "SFMono-Regular", "Menlo", "Monaco", "monospace"],
      },
      borderRadius: {
        lg: "var(--radius)",
        md: "calc(var(--radius) - 2px)",
        sm: "calc(var(--radius) - 4px)",
      },
      keyframes: {
        "collapsible-down": {
          from: { height: "0" },
          to: { height: "var(--radix-collapsible-content-height)" },
        },
        "collapsible-up": {
          from: { height: "var(--radix-collapsible-content-height)" },
          to: { height: "0" },
        },
      },
      animation: {
        "collapsible-down": "collapsible-down 0.2s ease-out",
        "collapsible-up": "collapsible-up 0.2s ease-out",
      },
    },
  },
  plugins: [require("tailwindcss-animate")],
}
