import type { Config } from "tailwindcss";

const config: Config = {
  darkMode: ["class"],
  content: [
    "./pages/**/*.{ts,tsx}",
    "./components/**/*.{ts,tsx}",
    "./app/**/*.{ts,tsx}",
    "./src/**/*.{ts,tsx}",
  ],
  prefix: "",
  theme: {
    container: {
      center: true,
      padding: "2rem",
      screens: {
        "2xl": "1400px",
      },
    },
    extend: {
      colors: {
        border: "hsl(var(--border))",
        input: "hsl(var(--input))",
        ring: "hsl(var(--ring))",
        background: {
          DEFAULT: "#F9F6E9",
          foreground: "hsl(var(--foreground))",
        },
        foreground: "hsl(var(--foreground))",
        primary: {
          DEFAULT: "#340649",
          foreground: "#F9F6E9",
        },
        secondary: {
          DEFAULT: "#67486A",
          foreground: "#F9F6E9",
        },
        accent: {
          DEFAULT: "#C8A668",
          foreground: "#340649",
        },
        muted: {
          DEFAULT: "#F9F6E9",
          foreground: "#67486A",
        },
        card: {
          DEFAULT: "#FFFFFF",
          foreground: "#340649",
        },
        text: {
          dark: "#340649",
          light: "#F9F6E9",
          muted: "#67486A",
        },
      },
      borderRadius: {
        lg: "var(--radius)",
        md: "calc(var(--radius) - 2px)",
        sm: "calc(var(--radius) - 4px)",
      },
      fontFamily: {
        sans: ["Inter", "system-ui", "sans-serif"],
        serif: ["Playfair Display", "Georgia", "serif"],
      },
      keyframes: {
        "accordion-down": {
          from: { height: "0" },
          to: { height: "var(--radix-accordion-content-height)" },
        },
        "accordion-up": {
          from: { height: "var(--radix-accordion-content-height)" },
          to: { height: "0" },
        },
      },
      animation: {
        "accordion-down": "accordion-down 0.2s ease-out",
        "accordion-up": "accordion-up 0.2s ease-out",
      },
    },
  },
  plugins: [require("tailwindcss-animate")],
};

export default config;
